Fly.io
Tokens

Get Current Token Information

View as Markdown

Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions

GET
/tokens/current

Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions

Authorization

bearerAuth
AuthorizationBearer <token>

A Fly.io access token. Create one with fly tokens create.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/tokens/current"
{  "tokens": [    {      "apps": [        "string"      ],      "org_slug": "string",      "organization": "string",      "restricted_to_machine": "string",      "source_machine_id": "string",      "token_id": "string",      "user": "string"    }  ]}
{  "details": {},  "error": "string",  "status": "unknown"}
{  "details": {},  "error": "string",  "status": "unknown"}