mailvina
DocsAPI keys ▾

API reference

API keys API

Create, list and delete API keys. Requires a `full` access key.

Create API key

Creates a key. The token is returned only in this response, so store it securely.

POST/api-keys

Body parameters

NameTypeDescription
namerequiredstringA name to recognise the key, e.g. Production.
permission'full' | 'sending_access'Default full.
domain_idstringLimit the key to one sending domain.

Request

curl -X POST 'https://api.mailvina.com/api-keys' \
  -H 'Authorization: Bearer mv_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Production",
  "permission": "sending_access"
}'

Response

{
  "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e",
  "token": "mv_123456789_abcdefghijklmnop"
}

List API keys

Lists active keys. Tokens are never returned again.

GET/api-keys

Request

curl -X GET 'https://api.mailvina.com/api-keys' \
  -H 'Authorization: Bearer mv_xxxxxxxxx'

Response

{
  "object": "list",
  "data": [
    {
      "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e",
      "name": "Production",
      "permission": "sending_access",
      "created_at": "2026-11-14T10:00:00.000Z",
      "last_used_at": "2026-11-14T10:00:00.000Z"
    }
  ]
}

Delete API key

Revokes a key. Requests using it fail immediately.

DELETE/api-keys/:id

Path parameters

NameTypeDescription
idrequiredstringThe API key ID.

Request

curl -X DELETE 'https://api.mailvina.com/api-keys/:id' \
  -H 'Authorization: Bearer mv_xxxxxxxxx'

Response

{
  "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e",
  "revoked": true
}