Sample - Slack Web API
POST/admin.emoji.addAlias

Add an emoji alias

Adds an alias for an existing custom emoji. Provide the emoji name and the alias_for value to associate the alias with its target emoji.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 body fields

Form data defining an emoji alias. token, name, and alias_for are required.

tokenstringrequired
Authentication token. Requires scope: `admin.teams:write`
namestringrequired
The name of the emoji to be aliased. Colons (`:myemoji:`) around the value are not required, although they may be included.
alias_forstringrequired
The alias of the emoji.

2 status codes
200Returns an object containing `ok: true` when the emoji alias is added.
okbooleanrequired
Allowed:true
defaultReturns an object containing `ok: false` when the emoji alias cannot be added.
okbooleanrequired
Allowed:false

Error handling

token, name, and alias_for are required. Use a token with the admin.teams:write scope, and identify the emoji being aliased with name.