Overview
The Custom Emojis API allows you to create organization-specific emojis that members can use in messages. Each emoji has a unique name within the organization and is associated with an image URL.customEmoji.create
Create a new custom emoji for an organization.Organization identifier
Emoji name (used as :name: in messages)
URL to the emoji image
The created custom emoji
Transaction ID for optimistic updates
CustomEmojiNameConflictError- An emoji with this name already exists in the organizationCustomEmojiDeletedExistsError- A deleted emoji with this name exists (contains emoji info to offer restore)UnauthorizedError- User lacks permission to create emojisInternalServerError- Server error
customEmoji.update
Update an existing custom emoji (rename).Emoji identifier
New emoji name
Updated emoji object
Transaction ID for optimistic updates
CustomEmojiNotFoundError- Emoji doesn’t existCustomEmojiNameConflictError- New name conflicts with existing emojiUnauthorizedError- User lacks permission to update emojisInternalServerError- Server error
customEmoji.delete
Soft-delete a custom emoji. The emoji will be hidden but can be restored later.Emoji identifier
Transaction ID for optimistic updates
CustomEmojiNotFoundError- Emoji doesn’t existUnauthorizedError- User lacks permission to delete emojisInternalServerError- Server error
customEmoji.restore
Restore a previously soft-deleted custom emoji.Emoji identifier
Optional new image URL (if the original is no longer available)
Restored emoji object
Transaction ID for optimistic updates
CustomEmojiNotFoundError- Emoji doesn’t existCustomEmojiNameConflictError- An active emoji with the same name now existsUnauthorizedError- User lacks permission to restore emojisInternalServerError- Server error
Usage in Messages
Once created, custom emojis can be used in messages using the:name: syntax: