POST
/
deployments
/
{deployment_id}
/
token
Generate JWT Token
curl --request POST \
  --url https://api.wacht.dev/deployments/{deployment_id}/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "session_id": 1234567890,
  "template": "custom-claims"
}'
{
  "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires": 1734567890000
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Path Parameters

deployment_id
integer
required

The deployment ID

Body

application/json

Response

Successfully generated JWT token

The response is of type object.