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

Approve a workspace invite request

Approves a workspace invite request. Supply invite_request_id to identify the request, and use team_id when you need to specify the workspace where it was made.

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

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

Optional form data identifying the invite request and workspace. invite_request_id is required.

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 an object containing `ok: true` when the workspace invite request is approved.
okbooleanrequired
Allowed:true
defaultReturns an object containing `ok: false` when the invite request cannot be approved.
okbooleanrequired
Allowed:false

Error handling

invite_request_id is required and must identify the invite request to approve. Use a token with the admin.invites:write scope; provide team_id when identifying the workspace explicitly.