POST

Authorizations

x-api-key
string
header
required

Headers

Idempotency-Key
string

Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.

Required string length: 1 - 255

Body

application/json
mcp_server_url
string
required
vault_id
string
required
client_id
string
scope
string
display_name
string | null

Response

Created.

id
string
required
type
string
required

Always mcp_oauth_authorization.

Allowed value: "mcp_oauth_authorization"
status
enum<string>
required
Available options:
pending,
exchanging,
completed,
failed,
expired
mcp_server_url
string
required
vault_id
string
required
created_at
string<date-time>
required
expires_at
string<date-time>
required
authorization_url
string
required
completed_at
string<date-time>
credential_id
string

Set once completed.

error_code
string

Set once failed.