Organization Slack Connections Api Service

Complete connecting a Slack workspace with the code and state Slack handed back to the front. Returns the organization's connection with that workspace, now active: a new one, the pending one, or the one the organization already had (reconnected).

post/v2/organizations/{organizationId}/slack-connections

Request

  • Base URL: https://app.metricool.com/api
  • URL: https://app.metricool.com/api/v2/organizations/{organizationId}/slack-connections
  • Auth: none declared

Path parameters

organizationIdinteger required

Id of the organization

Request body

codestring required

The code query parameter Slack added to the callback page.

statestring required

The state query parameter Slack added to the callback page, as returned by POST /v2/organizations/{organizationId}/slack-connections/authorizations.

Example request

{
  "code": "12171549956083.12345.abcdef",
  "state": "Xk3mVQ0b..."
}

Response

Workspace connected.

Changes

No recorded changes to this operation across all 4 revisions of this API.