Exchange a workload credential
Accepts strict JSON and returns a short-lived Mixlayer bearer token. For OIDC, supply a JWT subject_token. For the private urn:mixlayer:params:oauth:token-type:mtls-x509 extension, omit subject_token and present a TLS client certificate to Cloudflare. X.509 requires authenticated certificate forwarding and environment enablement.
Request
This endpoint expects an object.
grant_type
RFC 8693 token-exchange grant vocabulary.
identity_provider_id
Workload identity provider selected for validation and policy evaluation.
subject_token_type
JWT token type, or the private mtls-x509 extension.
subject_token
External OIDC JWT; omit for mtls-x509, which uses the TLS certificate.
Response
Short-lived workload access token
access_token
Prefixed compact Mixlayer workload JWT.
expires_in
Remaining token lifetime in seconds.
issued_token_type
OAuth token type describing the issued credential.
token_type
Bearer authentication scheme.
Errors
400
Bad Request Error
413
Content Too Large Error
429
Too Many Requests Error
503
Service Unavailable Error