slack
Slack API Errors
Error codes returned in the `error` field of Slack Web API JSON responses when `ok` is `false`.
28 codes
references api.slack.com/web
· All codes 28 codes
- account_inactive Account Inactive The authentication token is for a deleted user or workspace. Reinstall the app or generate a new token for an active account.
- cannot_auth_user Cannot Authenticate User The request relies on authentication via a session cookie, but no valid cookie was found on the request.
- channel_not_found Channel Not Found The value passed for the `channel` parameter does not refer to a channel the calling app or token can see.
- ekm_access_denied EKM Access Denied Access to this resource is denied due to the workspace's Enterprise Key Management (EKM) policy, typically because a key used to encrypt the content has been disabled.
- fatal_error Fatal Error The server could not complete the requested operation due to a catastrophic, unrecoverable error. Retrying is unlikely to help.
- internal_error Internal Error The server could not complete the requested operation due to an unexpected internal issue. Retrying the request may succeed.
- invalid_arg_name Invalid Argument Name The method was called with an argument whose name is not recognised. Check the method's documentation for the correct parameter names.
- invalid_array_arg Invalid Array Argument The method was passed a PHP-style array argument, such as a parameter named `foo[0]`. Slack's API never accepts arguments in this form.
- invalid_auth Invalid Authentication Some aspect of authentication, such as the provided token, cannot be validated. Verify the token is well-formed and has not been corrupted.
- invalid_charset Invalid Charset The method was called via a POST request, but the charset specified in the Content-Type header was invalid. Use UTF-8.
- invalid_form_data Invalid Form Data The method was called via a POST request with Content-Type application/x-www-form-urlencoded or multipart/form-data, but the form data was missing or could not be parsed.
- invalid_post_type Invalid Post Type The method was called via a POST request, but the specified Content-Type was invalid. Valid types are application/x-www-form-urlencoded, multipart/form-data, and application/json.
- is_archived Channel Archived The target channel has been archived, so new messages and most other write operations are no longer accepted.
- is_bot Bot User Not Allowed This method cannot be called by a bot user; it requires a token belonging to a regular user.
- missing_post_type Missing Post Type The method was called via a POST request and included a data payload, but the request did not include a Content-Type header.
- missing_scope Missing Scope The token used is not granted the specific OAuth scope required to complete this request. Add the required scope and reinstall the app.
- msg_too_long Message Too Long The message text exceeds the maximum allowed length. Split the content across multiple messages or shorten it.
- no_permission No Permission The workspace token used in this request does not have the permissions necessary to complete the request. Check the app's installed scopes.
- not_allowed_token_type Token Type Not Allowed The method was called with a token type, such as a bot token versus a user token, that is not permitted for this endpoint.
- not_authed Not Authenticated No authentication token was provided in the request. Include a valid token in the Authorization header or as the `token` parameter.
- not_in_channel Not In Channel Cannot post a message as a user who is not a member of the target channel. Invite the user or bot to the channel first.
- org_login_required Organisation Login Required The workspace is undergoing an Enterprise Grid migration and will not be available for API access until the migration completes.
- ratelimited Rate Limited The request has been rate limited. Wait for the duration given in the Retry-After response header before retrying.
- request_timeout Request Timeout The method was called via a POST request, but the POST data was either missing or truncated before it reached Slack's servers.
- restricted_action Restricted Action A workspace preference, such as one limiting who can post or create channels, prevents the authenticated user from completing this action.
- service_unavailable Service Unavailable The service backing this endpoint is temporarily unavailable. Retry the request after a short delay.
- token_revoked Token Revoked The authentication token has been revoked, typically because a workspace admin or the installing user uninstalled the app.
- user_not_found User Not Found The value passed for the `user` parameter does not refer to a valid, visible user in the workspace.