Sample - Slack Web API
POST/admin.conversations.invite

Invite users to a channel

Invites one or more users to a public or private channel. Supply user_ids and channel_id in the form-encoded request body to identify the invitees and destination. The authenticated user must use a token with the administrative write scope.

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

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

Form-encoded channel invitation details.

user_idsstringrequired
The users to invite.
channel_idstringrequired
The channel that the users will be invited to.

2 status codes
200Returns a successful response containing the `ok` flag after processing the invitation request.
okbooleanrequired
Allowed:true
defaultReturned when the invitation cannot be processed successfully; the response contains `ok: false` and an error value.
errorstringrequired
Allowed:feature_not_enabledchannel_not_foundchannel_type_not_supporteddefault_org_wide_channelrestricted_actionuser_must_be_adminfailed_for_some_users
okbooleanrequired
Allowed:false

Error handling

token must provide the admin.conversations:write scope. The request body must include both user_ids and channel_id, and user_ids must identify the users to invite.