Skip to main content
POST
/
api
/
v1
/
auth
/
api-keys
/
issue
Issue API key (JWT)
curl --request POST \
  --url https://api.yapcoder.com/api/v1/auth/api-keys/issue \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "<string>",
  "ttl_hours": 123,
  "scope": "<string>"
}
'
{
  "api_key": "<string>",
  "expires_at": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
subject
string
required
ttl_hours
integer<int64>
scope
string

Response

API key issued

api_key
string
expires_at
integer<int64>