Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.

Body

application/json
card
string

Knowledge card id to connect, exactly as on the dashboard. A token card takes access_token. Cards that sign in at the vendor are rejected. When card is set, provider and label are unused — the card supplies both.

provider
enum<string>

Provider to connect. Use custom for an MCP server that you run. Self-hosted deployments accept custom only; the first-party providers rely on Strix-owned identities and return 400 there.

Available options:
custom,
supabase,
cloudflare,
vercel
label
string

Display name. For a custom server, a slug of this name becomes the tool prefix and must be unique in the organization.

access_token
string

Provider access token, or the bearer token that the custom MCP server expects. Sent without the Bearer prefix. Encrypted at rest and never returned.

url
string<uri>

MCP endpoint of a custom server. Required when provider is custom. Must use https and resolve to a public address.

kind
enum<string>

Section a custom server is listed under. Optional.

Available options:
infrastructure,
knowledge
project_ref
string

Supabase project reference (20 lowercase letters or digits). Optional, supabase only: when the token's projects can be listed, a reference outside that list is rejected; otherwise the reference is accepted without verification. It scopes the connection's runs to that project and becomes the connection's identity so one token can be connected once per project. Other providers return 400 when it is set, because nothing would enforce it.

notes
string | null

Guidance for the agent on when and how to use the connection.

applies_to_domain_ids
string<uuid>[]

Domain ids the connection is about. Sets which connections a new scan on the domain starts with selected; the scan's own connection selection decides what a run can reach. Empty means offered for every domain.

applies_to_repository_ids
string<uuid>[]

Repository ids the connection is about. Sets which connections a new scan on the repository starts with selected; the scan's own connection selection decides what a run can reach. Empty means offered for every repository.

Response

Cloud connection created.

connection
object
required