Exchange API key compatibility

Deprecated

Deprecated compatibility endpoint. Same raw-key exchange and 300–900 second TTL; response omits organization_id and client_id. Prefer POST /api/auth/token-exchange.

Authentication

AuthorizationBearer

Long-lived sk_live_* or sk_test_* key. Use for token exchange and npm registry only.

Response headers

DeprecationstringOptional
true

Response

Success
access_tokenstring
token_typeenum
expires_ininteger300-900
scopestring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error