v1

latestOpenAPI 3.0.02026-07-174565114.3 KB
OAuth

OAuth 2.0 Token Exchange Endpoint

Exchanges an OAuth subject token for a Tambo access token following RFC 6749 and RFC 8693 specifications. Accepts form-encoded data and validates the subject token based on project OAuth validation settings.

post/oauth/token

Response

Token exchange successful

access_tokenstring required

JWT access token signed by Tambo with projectId as issuer

token_typestring required

Token type - always 'Bearer'

expires_innumber required

Token expiration time in seconds

issued_token_typestring required

Type of the issued token

Example response

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "issued_token_type": "urn:ietf:params:oauth:token-type:access_token"
}