Skip to main content
POST
Request an OIDC token

Authorizations

Authorization
string
header
required

A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.

Body

application/json

Optional request body

Optional parameters

aud
string

Value of the token's aud claim. Defaults to https://fly.io/<org-slug>.

Example:

"https://fly.io/org-slug"

aws_principal_tags
boolean

Add AWS principal tag claims (https://aws.amazon.com/tags/principal_tags/<tag>) for use with AWS IAM: FlyAppName, FlyOrgSlug, FlyOrgId, FlyMachineName and FlyRegion.

Response

OIDC token

The response is of type string.