The only emoji command I can find is https://api.slack.com/methods/emoji.list
Is there a way to programatically create custom emoji? Or is the only way via manual process - https://get.slack.help/hc/en-us/articles/206870177-Creating-custom-emoji
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityThe only emoji command I can find is https://api.slack.com/methods/emoji.list
Is there a way to programatically create custom emoji? Or is the only way via manual process - https://get.slack.help/hc/en-us/articles/206870177-Creating-custom-emoji
If you are on enterprise grid, you can use the recently added admin.emoji.add
https://api.slack.com/methods/admin.emoji.add
There's an undocumented API endpoint for this: emoji.add
(and its little buddy emoji.remove
).
emoji.add
POST parametersAuthorization: Bearer
header) (There's an open GitHub issue that claims you can't use xoxb
tokens, only xoxs
ones.)data
)my-party-parrot
)emoji.remove
POST parametersAuthorization: Bearer
header)my-party-parrot
)Here's what it looks like in Postman:
In CURL, the call would look like this:
curl -X POST \
https://slack.com/api/emoji.add \
-H 'Authorization: Bearer [REDACTED] \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36' \
-F mode=data \
-F name=my-party-parrot \
-F image=@/home/curtis/Downloads/some-file.jpg
Everything that I know about this comes from from Jack Ellenberger's ":slack_on_fire:" article and his emojme library.
Slack's official web API does not support the programmatic creation of emojis.