← Back to API Reference

POST /api-keys

Create Api Key

Compatibility endpoint to create api key data.

Request (cURL)

curl -X POST "http://localhost:8080/v1/api-keys" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Production Mailer Key",
  "permission": "sending_access",
  "domain": "mglprime.uk"
}'

Response Example

{
  "id": "id_123"
}

Request Body Example

{
  "name": "Production Mailer Key",
  "permission": "sending_access",
  "domain": "mglprime.uk"
}