Skip to main content
POST
/
api-keys
Create API Key
curl --request POST \
  --url https://api.unosend.co/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "permission": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.unosend.co/llms.txt

Use this file to discover all available pages before exploring further.

name
string
required
A descriptive name for the API key.
permission
string
default:"full_access"
Permission level: full_access, sending_access, or read_only.

Request

curl -X POST https://api.unosend.co/api-keys \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Production Server"
  }'

Response

201
{
  "success": true,
  "data": {
    "id": "key_123",
    "name": "Production Server",
    "key": "un_abc123xyz...",
    "created_at": "2024-01-15T10:30:00.000Z"
  }
}
The full API key is only returned once upon creation. Store it securely.