Confirm Slack OAuth
Complete a Slack installation by exchanging the code and state Slack returned to your redirect URL. Returns the new installation ID.
Authentication
x-api-keystring
Your Living Brain API key. Create one from the dashboard; keys are scoped to an organization and carry the role of the member they were issued to.
Path parameters
brainId
Brain id
Headers
x-subject-id
Identifies the end user the request is made on behalf of. Brains are owned by a
subject, so this determines which brains the caller can see.
Request
This endpoint expects an object.
code
Slack authorization code
state
Signed OAuth state
Response
installationId
ID of the Slack installation that was created or updated.
brainId
ID of the brain the installation is attached to.
teamId
Slack workspace (team) ID.
teamName
Slack workspace name.
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error