A connection lets an identity act in a third-party account the organization has authorized. There is no fixed list of supported apps — search the catalogue.
- Find the app.
GET /v1/connections/apps?search=…searches the catalogue — over a thousand apps — and answers with theslugevery later call takes asconnector. - An auth config is org-level and says how that app authenticates. Created once, shared by every identity that connects it.
- A connection is identity-level: the connected account itself, minted against an auth config.
Apps
The app object
Which setup paths work for this app.
managed_oauth means one call and no credentials of your own; oauth means registering an app with the vendor first; api_key means the person authorizing types a key on the hosted page.Search apps
GET /v1/connections/apps — scope agents:read
Retrieve an app
GET /v1/connections/apps/{slug} — scope agents:read
Everything the two setup calls need before either is made. not_found (404) for an id the catalogue does not know — this is what replaced the old connector enum.
What the person authorizing must still supply — an account subdomain, a region, a workspace. Each has
name, label, description and required. Pass them to POST /v1/connections as fields, or leave them and the hosted page asks.Retrieve an app’s logo
GET /v1/connections/apps/{slug}/logo — scope agents:read
The app’s logo as image bytes, not JSON: the response carries the image’s own content-type and cache-control: public, max-age=86400, so it can sit directly in an <img> tag. The app object itself carries no logo URL. not_found (404) when the catalogue has no image for the app.
Auth configs
The auth config object
Create an auth config
POST /v1/connections/auth_configs — scope agents:write
managed_oauth (default), oauth, or api_key. Check the app’s auth first — not every app offers every path.Scopes to request. Ignored where the app’s managed OAuth app is registered with a fixed set.
Pin the callable operations. Omitted, the app’s
default_tools are pinned. This is a hard boundary — anything not pinned does not exist to the agent.List auth configs
GET /v1/connections/auth_configs — scope agents:read. Returns a paginated list.
Delete an auth config
DELETE /v1/connections/auth_configs/{id} — scope agents:write. Connections already minted against it stop refreshing.
Connections
The connection object
initiated — minted, waiting for someone to complete the Connect Link.
active — authorized and usable.
failed — authorization did not complete.
disconnected — the stored credential was dropped.Connect an account
POST /v1/connections — scope billing:write
Mints the connected account and its Connect Link; the account starts initiated. This is billing:write on the wire and not agents:write because a managed account is a per-account charge at the provider.
An app
slug instead of auth_config_id: the organization’s managed config for that app is reused, or created. In a developer workspace this is the only way to connect.Developer workspaces: an
https URL the person lands on after signing in. Left out, they land on the console’s connection page.Values for the config’s
connect_fields, e.g. { "subdomain": "acme" }. Omitted, the hosted page asks the person instead — so this is a convenience, never a gate.validation_failed (400) when identity is not an idn_ id or auth_config_id is not an ac_ id; not_found (404) for an unknown auth config or identity; forbidden (403) without billing:write; insufficient_credits (402).
List connections
GET /v1/connections — scope agents:read
Returns a paginated list of connection objects.
Retrieve a connection
GET /v1/connections/{id} — scope agents:read
Reconciles status against the provider before answering — this read is the refresh. Poll it to watch an initiated account become active, rather than assuming the Connect Link was completed. There is no connection.* webhook yet, so polling this route is the only way to learn that a person finished authorizing.
List a connection’s actions
GET /v1/connections/{id}/tools — scope agents:read (or tools:read)
The actions the connection may call: { "object": "list", "data": [{ "name", "description", "parameters" }] }, where
parameters is a JSON Schema. Free.
Run an action
POST /v1/connections/{id}/execute — scope tools:run (or agents:write)
Runs one action as the connection’s identity. Supports Idempotency-Key. Billed per call by app; see
Connections pricing. Developer workspaces need a funded workspace.
connection_not_active (409) unless the connection is active; not_found (404); funding_required / insufficient_credits (402).
Disconnect
DELETE /v1/connections/{id} — scope agents:write
Revoke. The provider drops the stored credential and every later call through the connection is refused. Returns the standard deleted envelope.
Identities
The persona a connection is bound to.