Skip to main content
You can use the Tokens resource to request an OpenID Connect (OIDC) token from a 3rd-party service. Learn more about using OpenID Connect on Fly.io.

Request an OIDC token

Request an Open ID Connect token for your Machine. Customize the audience claim with the aud parameter. This returns a JWT token.

Body parameters

string
The audience claim for the token (the recipient of this access token).
POST/v1/tokens/oidc
Status: 200 OK - Example response