Tokens

Request an OIDC token

Changed on

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

  • Base URL
    https://api.machines.dev
  • URL
    https://api.machines.dev/v1/tokens/oidc
  • Auth
    HTTP bearer

Request body

audstring
aws_principal_tagsboolean

Example request

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

Response

OIDC token

Changes

    • warning

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

    • warning

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