Skip to content
Athena User Guide
Esc
↑↓navigate↵open⌘Jpreview

Mint an additional system API key

Only the event’s system key, which the Athena organizer panel holds, may call this. An organizer API key is refused with 403; use the panel.

POST/api/admin/api-keys/system
Authorization
AuthorizationBearer token · headerrequired
Request body
requiredapplication/json
labelstring
expiresInSecondsnumber
Responses
200

Success

idstringrequired
tokenstringrequired
expiresAtstring<date-time>required
401

Unauthorized

errorstringrequired
403

Response for status 403

errorstringrequired
409

Response for status 409

errorstringrequired
422

Validation failed

typestringrequired
onstringrequired
summarystring
messagestring
foundany
propertystring
expectedstring
500

Unhandled server error

errorstringrequired
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST '/api/admin/api-keys/system' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "label": "string",
  "expiresInSeconds": 0
}'
Response
{
  "id": "string",
  "token": "string",
  "expiresAt": "2019-08-24T14:15:22Z"
}

Was this page helpful?