Sample - Slack Web API
GET/team.profile.get

Get the team profile

Retrieves the team's profile and its configured custom fields. Use visibility to filter which profile fields are returned. The response contains the profile's fields collection.

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

2 parameters
tokenstringrequired
Authentication token with the `users.profile:read` scope.
visibilitystringoptional
Filter the returned profile fields by visibility.

2 status codes
200Returns an object with `ok` set to true and a `profile` object containing the team's `fields` array.
okbooleanrequired
Allowed:true
profileobjectrequired
defaultReturns an error object with `ok` set to false and an `error` value describing why the team profile could not be retrieved.
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:not_authedinvalid_authaccount_inactiveno_permissionuser_is_botinvalid_arg_nameinvalid_array_arginvalid_charsetinvalid_form_datainvalid_post_typmissing_post_typeteam_added_to_org
okbooleanrequired
Allowed:false

Error handling

Supply token with the users.profile:read scope. If provided, visibility must identify the profile visibility filter you want to apply.