Sample - Slack Web API
GET/users.identity

Get the authenticated user's identity

Retrieves the authenticated user's identity and team information. Provide a token with the identity.basic scope, with additional identity scopes determining whether fields such as email or avatar details are included.

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

1 parameter
tokenstringoptional
Authentication token with the `identity.basic` scope; additional identity scopes can provide email or avatar information.

2 status codes
200Returns the authenticated user's `user` object and associated `team` object, with additional identity fields determined by the granted scopes.
defaultTypical error response
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:not_authedinvalid_authaccount_inactivetoken_revokedno_permissionorg_login_requireduser_is_botinvalid_arg_nameinvalid_array_arginvalid_charsetinvalid_form_datainvalid_post_type
okbooleanrequired
Allowed:false

Error handling

The optional token must provide the identity.basic scope when supplied. The returned identity includes user and team objects, while additional email or avatar details depend on the identity scopes granted to the token.