Skip to main content
POST
/
api-keys
Create API key
curl --request POST \
  --url https://api.rendobar.com/api-keys \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Production API Key",
  "expiresIn": 2592000
}
'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "prefix": "<string>",
    "createdAt": 123,
    "lastUsedAt": 123,
    "expiresAt": 123,
    "key": "<string>"
  }
}

Body

application/json
name
string

Descriptive name for the key (defaults to 'API Key')

Example:

"Production API Key"

expiresIn
integer

Expiration in seconds (e.g., 2592000 = 30 days). Omit for no expiry.

Example:

2592000

Response

API key created successfully

data
object
required