GenerateTokenRequest
HTTP API schema
GenerateTokenRequest fields
- grant_type
stringRequired The OAuth grant type. Use authorization_code for code exchange, or refresh_token to exchange a refresh token for an access token.
- client_id
stringRequired The client ID.
- client_secret
string Required for confidential clients. Public DCR/CIMD clients omit this field and use PKCE.
- subject_token
string Identity token to exchange; required for urn:ietf:params:oauth:grant-type:token-exchange.
- subject_token_type
string Subject token type; use urn:ietf:params:oauth:token-type:id_token for identity token exchange.
- requested_token_type
string Requested token type for identity token exchange.
- audience
string Target audience for identity token exchange.
- device_code
string Device code; required for urn:ietf:params:oauth:grant-type:device_code.
- code
string Authorization code; required when grant_type is authorization_code.
- refresh_token
string The refresh token; required when grant_type is refresh_token.
- redirect_uri
string Redirect URI; required when grant_type is authorization_code.
- code_verifier
string Original PKCE verifier; required for public-client code exchange.
- resource
string Exact resource from authorization; canonical issuer for REST or issuer/mcp for MCP. Required for DCR and CIMD.
format: "uri"
- scope
string Optional narrower subset during refresh; cannot add scopes.
- client_assertion
string Signed JWT proving client identity (RFC 7523); required with client_assertion_type for private_key_jwt clients using the client_credentials grant.
maxLength: 8192
- client_assertion_type
string Must be urn:ietf:params:oauth:client-assertion-type:jwt-bearer when client_assertion is set.
Allowed values: urn:ietf:params:oauth:client-assertion-type:jwt-bearer.