# Request an OIDC token (/tokens/Tokens_request_OIDC)

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](/docs/reference/openid-connect/) on Fly.io.


`POST /tokens/oidc`

## Request Body

Type: `CreateOIDCTokenRequest`

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `aud` | `string` | No |  |
| `aws_principal_tags` | `boolean` | No |  |

## Responses

| Status | Description | Schema |
| --- | --- | --- |
| `200` | OIDC token |  |
| `400` | Bad Request |  |

The full machine-readable OpenAPI spec is available at /openapi.json.