Sample - Slack Web API
POST/admin.inviteRequests.deny

Deny a workspace invite request

Denies a pending workspace invite request. Supply invite_request_id to identify the request and optionally provide team_id to identify its workspace. Authenticate with a token that has the admin.invites:write scope.

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

1 parameter · 2 body fields
tokenstringrequired
Authentication token with the `admin.invites:write` scope.

Optional workspace invite request denial data.

team_idstringoptional
ID for the workspace where the invite request was made.
invite_request_idstringrequired
ID of the request to invite.

2 status codes
200Returns a successful response with `ok` set to true.
okbooleanrequired
Allowed:true
defaultReturns the standard failure response with `ok` set to false.
okbooleanrequired
Allowed:false

Error handling

invite_request_id must be provided to identify the invite request. If supplied, team_id must identify the workspace where the request was made, and token must carry the admin.invites:write scope.