| title | TokenExchangeRequest |
|---|
RFC 8693 token exchange request body (application/x-www-form-urlencoded).
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
federation_policy_id |
str | ✅ | The federation policy to evaluate, from Settings → Workload identity. Binds the exchange to one organization. | 4b2f7d1e-8c3a-4e5f-9a6b-1c2d3e4f5a6b |
grant_type |
components.GrantType | ✅ | Must be urn:ietf:params:oauth:grant-type:token-exchange. |
urn:ietf:params:oauth:grant-type:token-exchange |
requested_token_type |
Optional[components.RequestedTokenType] | ➖ | Optional; when present must be urn:ietf:params:oauth:token-type:access_token. |
urn:ietf:params:oauth:token-type:access_token |
scope |
Optional[components.TokenExchangeRequestScope] | ➖ | Optional; when present must match the policy's key: management for a management key, inference otherwise. |
inference |
subject_token |
str | ✅ | The JWT issued by your identity provider. | <jwt from your identity provider> |
subject_token_type |
components.SubjectTokenType | ✅ | Must be urn:ietf:params:oauth:token-type:jwt. |
urn:ietf:params:oauth:token-type:jwt |