Tokens

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. Learn more about using OpenID Connect on Fly.io.

post/v1/tokens/oidc

Request body

audstring
aws_principal_tagsboolean

Example request

{
  "aud": "https://fly.io/org-slug"
}

Response

OIDC token

Changes

Changed in 3 of the 9 revisions of this API.21

    • added the new volume_placement_capacity enum value to the status response property for the response status 400

      response-property-enum-value-added

    • added the new name_taken enum value to the status response property for the response status 400

      response-property-enum-value-added

    • endpoint added

      endpoint-added