Skip to navigation

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_typestringRequired

RFC 8693 token-exchange grant vocabulary.

identity_provider_idstringRequired
Workload identity provider selected for validation and policy evaluation.
subject_token_typestringRequired

JWT token type, or the private mtls-x509 extension.

subject_tokenstring or nullOptional

External OIDC JWT; omit for mtls-x509, which uses the TLS certificate.

Response

Short-lived workload access token

access_tokenstring
Prefixed compact Mixlayer workload JWT.
expires_inlong>=0
Remaining token lifetime in seconds.
issued_token_typestring
OAuth token type describing the issued credential.
token_typestring
Bearer authentication scheme.

Errors

400
Bad Request Error
413
Content Too Large Error
429
Too Many Requests Error
503
Service Unavailable Error