Skip to main content
POST
Error

Authorizations

fastapiusersauth
string
cookie
required

Path Parameters

workspace_id
string<uuid>
required

Body

application/json

Install a workspace-owned Slack app over OAuth.

agent_preset_id
string<uuid>
required
provider
string
required
Allowed value: "slack"
client_id
string
required
Minimum string length: 1
client_secret
string
required
Minimum string length: 1
signing_secret
string
required
Minimum string length: 1
return_url
string
required
Minimum string length: 1
bot_id
string<uuid> | null

Bot to install into; it must already target agent_preset_id. If omitted, creates one.

app_token
string | null

App-level token (xapp-, or rotating xoxe.xapp-) with connections:write. Required when the deployment receives Slack events over Socket Mode; rejected otherwise.

Pattern: ^(xoxe\.)?xapp-.+
app_refresh_token
string | null

The refresh token Slack shows once beside a rotating xoxe.xapp- app-level token. Required with one; rejected otherwise.

Pattern: ^xoxe-.+

Response

Successful Response

bot
AgentChannelBotRead · object
required
authorization_url
string | null
required

Where to send the browser to finish the install; None when the provider has no browser step.