Skip to main content
POST
Create App deploy 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>.

Path Parameters

app_name
string
required

Fly App Name

Body

application/json

Request body

expiry
string

How long the token is valid, as a Go duration string such as 720h. If omitted, the token is valid for as long as the token used to make this request.

Response

200 - application/json

OK

token
string

The deploy token, including its FlyV1 scheme prefix, ready to be used as an Authorization header value. It is derived from the token used to make this request and limited to the app, plus the organization's WireGuard and remote builder features.