Skip to main content
POST
/
api
/
v1
/
api-keys
Create API key
curl --request POST \
  --url https://api.devhelm.io/api/v1/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "key": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "expiresAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key (dh_live_...) or Auth0 JWT token

Body

application/json
name
string
required

Human-readable name to identify this API key

Maximum string length: 200
expiresAt
string<date-time> | null

Optional expiration timestamp in ISO 8601 format

Response

201 - */*

Created

data
object

Created API key with the full key value — store it now, it won't be shown again