Skip to main content
POST
Reserve an integration connection before activation

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.

Minimum string length: 1

Body

application/json
deploymentKey
string
required

Stable caller-owned key, 1 to 128 trimmed printable characters, for this organization's pending setup. Repeating the same request returns the same connection, including after activation; changing the request or reusing a disconnected key returns a conflict.

Required string length: 1 - 128
label
string
required

Name that identifies the account the operator should connect later.

Required string length: 1 - 80
provider
string
required

Provider id from the integration catalog. Providers requiring an account identifier before setup cannot be reserved through this API; add them in the console.

Minimum string length: 1
organizationSlug
string

Required for Sentry: the organization whose issues this token must be able to read.

Maximum string length: 100
Pattern: ^[a-z0-9][a-z0-9_-]{0,99}$
permission
string

Required when this provider fixes its permission preset during sign-in. Choose one of its advertised permissions; agent grants must use that preset.

tools
string[]

Tools this connection may make available to agents. Required for providers with tools. Selected names together must fit within a 6 KiB encoded list. Static catalogs validate names now; after activation, updating the connection's tool selection validates names for providers that list tools. Other tools stay unavailable until selected explicitly.

Required array length: 1 - 200 elements
Required string length: 1 - 100

Response

OK

connectionId
string
required
read-only

Identifier for this connection (UUID). Server-assigned. Cite it when granting an agent access to the integration.

createdAt
string<date-time>
required
read-only

RFC 3339 timestamp of when this record was created. Server-assigned.

externalId
string
required
read-only

The provider's own identifier for the link, which token minting addresses. The installation id for GitHub; the composite {api_app_id}:{team_id} for authorized Slack connections; custom Slack setup not yet authorized uses pending:; reserved integrations awaiting sign-in use pending_install:; the customer service-account email for Google Cloud.

organizationId
string
required
read-only

Organization that owns this record. Resolved from the API key; never accepted from the caller.

provider
string
required
read-only

Stable slug of the third-party integration adapter this connection uses.

state
string
required
read-only

Lifecycle of the connection: pending awaits provider setup, sign-in, or a required token; active can mint tokens; suspended is restorable at the provider and resolves to no credential; revoked was uninstalled and must be installed again.

updatedAt
string<date-time>
required
read-only

RFC 3339 timestamp of the last change to this record. Server-assigned.

accountLogin
string
read-only

Name of the connected third-party account, e.g. the GitHub org or user login. Cached at install time for display, so no provider call is needed to show it.

accountType
string
read-only

Kind of account that was connected, as the provider reports it, e.g. Organization or User for GitHub and workspace for Slack.

availableMcpTools
string[]
read-only

On connection list, get, install-completion, and selection-update responses for a custom Slack app, Slack tools supported by its granted bot scopes and catalog availability. Some catalog tools remain unavailable regardless of scopes. Absent for non-custom connections; absence for a custom connection means no tools are available.

connectedBy
string
read-only

User who added the connection or most recently completed its install or sign-in. Some later changes, such as activation by a check or a Sentry token replacement, keep it. Recorded for audit.

lastCheck
object
read-only

Latest saved connection health evidence, with the time it was observed. Within one authorization, a more serious custom Slack failure code (app token, then client credentials, then bot scope drift) replaces a less serious one regardless of observation time; lower priority and older equal priority evidence is not saved. Historical evidence, not a guarantee of current availability. Absent until health evidence has been saved.

mcpTools
string[]
read-only

Native GitHub or Slack MCP tools selected for this organization, plus any tool a selected one implies (the GitHub wait_for_pr tool comes with pull_request_read). Slack user connections default to read tools; posting as the member must be selected explicitly. Other connections with no saved selection get every supported tool except opt-in tools that delete data. Custom Slack app selections are limited to availableMcpTools, which reflects granted bot scopes and catalog availability.

mergeAccountLabel
string
read-only

Operator-assigned name for this connection. Required for a named built-in vendor account. Until a name is set, an unnamed built-in vendor connection is named by its app (accountType, or externalId when that is empty) and any other connection by accountLogin (or its externalId when that is empty); a set name can be changed but not cleared. Agents see the name of a built-in vendor connection beside the connector; it never changes routing, tool access or tool names.

permissions
object
read-only

What the provider granted the install, as permission name to access level (e.g. contents: write). Used to narrow a minted token without a provider round trip and to explain why a permission preset is unavailable.

resourceSelection
string
read-only

Whether the install covers all of the account's resources or only chosen ones: all or selected. Absent when unknown, for example when a provider's granted-access lookup failed; do not read absence as all. Informational only; the authoritative list stays at the provider.

selectedTools
string[]
read-only

Operator-selected ceiling that limits grants on this connection before and after activation. Unavailable names remain visible for correction and cannot be used by agents.

usage
object
read-only

Runtime usage counts, supplied on the connection list unless it is read with view=summary.