Create an API Key

Parameters

namestring

Name for the API key

statusstring | null

Optional status of the API key. Possible values are 'Enabled' or 'Disabled'

Returns

Returns the API key object. The complete key will only be shown once upon creation.

POST/api-keys
curl -X POST https://api.next-cron.com/api-keys \
   -H "Authorization: Bearer $YOUR_API_KEY" \
   -H "Content-Type: application/json" \
   -d '{
    "name": "Production API Key"
  }'
Response
{
  "id": "49d10214-f4f1-497a-94b7-c0e597ad3fea",
  "name": "Production API Key",
  "status": "Enabled",
  "token": "iB68EEd+3baMdB6oYNt7Zaz3yr+bQ7m+c/EBqQxQTbU=",
  "createdAt": "2024-03-19T10:30:00Z",
  "lastUsed": null
}