EndpointsCreate a connection

Vault connections

Create a connection

PENDING_CONSENT until a key is set with :setCredential or OAuth consent completes.

POST/vaults/{vault}/connections
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

vaultstringrequired

A vault id chosen by its creator, unique in the Workspace. default is the Workspace vault.

Pattern: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$

Example: "default"

Body

application/json
connectorstringrequired

A connector's stable slug.

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$

Example: "akua"

namestring

Required string length: 1 - 100

ownerobject

Defaults to the calling user. A user owner is always the authenticated caller, never a client-supplied id.

owner.typeenum<string>required

Available options: workspace

auth_methodstring | null

Declared connector authentication method. Defaults to api_token. Akua delegated uses the verified signed-in person without a stored credential.

Minimum string length: 1

Response

application/json

VaultConnection

namestringrequired

Resource name vaults/{vault}/connections/{connection}.

idstringrequired

A connection id

Pattern: ^conn_[^\s/]{1,64}$

Example: "conn_j572abc123def456"

connectorstringrequired

A connector's stable slug.

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$

Example: "akua"

display_namestringrequired

Required string length: 1 - 100

ownerobjectrequired

Who owns the connection: the Workspace (a shared account), one user (their own account) or an end customer user in a reseller vault.

owner.typeenum<string>required

Available options: workspace

stateenum<string>required

Available options: PENDING_CONSENT, CONNECTED, REAUTH_REQUIRED, REVOKING, REVOKED, ERROR

created_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

etagstringrequired

Pass as If-Match on writes. OUTPUT_ONLY.

Maximum string length: 64