POST

授权

x-api-key
string
header
必填

请求头

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

请求体

application/json
mcp_server_url
string
必填
vault_id
string
必填
client_id
string
scope
string
display_name
string | null

响应

Created.

id
string
必填
type
string
必填

Always mcp_oauth_authorization.

Allowed value: "mcp_oauth_authorization"
status
enum<string>
必填
可用选项:
pending,
exchanging,
completed,
failed,
expired
mcp_server_url
string
必填
vault_id
string
必填
created_at
string<date-time>
必填
expires_at
string<date-time>
必填
authorization_url
string
必填
completed_at
string<date-time>
credential_id
string

Set once completed.

error_code
string

Set once failed.