Skip to main content
POST
/
admin
/
generate-token
Generate a short-lived JWT admin token
curl --request POST \
  --url https://api.comfy.org/admin/generate-token \
  --header 'Authorization: Bearer <token>'
{
  "expires_at": "2023-11-07T05:31:56Z",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

JWT token generated successfully

expires_at
string<date-time>
required

When the token expires

token
string
required

The JWT admin token