Create API key
Creates a key. The token is returned only in this response, so store it securely.
POST/api-keys
Body parameters
namestringrequiredA name to recognise the key, e.g.
Production.permission'full' | 'sending_access'Default
full.domain_idstringLimit the key to one sending domain.
The API key object
A key for the API and SMTP relay. Its token is only shown when it’s created.
idstringUnique ID of the API key.
namestringThe name you gave it.
permissionstringfull(every endpoint) orsending_access(only sending email).created_atstringWhen it was created (ISO 8601, UTC).
last_used_atstring | nullWhen it was last used, to the minute.
tokenstringOnly in the create response: the secret key, starting with
mv_.
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"
}