POST
/v2/organizations/{organizationId}/slack/connectConnect a Slack workspace to an organization
Connects a Slack workspace to an organization using an authorization code. The organization owner can use this operation when the Slack integration feature is enabled for the organization.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
organizationIdintegerrequired
The numeric identifier of the organization to connect the Slack workspace to.
Slack workspace connection details.
codestringrequired
The authorization code used to connect the Slack workspace.
200Confirms that the Slack workspace connection was processed.
400Returned when the request is invalid or the authorization code is missing.
codestringrequired
paramsarray<object>optional
401Returned when the request is not authenticated.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to connect a Slack workspace or the Slack integration is unavailable for the organization.
codestringrequired
paramsarray<object>optional
404Returned when the organization does not exist.
codestringrequired
paramsarray<object>optional
Error handling
A 400 indicates an invalid request, a 401 indicates missing or invalid authentication, a 403 indicates insufficient permission, and a 404 indicates that the organization was not found. The organizationId path parameter must identify an existing organization. The request body must include code, the authorization code used to connect the Slack workspace.