Skip to main content
POST
/
v1
/
api-keys
Create API Key
curl --request POST \
  --url https://api.deepxl.ai/v1/api-keys/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "id": 124,
  "name": "New Production Key",
  "apiKey": "dxl_newkey1234567890abcdef",
  "createdOn": 1725814800,
  "createdOnISO": "2024-09-08T15:00:00",
  "modifiedOn": 1725814800,
  "modifiedOnISO": "2024-09-08T15:00:00",
  "createdBy": "user_123abc"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string | null

Display name for the API key

Response

API key created successfully