К содержимому
Voaaro
RU

API

Справочник API

Все маршруты публичного API, их параметры и ответы, сгенерированные из описания OpenAPI 3.1.

Эта страница генерируется из описания API в формате OpenAPI 3.1 - того самого, которое при каждой сборке автоматически сверяется с маршрутами сервиса: если маршрут добавлен или удалён без обновления описания, тесты не проходят. Замените $VOAARO_URL адресом вашего экземпляра (https://mail.example.com).

Полное описание можно скачать для ваших инструментов (генераторов клиентов, Postman, Insomnia): openapi.json.

Emails

Transactional sending: one email, a batch, scheduling, tracking and statistics.

List sent emails

GET /api/v1/emails · Нужный ключ : sending_access / full_access

Newest first. A key sees its own emails; a full_access application key also sees those of the other application keys of its domains.

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/emails" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "email",
      "id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
      "from": "notifications@example.com",
      "to": [
        "client@example.org"
      ],
      "subject": "Your code: 482913",
      "status": "sent",
      "last_event": "delivered",
      "created_at": "2026-11-12T09:30:00.000Z",
      "scheduled_at": null,
      "tags": [
        {
          "name": "category",
          "value": "otp"
        }
      ]
    }
  ]
}

Send an email

POST /api/v1/emails · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)stringSame key and same body within 24 h: the first response is replayed, nothing is sent again.

Тело запроса

ИмяТипОписание
from (обязательно)stringSender, Name <address@domain> or address@domain, on a domain of the key.
to (обязательно)string | string[]Recipient(s). to + cc + bcc: 50 at most.
ccstring | string[]Copy recipients.
bccstring | string[]Blind copy recipients.
reply_tostring | string[]Reply-to address(es), 5 at most.
subjectstringSubject, one line (required unless the template provides it). (max. 998)
htmlstringHTML body (html and/or text).
textstringPlain text body.
headersobjectExtra headers (20 at most; reserved names and prefixes refused).
attachmentsobject[]Attachments: 20 at most, 10 MB decoded in total. (max. 20)
attachments[].filename (обязательно)stringFile name (max. 200 bytes, no / \ " or control characters).
attachments[].content (обязательно)stringFile content, standard base64. path (remote URL) is not supported.
attachments[].content_typestringMIME type, default application/octet-stream (not multipart/ nor message/).
attachments[].content_idstringContent-ID for an inline image referenced as cid: in the HTML.
tagsobject[]Tags, [{name, value}] or {name: value} (10 at most). (max. 10)
tags[].name (обязательно)stringTag name (1-50 bytes).
tags[].value (обязательно)stringValue (max. 200 bytes).
scheduled_atstringSend later: RFC 3339 date or in 10 min style delay, 30 days at most (alias send_at).
templateobjectPublished template of the sending domain or of the instance (application keys only; not with html/text).
template.aliasstringAlias of a published template (or id).
template.idstringTemplate id (or alias).
template.variablesobjectValues of the template variables.

cURL

curl -X POST "$VOAARO_URL/api/v1/emails" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <notifications@example.com>",
    "to": [
      "client@example.org"
    ],
    "subject": "Your code: 482913",
    "html": "<p>Your code: <strong>482913</strong></p>",
    "tags": [
      {
        "name": "category",
        "value": "otp"
      }
    ]
  }'

Ответы

  • 200 Accepted (queued). suppressed: recipients on the suppression list, not sent.
  • 401 Missing, invalid or too limited key.
  • 403 Refused for this key (domain, identity, suspension).
  • 409 Idempotency-Key reused with another body.
  • 422 Invalid request (message says which field).
  • 429 Daily quota exceeded, or too many invalid keys from this IP.
200
{
  "id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
  "suppressed": []
}

Send a batch (1 to 100 emails)

POST /api/v1/emails/batch · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)stringSame key and same body within 24 h: the first response is replayed, nothing is sent again.
x-batch-validation (заголовок)"strict" | "permissive"strict (default): all or nothing; permissive: valid items are sent, the others listed in errors.

cURL

curl -X POST "$VOAARO_URL/api/v1/emails/batch" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "from": "Acme <notifications@example.com>",
      "to": [
        "a@example.org"
      ],
      "subject": "Hello",
      "text": "Hello A"
    },
    {
      "from": "Acme <notifications@example.com>",
      "to": [
        "b@example.org"
      ],
      "subject": "Hello",
      "text": "Hello B"
    }
  ]'

Ответы

  • 200 Accepted. In permissive mode, errors: [{index, message}] lists refused items.
  • 401 Missing, invalid or too limited key.
  • 403 Refused for this key (domain, identity, suspension).
  • 409 Conflict with the current state.
  • 422 Invalid request (message says which field).
  • 429 Daily quota exceeded, or too many invalid keys from this IP.
200
{
  "data": [
    {
      "id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
      "suppressed": []
    },
    {
      "id": "8a1d2c3b-0e4f-4a5b-9c6d-7e8f9a0b1c2d",
      "suppressed": []
    }
  ]
}

Sending metrics

GET /api/v1/emails/metrics · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
start_date (запрос)stringYYYY-MM-DD (default: 7 days ago).
end_date (запрос)stringYYYY-MM-DD (default: today, UTC).
granularity (запрос)stringdaily (default), weekly or monthly.
metrics (запрос)stringComma-separated counters (default: all).
dimensions (запрос)stringperiod, domain, api_key or tag.
domain (запрос)stringFilter on a domain name.
api_key_id (запрос)stringFilter on a key.
timezone (запрос)stringUTC only.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/metrics" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "metrics",
  "start_date": "2026-11-06",
  "end_date": "2026-11-12",
  "timezone": "UTC",
  "granularity": "daily",
  "totals": {
    "sent": 1240,
    "delivered": 1228,
    "bounced": 4,
    "complained": 0,
    "opened": 610,
    "clicked": 95,
    "delivery_rate": 99
  }
}

Sending metrics (alias)

GET /api/v1/metrics · Нужный ключ : sending_access / full_access

cURL

curl -X GET "$VOAARO_URL/api/v1/metrics" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 Same as GET /api/v1/emails/metrics.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Retrieve an email

GET /api/v1/emails/{id} · Нужный ключ : sending_access / full_access

Status, recipients with their delivery status, events, content and attachments. Kept 30 days after sending.

Параметры

ИмяТипОписание
id (путь, обязательно)stringEmail id.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "email",
  "id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
  "from": "notifications@example.com",
  "subject": "Your code: 482913",
  "status": "sent",
  "last_event": "delivered",
  "to": [
    "client@example.org"
  ],
  "recipients": [
    {
      "email": "client@example.org",
      "type": "to",
      "status": "delivered",
      "smtp_reply": "250 2.0.0 OK"
    }
  ],
  "events": [
    {
      "type": "accepted",
      "recipient": null,
      "at": "2026-11-12T09:30:00.000Z",
      "details": {}
    },
    {
      "type": "delivered",
      "recipient": "client@example.org",
      "at": "2026-11-12T09:30:02.000Z",
      "details": {
        "smtp_reply": "250 2.0.0 OK"
      }
    }
  ],
  "attachments": []
}

Reschedule an email

PATCH /api/v1/emails/{id} · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringEmail id.

Тело запроса

ИмяТипОписание
scheduled_at (обязательно)stringNew date (RFC 3339 or in …), alias send_at.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/emails/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scheduled_at": "in 2 hours"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 No longer queued.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "email",
  "id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
  "scheduled_at": "2026-11-12T11:30:00.000Z"
}

Cancel a scheduled email

POST /api/v1/emails/{id}/cancel · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringEmail id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/emails/<id>/cancel" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Too late: already sent.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "email",
  "id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
  "status": "canceled"
}

List the attachments of a sent email

GET /api/v1/emails/{id}/attachments · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringEmail id.
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/<id>/attachments" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Retrieve an attachment (signed download link)

GET /api/v1/emails/{id}/attachments/{attachment} · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringEmail id.
attachment (путь, обязательно)stringAttachment id or index.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/<id>/attachments/<attachment>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "attachment",
  "id": "0c1d…",
  "index": 0,
  "filename": "invoice.pdf",
  "size": 48213,
  "content_type": "application/pdf",
  "content_disposition": "attachment",
  "content_id": null,
  "download_url": "https://mail.example.com/api/v1/attachments/0c1d…/download?expires=…&signature=…",
  "expires_at": "2026-11-12T10:30:00.000Z"
}

Download an attachment

GET /api/v1/attachments/{attachment}/download · Нужный ключ : не нужен (подписанная ссылка, 1 ч)

Параметры

ИмяТипОписание
attachment (путь, обязательно)stringAttachment id.
expires (запрос)integerExpiry (from download_url).
signature (запрос)stringSignature (from download_url).

cURL

curl -X GET "$VOAARO_URL/api/v1/attachments/<attachment>/download" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 The file (Content-Disposition: attachment).
  • 403 Invalid or expired link.
  • 429 Too many requests (Retry-After says when to retry).

Create a share link

POST /api/v1/emails/{id}/share · Нужный ключ : sending_access / full_access

Public read-only page of the email (never shows bcc).

Параметры

ИмяТипОписание
id (путь, обязательно)stringEmail id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
expires_instringLink lifetime, e.g. 10m, 2 hours, 1 day (1 minute to 48 hours, default 48 hours).

cURL

curl -X POST "$VOAARO_URL/api/v1/emails/<id>/share" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "expires_in": "2 hours"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "email",
  "id": "4f9c1e0a-5b8d-4c7e-9a31-2d6f8b0c7e15",
  "url": "https://mail.example.com/share/9f…",
  "expires_at": "2026-11-12T11:30:00.000Z"
}

List sending events

GET /api/v1/emails/events · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).
type (запрос)stringEvent type.
email_id (запрос)stringOnly this email.
recipient (запрос)stringOnly this recipient.
created_after (запрос)stringISO 8601 date (inclusive).
created_before (запрос)stringISO 8601 date (exclusive).

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/events" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 Events of the last 30 days, newest first.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": true,
  "data": [
    {
      "object": "email_event",
      "id": "1042",
      "email_id": "4ef2…",
      "type": "delivered",
      "recipient": "jane@example.com",
      "details": {
        "smtp_reply": "250 2.0.0 OK"
      },
      "created_at": "2026-11-12T08:00:03.120Z"
    }
  ]
}

Receiving

Emails received by the mailbox of a personal key.

List received emails

GET /api/v1/emails/receiving · Нужный ключ : личный ключ с приёмом почты

Mailbox of the owner of the personal key (receiving turned on for the key).

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).
include_spam (запрос)booleanInclude spam (excluded by default).
include_trash (запрос)booleanInclude trash.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/receiving" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "email",
      "id": "Mb3a9c2e0",
      "from": "client@example.org",
      "to": [
        "me@example.com"
      ],
      "subject": "Question",
      "created_at": "2026-11-12T08:00:00Z",
      "spam": false,
      "attachments": []
    }
  ]
}

Retrieve a received email

GET /api/v1/emails/receiving/{id} · Нужный ключ : личный ключ с приёмом почты

Параметры

ИмяТипОписание
id (путь, обязательно)stringMessage id.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/receiving/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 Summary plus html, text and headers.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

List the attachments of a received email

GET /api/v1/emails/receiving/{id}/attachments · Нужный ключ : личный ключ с приёмом почты

Параметры

ИмяТипОписание
id (путь, обязательно)stringMessage id.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/receiving/<id>/attachments" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Retrieve an attachment of a received email

GET /api/v1/emails/receiving/{id}/attachments/{attachment} · Нужный ключ : личный ключ с приёмом почты

Параметры

ИмяТипОписание
id (путь, обязательно)stringMessage id.
attachment (путь, обязательно)stringAttachment id.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/receiving/<id>/attachments/<attachment>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 Attachment with a download_url valid 1 hour.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Download an attachment of a received email

GET /api/v1/emails/receiving/{id}/attachments/{attachment}/download · Нужный ключ : не нужен (подписанная ссылка, 1 ч)

Параметры

ИмяТипОписание
id (путь, обязательно)stringMessage id.
attachment (путь, обязательно)stringAttachment id.
account (запрос)stringFrom download_url.
expires (запрос)integerFrom download_url.
signature (запрос)stringFrom download_url.

cURL

curl -X GET "$VOAARO_URL/api/v1/emails/receiving/<id>/attachments/<attachment>/download" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 The file.
  • 403 Invalid or expired link.
  • 429 Too many requests (Retry-After says when to retry).

Domains

Dedicated sending domains and their DNS records (application keys).

List domains

GET /api/v1/domains · Нужный ключ : full_access

Domains of the key (application keys only).

Параметры

ИмяТипОписание
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).

cURL

curl -X GET "$VOAARO_URL/api/v1/domains" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "domain",
      "id": "7d9e…",
      "name": "notify.example.com",
      "kind": "sending",
      "status": "verified",
      "capabilities": {
        "sending": "enabled",
        "receiving": "disabled"
      }
    }
  ]
}

Add a sending domain

POST /api/v1/domains · Нужный ключ : full_access

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
name (обязательно)stringSubdomain of a domain of the key, e.g. notify.example.com.
regionstringAccepted for compatibility, ignored.
capabilitiesobjectDefault: sending enabled, receiving disabled.
capabilities.sending"enabled" | "disabled"Sending from this domain.
capabilities.receiving"enabled" | "disabled"Receiving (MX) on this domain.

cURL

curl -X POST "$VOAARO_URL/api/v1/domains" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "notify.example.com"
  }'

Ответы

  • 200 Created: the domain with the DNS records to publish.
  • 400 Name refused (public provider, server name, both capabilities off).
  • 401 Missing, invalid or too limited key.
  • 403 Refused for this key (domain, identity, suspension).
  • 409 Already exists.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Retrieve a domain and its DNS records

GET /api/v1/domains/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringDomain id.

cURL

curl -X GET "$VOAARO_URL/api/v1/domains/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "domain",
  "id": "7d9e…",
  "name": "notify.example.com",
  "status": "pending",
  "records": [
    {
      "record": "DKIM",
      "name": "v1-ed25519-20261112._domainkey.notify",
      "type": "TXT",
      "value": "v=DKIM1; k=ed25519; p=…",
      "ttl": "Auto",
      "status": "pending",
      "need": "required"
    }
  ]
}

Update a domain

PATCH /api/v1/domains/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringDomain id.

Тело запроса

ИмяТипОписание
capabilitiesobjectSending and receiving.
capabilities.sending"enabled" | "disabled"Sending from this domain.
capabilities.receiving"enabled" | "disabled"Receiving (MX) on this domain.
open_trackingbooleanOnly false is accepted (tracking is set per key).
click_trackingbooleanOnly false is accepted.
tls"opportunistic"Only opportunistic.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/domains/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "capabilities": {
      "receiving": "enabled"
    }
  }'

Ответы

  • 200 OK.
  • 400 Both capabilities off.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Receiving still used by mailboxes.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "domain",
  "id": "7d9e…"
}

Delete a sending domain

DELETE /api/v1/domains/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringDomain id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/domains/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Mailbox domain, or still in use.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "domain",
  "id": "7d9e…",
  "deleted": true
}

Check the DNS records now

POST /api/v1/domains/{id}/verify · Нужный ключ : full_access

Restarts a failed verification for 72 hours.

Параметры

ИмяТипОписание
id (путь, обязательно)stringDomain id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/domains/<id>/verify" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "domain",
  "id": "7d9e…"
}

API keys

Keys created by a full_access key, within its own domains.

List API keys

GET /api/v1/api-keys · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/api-keys" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "1b2c…",
      "name": "Production",
      "prefix": "mlk_3fa85f64",
      "permission": "sending_access",
      "domains": [
        "example.com"
      ],
      "created_at": "2026-11-01T10:00:00Z",
      "last_used_at": "2026-11-12T09:30:00Z"
    }
  ]
}

Create an API key

POST /api/v1/api-keys · Нужный ключ : full_access

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
name (обязательно)stringKey name (1-60 characters).
permission"sending_access" | "full_access"sending_access (default) or full_access.
domainsstring[]Domains of the new key, among those of the calling key (application keys).
domain_idstringA single domain name (instead of domains).

cURL

curl -X POST "$VOAARO_URL/api/v1/api-keys" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Billing service",
    "permission": "sending_access"
  }'

Ответы

  • 201 Created. The token is shown only once.
  • 401 Missing, invalid or too limited key.
  • 403 Refused for this key (domain, identity, suspension).
  • 409 Too many keys.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "api_key",
  "id": "1b2c…",
  "token": "mlk_…",
  "name": "Billing service",
  "permission": "sending_access",
  "domains": [
    "example.com"
  ]
}

Revoke an API key

DELETE /api/v1/api-keys/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringKey id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/api-keys/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "api_key",
  "id": "1b2c…",
  "deleted": true
}

Contacts

Contacts of campaigns, their segments, topics and CSV imports.

List contacts

GET /api/v1/contacts · Нужный ключ : full_access

Each contact carries engagement_score (0 to 100, null when not measured yet) and email_status (valid, risky, invalid, null when not verified yet).

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).
segment_id (запрос)stringOnly contacts of this segment (alias audience_id).
q (запрос)stringSearch in address and name.
unsubscribed (запрос)booleanFilter on unsubscription.
domain (запрос)stringRestrict to one domain of the key.
email (запрос)stringAddress contains (case ignored).
created_after (запрос)stringISO 8601 date (inclusive).
created_before (запрос)stringISO 8601 date (exclusive).
engagement (запрос)"low" | "medium" | "high" | "unmeasured"Engagement level: low (score under 30), medium (30 to 69), high (70 and more), unmeasured (no tracked campaign received yet).
email_status (запрос)"valid" | "risky" | "invalid" | "unchecked"Address verification status (unchecked: not verified yet).

cURL

curl -X GET "$VOAARO_URL/api/v1/contacts" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "c1a2…",
      "email": "ada@example.org",
      "first_name": "Ada",
      "last_name": null,
      "created_at": "2026-11-12T09:00:00Z",
      "unsubscribed": false,
      "engagement_score": 72,
      "email_status": "valid"
    }
  ]
}

Create a contact

POST /api/v1/contacts · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringRestrict to one domain of the key.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
email (обязательно)stringAddress (unique per domain; an existing contact is merged).
first_namestringFirst name (max. 100).
last_namestringLast name (max. 100).
unsubscribedbooleanUnsubscribed from all campaigns.
propertiesobjectValues of declared properties: {key: value} (string max. 500, or number).
segmentsobject[]Segments to add the contact to: [{id}].
topicsobject[]Topic subscriptions: [{id, subscription: opt_in|opt_out}].
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/contacts" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ada@example.org",
    "first_name": "Ada",
    "properties": {
      "plan": "pro"
    }
  }'

Ответы

  • 201 Created (200 if an existing contact was merged).
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "contact",
  "id": "c1a2…"
}

Retrieve a contact

GET /api/v1/contacts/{id} · Нужный ключ : full_access

Full contact, with engagement (score 0 to 100, level low | medium | high | unmeasured, last open and click) and verification (status, reasons, suggested correction).

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.

cURL

curl -X GET "$VOAARO_URL/api/v1/contacts/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "contact",
  "id": "c1a2…",
  "email": "ada@example.org",
  "first_name": "Ada",
  "last_name": null,
  "created_at": "2026-11-12T09:00:00Z",
  "unsubscribed": false,
  "properties": {},
  "segments": [],
  "suppressed": false,
  "engagement": {
    "score": 72,
    "level": "high",
    "updated_at": "2026-11-20T03:00:00Z",
    "last_open_at": "2026-11-18T08:12:00Z",
    "last_click_at": "2026-11-18T08:13:00Z"
  },
  "verification": {
    "status": "valid",
    "reasons": [],
    "suggestion": null,
    "checked_at": "2026-11-12T09:00:01Z"
  }
}

Update a contact

PATCH /api/v1/contacts/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.

Тело запроса

ИмяТипОписание
first_namestringFirst name.
last_namestringLast name.
unsubscribedbooleantrue also cancels queued campaign messages.
propertiesobjectProperty values (null clears).

cURL

curl -X PATCH "$VOAARO_URL/api/v1/contacts/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "unsubscribed": true
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "contact",
  "id": "c1a2…"
}

Delete a contact

DELETE /api/v1/contacts/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/contacts/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "contact",
  "contact": "c1a2…",
  "deleted": true
}

List the segments of a contact

GET /api/v1/contacts/{id}/segments · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/contacts/<id>/segments" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Add a contact to a segment

POST /api/v1/contacts/{id}/segments/{segment} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.
segment (путь, обязательно)stringSegment id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/contacts/<id>/segments/<segment>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Remove a contact from a segment

DELETE /api/v1/contacts/{id}/segments/{segment} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.
segment (путь, обязательно)stringSegment id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/contacts/<id>/segments/<segment>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

List the topic subscriptions of a contact

GET /api/v1/contacts/{id}/topics · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.

cURL

curl -X GET "$VOAARO_URL/api/v1/contacts/<id>/topics" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Update the topic subscriptions of a contact

PATCH /api/v1/contacts/{id}/topics · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.

Тело запроса

ИмяТипОписание
topicsobject[][{id, subscription: opt_in|opt_out}] (a bare array is also accepted).

cURL

curl -X PATCH "$VOAARO_URL/api/v1/contacts/<id>/topics" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "topics": [
      {
        "id": "t1…",
        "subscription": "opt_out"
      }
    ]
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "contact_topics",
  "id": "c1a2…"
}

List imports

GET /api/v1/contacts/imports · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/contacts/imports" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).

Import contacts from a CSV file

POST /api/v1/contacts/imports · Нужный ключ : full_access

multipart/form-data: file (CSV, UTF-8, 10 MB and 50,000 rows at most), optional column_map, on_conflict (upsert or skip), segments, topics, domain, skip_invalid (true: invalid addresses are left out, counted in excluded). Processed during the request. Every address is verified (syntax, domain MX or A, disposable, role, typo; no SMTP probe): counts.verification.

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/contacts/imports" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 201 Imported.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "contact_import",
  "id": "i1…",
  "counts": {
    "total": 3,
    "created": 2,
    "updated": 1,
    "skipped": 0,
    "failed": 0,
    "excluded": 0,
    "verification": {
      "valid": 2,
      "risky": 1,
      "invalid": 0
    }
  }
}

Retrieve an import

GET /api/v1/contacts/imports/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringImport id.

cURL

curl -X GET "$VOAARO_URL/api/v1/contacts/imports/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 Counts and the first 20 errors (line, message).
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Verify an email address

POST /api/v1/contacts/verify · Нужный ключ : full_access

Nothing is stored. Status valid, risky (disposable, role, typo) or invalid (syntax, domain without MX or A, null MX, reserved domain); reasons and suggested correction. No SMTP connection to remote servers: mailboxes are never probed.

Параметры

ИмяТипОписание
domain (запрос)stringRestrict to one domain of the key.

Тело запроса

ИмяТипОписание
email (обязательно)stringAddress to verify.

cURL

curl -X POST "$VOAARO_URL/api/v1/contacts/verify" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "email_verification",
  "email": "jane@gmial.com",
  "status": "risky",
  "reasons": [
    "typo"
  ],
  "suggestion": "jane@gmail.com"
}

Verify a contact's address again

POST /api/v1/contacts/{id}/verify · Нужный ключ : full_access

Verifies the address and stores the result on the contact (verification).

Параметры

ИмяТипОписание
id (путь, обязательно)stringContact id or email address.

cURL

curl -X POST "$VOAARO_URL/api/v1/contacts/<id>/verify" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "email_verification",
  "email": "jane@gmial.com",
  "status": "risky",
  "reasons": [
    "typo"
  ],
  "suggestion": "jane@gmail.com",
  "contact_id": "c1a2…"
}

Export contacts (CSV)

GET /api/v1/contacts/export · Нужный ключ : full_access

UTF-8 CSV with BOM: email, first_name, last_name, unsubscribed, created_at, engagement_score, engagement_level, email_status, email_reasons, email_suggestion, last_open_at, last_click_at. Same filters as the list.

Параметры

ИмяТипОписание
segment_id (запрос)stringOnly contacts of this segment.
unsubscribed (запрос)booleanFilter on unsubscription.
engagement (запрос)"low" | "medium" | "high" | "unmeasured"Engagement level: low (score under 30), medium (30 to 69), high (70 and more), unmeasured (no tracked campaign received yet).
email_status (запрос)"valid" | "risky" | "invalid" | "unchecked"Address verification status (unchecked: not verified yet).
domain (запрос)stringRestrict to one domain of the key.

cURL

curl -X GET "$VOAARO_URL/api/v1/contacts/export" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 CSV file.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Segments

Groups of contacts that campaigns are sent to.

List segments

GET /api/v1/segments · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).
domain (запрос)stringRestrict to one domain of the key.

cURL

curl -X GET "$VOAARO_URL/api/v1/segments" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).

Create a segment

POST /api/v1/segments · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringRestrict to one domain of the key.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
name (обязательно)stringName (1-100).
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/segments" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Customers"
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "segment",
  "id": "s1…",
  "name": "Customers"
}

Retrieve a segment

GET /api/v1/segments/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringSegment id.

cURL

curl -X GET "$VOAARO_URL/api/v1/segments/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Rename a segment

PATCH /api/v1/segments/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringSegment id.

Тело запроса

ИмяТипОписание
name (обязательно)stringName (1-100).
domainstringDomain, when the key covers several.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/segments/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Paying customers"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Delete a segment

DELETE /api/v1/segments/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringSegment id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/segments/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

List the contacts of a segment

GET /api/v1/segments/{id}/contacts · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringSegment id.
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/segments/<id>/contacts" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Preview a dynamic segment

POST /api/v1/segments/preview · Нужный ключ : full_access

Counts the contacts matching a filter. See docs/SPEC-audiences.md part 2.

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/segments/preview" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "filter": {
      "match": "all",
      "conditions": [
        {
          "field": "opened",
          "op": "any",
          "days": 30
        }
      ]
    }
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "segment_preview",
  "count": 42,
  "sample": []
}

Audiences

Older name of segments, kept for compatibility.

List audiences

GET /api/v1/audiences · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).
domain (запрос)stringRestrict to one domain of the key.

cURL

curl -X GET "$VOAARO_URL/api/v1/audiences" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).

Create an audience (segment)

POST /api/v1/audiences · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringRestrict to one domain of the key.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
name (обязательно)stringName (1-100).
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/audiences" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Newsletter"
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Retrieve an audience

GET /api/v1/audiences/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAudience id.

cURL

curl -X GET "$VOAARO_URL/api/v1/audiences/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Delete an audience

DELETE /api/v1/audiences/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAudience id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/audiences/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

List the contacts of an audience

GET /api/v1/audiences/{id}/contacts · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAudience id.
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/audiences/<id>/contacts" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Create a contact in an audience

POST /api/v1/audiences/{id}/contacts · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAudience id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
email (обязательно)stringAddress (unique per domain; an existing contact is merged).
first_namestringFirst name (max. 100).
last_namestringLast name (max. 100).
unsubscribedbooleanUnsubscribed from all campaigns.
propertiesobjectValues of declared properties: {key: value} (string max. 500, or number).
segmentsobject[]Segments to add the contact to: [{id}].
topicsobject[]Topic subscriptions: [{id, subscription: opt_in|opt_out}].
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/audiences/<id>/contacts" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ada@example.org"
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Retrieve a contact of an audience

GET /api/v1/audiences/{id}/contacts/{contact} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAudience id.
contact (путь, обязательно)stringContact id or email address.

cURL

curl -X GET "$VOAARO_URL/api/v1/audiences/<id>/contacts/<contact>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Update a contact of an audience

PATCH /api/v1/audiences/{id}/contacts/{contact} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAudience id.
contact (путь, обязательно)stringContact id or email address.

Тело запроса

ИмяТипОписание
first_namestringFirst name.
last_namestringLast name.
unsubscribedbooleantrue also cancels queued campaign messages.
propertiesobjectProperty values (null clears).

cURL

curl -X PATCH "$VOAARO_URL/api/v1/audiences/<id>/contacts/<contact>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Ada"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Remove a contact from an audience

DELETE /api/v1/audiences/{id}/contacts/{contact} · Нужный ключ : full_access

The contact is deleted if it is left in no segment.

Параметры

ИмяТипОписание
id (путь, обязательно)stringAudience id.
contact (путь, обязательно)stringContact id or email address.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/audiences/<id>/contacts/<contact>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Topics

Subscription topics contacts can opt in or out of.

List topics

GET /api/v1/topics · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).
domain (запрос)stringRestrict to one domain of the key.

cURL

curl -X GET "$VOAARO_URL/api/v1/topics" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).

Create a topic

POST /api/v1/topics · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringRestrict to one domain of the key.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
name (обязательно)stringName (1-50).
descriptionstringDescription (max. 200).
default_subscription"opt_in" | "opt_out"Subscription of contacts who did not choose (required at creation, cannot change).
visibility"public" | "private"Shown on the preferences page (public) or not (private, default).
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/topics" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Product news",
    "default_subscription": "opt_in",
    "visibility": "public"
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "topic",
  "id": "t1…"
}

Retrieve a topic

GET /api/v1/topics/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringTopic id.

cURL

curl -X GET "$VOAARO_URL/api/v1/topics/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Update a topic

PATCH /api/v1/topics/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringTopic id.

Тело запроса

ИмяТипОписание
name (обязательно)stringName (1-50).
descriptionstringDescription (max. 200).
default_subscription"opt_in" | "opt_out"Subscription of contacts who did not choose (required at creation, cannot change).
visibility"public" | "private"Shown on the preferences page (public) or not (private, default).
domainstringDomain, when the key covers several.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/topics/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "Monthly product news"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Delete a topic

DELETE /api/v1/topics/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringTopic id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/topics/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Contact properties

Custom contact fields usable as variables.

List contact properties

GET /api/v1/contact-properties · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).
domain (запрос)stringRestrict to one domain of the key.

cURL

curl -X GET "$VOAARO_URL/api/v1/contact-properties" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).

Declare a contact property

POST /api/v1/contact-properties · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringRestrict to one domain of the key.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
key (обязательно)stringKey (1-50 characters A-Z a-z 0-9 _).
type"string" | "number"string (default) or number; cannot change.
fallback_valuestringValue used when a contact has none (the only field PATCH accepts).
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/contact-properties" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "plan",
    "type": "string",
    "fallback_value": "free"
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 409 Key already declared.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "contact_property",
  "id": "p1…"
}

Retrieve a contact property

GET /api/v1/contact-properties/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringProperty id.

cURL

curl -X GET "$VOAARO_URL/api/v1/contact-properties/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Change the fallback value

PATCH /api/v1/contact-properties/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringProperty id.

Тело запроса

ИмяТипОписание
key (обязательно)stringKey (1-50 characters A-Z a-z 0-9 _).
type"string" | "number"string (default) or number; cannot change.
fallback_valuestringValue used when a contact has none (the only field PATCH accepts).
domainstringDomain, when the key covers several.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/contact-properties/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "fallback_value": "free"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Delete a contact property

DELETE /api/v1/contact-properties/{id} · Нужный ключ : full_access

Also removes its value from every contact.

Параметры

ИмяТипОписание
id (путь, обязательно)stringProperty id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/contact-properties/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Broadcasts

Campaigns sent to a segment, with warm-up and one-click unsubscribe.

List broadcasts

GET /api/v1/broadcasts · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).
domain (запрос)stringRestrict to one domain of the key.
status (запрос)stringOnly this status: draft, scheduled, queued, sent, canceled.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 429 Too many requests (Retry-After says when to retry).

Create a broadcast (campaign)

POST /api/v1/broadcasts · Нужный ключ : full_access

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
from (обязательно)stringSender on the domain of the key (same rules as POST /emails).
subject (обязательно)stringSubject. (max. 998)
namestringInternal name (max. 100).
segment_idstringRecipient segment (alias audience_id).
topic_idstringTopic: only contacts subscribed to it receive the campaign.
htmlstringHTML (variables {{contact.first_name|fallback}}, {{unsubscribe_url}}…).
textstringText version (derived from the HTML if absent).
reply_tostring | string[]Reply-to address(es), 5 at most.
preview_textstringPreview text (max. 500).
sendbooleanSend right away (or at scheduled_at) after creation.
scheduled_atstringDate of sending, with send: true (30 days at most).
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/broadcasts" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <news@example.com>",
    "subject": "November news",
    "segment_id": "s1…",
    "html": "<p>Hello {{contact.first_name|there}}</p><p><a href=\"{{unsubscribe_url}}\">Unsubscribe</a></p>"
  }'

Ответы

  • 201 Created (draft, or sent/scheduled with send: true).
  • 401 Missing, invalid or too limited key.
  • 403 Refused for this key (domain, identity, suspension).
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "broadcast",
  "id": "b1c2…"
}

Retrieve a broadcast and its statistics

GET /api/v1/broadcasts/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "broadcast",
  "id": "b1c2…",
  "status": "sent",
  "subject": "November news",
  "stats": {
    "recipients": 1200,
    "sent": 1200,
    "delivered": 1190,
    "opened": 540,
    "clicked": 81,
    "bounced": 6,
    "complained": 0,
    "unsubscribed": 9
  }
}

Update a draft or scheduled broadcast

PATCH /api/v1/broadcasts/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

Тело запроса

ИмяТипОписание
from (обязательно)stringSender on the domain of the key (same rules as POST /emails).
subject (обязательно)stringSubject. (max. 998)
namestringInternal name (max. 100).
segment_idstringRecipient segment (alias audience_id).
topic_idstringTopic: only contacts subscribed to it receive the campaign.
htmlstringHTML (variables {{contact.first_name|fallback}}, {{unsubscribe_url}}…).
textstringText version (derived from the HTML if absent).
reply_tostring | string[]Reply-to address(es), 5 at most.
preview_textstringPreview text (max. 500).
sendbooleanSend right away (or at scheduled_at) after creation.
scheduled_atstringDate of sending, with send: true (30 days at most).
domainstringDomain, when the key covers several.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/broadcasts/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "November news (updated)"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Already sending or sent (only name may change).
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Delete a draft or scheduled broadcast

DELETE /api/v1/broadcasts/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/broadcasts/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Conflict with the current state.
  • 429 Too many requests (Retry-After says when to retry).

Send or schedule a broadcast

POST /api/v1/broadcasts/{id}/send · Нужный ключ : full_access

Needs a segment, a sender, a subject and content; the domain must be verified and have a DMARC record.

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
scheduled_atstringDate (ISO 8601 or in …), 30 days at most; now if absent.

cURL

curl -X POST "$VOAARO_URL/api/v1/broadcasts/<id>/send" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scheduled_at": "in 1 hour"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 403 Domain not ready for bulk sending (verification, DMARC).
  • 404 Not found, or outside the key's scope.
  • 409 Not a draft.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "broadcast",
  "id": "b1c2…"
}

Cancel a broadcast

POST /api/v1/broadcasts/{id}/cancel · Нужный ключ : full_access

Scheduled: back to draft. Sending: pending messages are canceled.

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/broadcasts/<id>/cancel" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Conflict with the current state.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "broadcast",
  "id": "b1c2…"
}

Duplicate a broadcast

POST /api/v1/broadcasts/{id}/duplicate · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/broadcasts/<id>/duplicate" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 201 New draft.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "broadcast",
  "id": "b9…"
}

List the recipients of a broadcast

GET /api/v1/broadcasts/{id}/recipients · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
type (запрос)stringsent (default), delivered, opened, clicked, bounced, complained, unsubscribed, suppressed, pending or all.
email (запрос)stringFilter on part of the address.
limit (запрос)integer1 to 100.
after (запрос)stringCursor: id of the last object seen (older objects).
before (запрос)stringCursor: id of the first object seen (newer objects).

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>/recipients" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

List scheduled broadcasts

GET /api/v1/broadcasts/scheduled · Нужный ключ : full_access

Параметры

ИмяТипОписание
scheduled_after (запрос)stringISO 8601, included.
scheduled_before (запрос)stringISO 8601, excluded.
limit (запрос)integer1 to 100 (default 50).
domain (запрос)stringDomain, when the key covers several.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/scheduled" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK: nearest first.
  • 401 Missing, invalid or too limited key.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "b1c2…",
      "name": "November",
      "status": "scheduled",
      "scheduled_at": "2026-11-20T08:00:00Z",
      "timezone": "Europe/Paris",
      "subject": "November news",
      "from": "Acme <news@example.com>",
      "segment_id": "…",
      "domain": "example.com"
    }
  ]
}

Schedule or reschedule a broadcast

POST /api/v1/broadcasts/{id}/schedule · Нужный ключ : full_access

Schedules a draft or reschedules a scheduled broadcast; every check is run (and run again at departure).

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
scheduled_at (обязательно)stringISO 8601 with offset, delay (in 2 hours), or local time without offset read in timezone; in the future, 30 days at most.
timezonestringIANA time zone (Europe/Paris), kept for display.

cURL

curl -X POST "$VOAARO_URL/api/v1/broadcasts/<id>/schedule" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scheduled_at": "2026-11-20T09:00",
    "timezone": "Europe/Paris"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 403 Domain not ready for bulk sending (verification, DMARC, sending disabled).
  • 404 Not found, or outside the key's scope.
  • 409 Already started, sent or canceled.
  • 422 Invalid request: postal_address, segment_id, from and subject, html or text, past date, unknown time zone.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "broadcast",
  "id": "b1c2…",
  "name": "November",
  "status": "scheduled",
  "scheduled_at": "2026-11-20T08:00:00Z",
  "timezone": "Europe/Paris",
  "started_at": null,
  "segment_id": "…",
  "subject": "November news",
  "domain": "example.com"
}

Unschedule a broadcast

DELETE /api/v1/broadcasts/{id}/schedule · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/broadcasts/<id>/schedule" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK: back to draft.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Not scheduled.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "broadcast",
  "id": "b1c2…",
  "name": "November",
  "status": "draft",
  "scheduled_at": null,
  "timezone": "Europe/Paris",
  "started_at": null,
  "segment_id": "…",
  "subject": "November news",
  "domain": "example.com"
}

Send a broadcast now

POST /api/v1/broadcasts/{id}/send-now · Нужный ключ : full_access

From a draft or a scheduled broadcast.

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/broadcasts/<id>/send-now" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 403 Domain not ready for bulk sending (verification, DMARC, sending disabled).
  • 404 Not found, or outside the key's scope.
  • 409 Already started, sent or canceled.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "broadcast",
  "id": "b1c2…",
  "name": "November",
  "status": "queued",
  "scheduled_at": "2026-11-20T08:00:00Z",
  "timezone": "Europe/Paris",
  "started_at": "2026-11-13T09:00:00Z",
  "segment_id": "…",
  "subject": "November news",
  "domain": "example.com"
}

Check a broadcast's content

GET /api/v1/broadcasts/{id}/check · Нужный ключ : full_access

Score 0 to 100 (10 points off per warning, 30 per error) and factors: subject_length, subject_caps, subject_punctuation, preview_text, unsubscribe_link, postal_address, text_part, image_ratio, link_shorteners, insecure_links, html_size. Blocks nothing.

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>/check" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "content_check",
  "id": "b1c2…",
  "score": 80,
  "warnings": 2,
  "errors": 0,
  "checks": [
    {
      "id": "subject_caps",
      "level": "warning",
      "message": "…"
    }
  ]
}

Deliverability score of a broadcast

GET /api/v1/broadcasts/{id}/deliverability · Нужный ключ : full_access

Before sending: a list of checks with a grade (100, minus 6 per warning and 15 per error; letter A to E). Categories: authentication (domain_verified, spf, dkim, dmarc), unsubscribe (unsubscribe_link, list_unsubscribe, postal_address), content (factors of /check, spam_words, alt_text), audience (invalid_addresses, risky_addresses, low_engagement), reputation (blocklists, bounce_rate, complaint_rate). Every check that does not pass carries a piece of advice (advice, in French). Blocks nothing.

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>/deliverability" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "deliverability_check",
  "id": "b1c2…",
  "score": 82,
  "grade": "B",
  "domain": "news.example.org",
  "errors": 0,
  "warnings": 3,
  "checks": [
    {
      "id": "dkim",
      "category": "authentication",
      "level": "ok",
      "message": "…",
      "advice": null,
      "data": {
        "domain": "news.example.org"
      }
    },
    {
      "id": "low_engagement",
      "category": "audience",
      "level": "warning",
      "message": "…",
      "advice": "…",
      "data": {
        "count": 120,
        "total": 400,
        "pct": 30
      }
    }
  ]
}

GET /api/v1/broadcasts/{id}/links · Нужный ключ : full_access

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>/links" \
  -H "Authorization: Bearer $VOAARO_API_KEY"
  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "data": [
    {
      "url": "https://acme.com",
      "clicks": 12,
      "unique_clicks": 9
    }
  ]
}

Results per recipient domain

GET /api/v1/broadcasts/{id}/domains · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>/domains" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Opens and clicks per hour

GET /api/v1/broadcasts/{id}/timeline · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
hours (запрос)integer1 to 720 (default 48).

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>/timeline" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Export recipients (CSV)

GET /api/v1/broadcasts/{id}/export · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.

cURL

curl -X GET "$VOAARO_URL/api/v1/broadcasts/<id>/export" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Choose the A/B test winner

POST /api/v1/broadcasts/{id}/ab/winner · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringBroadcast id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/broadcasts/<id>/ab/winner" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "variant": "b"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 State does not allow the operation.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Newsletter

Newsletter settings, overview, inactive clean-up.

Get newsletter settings

GET /api/v1/newsletter/settings · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.

cURL

curl -X GET "$VOAARO_URL/api/v1/newsletter/settings" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "newsletter_settings",
  "from": "Acme <news@acme.com>",
  "postal_address": "Acme, 1 rue A, Paris",
  "missing": [],
  "archive_url": null
}

Update newsletter settings

PATCH /api/v1/newsletter/settings · Нужный ключ : full_access

Default sender and reply-to, postal address (required to send a broadcast), public archive, look of the default preferences page (preferences_page: title, intro, done_message, language, accent_color, background_color, image_url; {} or null restores the original page).

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/newsletter/settings" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <news@acme.com>",
    "postal_address": "Acme\n1 rue A\n75001 Paris",
    "archive": true
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Newsletter overview

GET /api/v1/newsletter/overview · Нужный ключ : full_access

Параметры

ИмяТипОписание
days (запрос)integer1 to 366 (default 30).
domain (запрос)stringDomain, when the key covers several.

cURL

curl -X GET "$VOAARO_URL/api/v1/newsletter/overview" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "newsletter_overview",
  "days": 30,
  "contacts": {
    "subscribed": 1150,
    "new": 140,
    "lost": 12
  }
}

Preview the preferences page

POST /api/v1/newsletter/preferences-page/preview · Нужный ключ : full_access

Sample contact, public topics of the domain; nothing is saved.

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.

Тело запроса

ИмяТипОписание
preferences_pageobjectDraft {title, intro, done_message, language, accent_color, background_color, image_url}; the saved one if absent.
page"form" | "done"Screen to render. (по умолчанию "form")

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter/preferences-page/preview" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "preferences_page": {
      "title": "Your Acme emails"
    },
    "page": "form"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "preferences_page_preview",
  "html": "<!doctype html>…"
}

Clean up inactive contacts

POST /api/v1/contacts/cleanup · Нужный ключ : full_access

Contacts who received a tracked broadcast without opening or clicking for days days. Dry run by default.

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/contacts/cleanup" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "days": 180,
    "action": "unsubscribe",
    "dry_run": true
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "contact_cleanup",
  "count": 12,
  "dry_run": true
}

Signup forms

Hosted or embedded signup forms with double opt-in.

List signup forms

GET /api/v1/forms · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).
status (запрос)stringOnly this status: active, disabled.

cURL

curl -X GET "$VOAARO_URL/api/v1/forms" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Create a signup form

POST /api/v1/forms · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/forms" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Website newsletter",
    "double_opt_in": true,
    "fields": [
      {
        "key": "first_name",
        "required": true
      }
    ]
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "form",
  "id": "f1…",
  "url": "https://mail.acme.com/n/f1…"
}

Get a signup form

GET /api/v1/forms/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringForm id.

cURL

curl -X GET "$VOAARO_URL/api/v1/forms/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Update a signup form

PATCH /api/v1/forms/{id} · Нужный ключ : full_access

Same fields as creation, plus image_url (https or embedded PNG/JPEG/GIF/WebP, 200 KB, never SVG), background_color, allowed_origins (10 at most) and require_challenge.

Параметры

ИмяТипОписание
id (путь, обязательно)stringForm id.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/forms/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "disabled"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Delete a signup form

DELETE /api/v1/forms/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringForm id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/forms/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

List signups

GET /api/v1/forms/{id}/signups · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringForm id.
status (запрос)stringpending or confirmed.
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).

cURL

curl -X GET "$VOAARO_URL/api/v1/forms/<id>/signups" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Preview a form page

POST /api/v1/forms/{id}/preview · Нужный ключ : full_access

Renders the page with the body's draft fields, without scripts; nothing is saved.

Параметры

ИмяТипОписание
id (путь, обязательно)stringForm id.

Тело запроса

ИмяТипОписание
page"form" | "pending" | "subscribed" | "confirm"Screen to render (other fields: the draft's form fields). (по умолчанию "form")

cURL

curl -X POST "$VOAARO_URL/api/v1/forms/<id>/preview" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "The Acme letter",
    "background_color": "#fff8ec",
    "page": "pending"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "form_preview",
  "html": "<!doctype html>…"
}

Change a form's public key

POST /api/v1/forms/{id}/rotate-key · Нужный ключ : full_access

The old key stops working at once.

Параметры

ИмяТипОписание
id (путь, обязательно)stringForm id.

cURL

curl -X POST "$VOAARO_URL/api/v1/forms/<id>/rotate-key" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK: the form with its new public_key.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).

Get the default form

GET /api/v1/newsletter/default-form · Нужный ключ : full_access

Created on first read (double opt-in, first name field). Edited with PATCH /forms/{id}; cannot be deleted.

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.

cURL

curl -X GET "$VOAARO_URL/api/v1/newsletter/default-form" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "form",
  "id": "2b8f…",
  "is_default": true,
  "public_key": "mlk_pub_0123…",
  "double_opt_in": true
}

Subscriptions

Subscribe and unsubscribe from your application: server (application key, sending_access allowed) or browser (a form's public key, no secret).

Subscribe an address

POST /api/v1/newsletter/subscribe · Нужный ключ : sending_access / full_access

Follows the default form of the domain (or form_id): double opt-in, segments, confirmation email. Idempotent: an address already subscribed stays subscribed without a new email.

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
email (обязательно)stringAddress to subscribe.
first_namestringFirst name. (max. 100)
last_namestringLast name. (max. 100)
propertiesobjectValues of declared properties: {key: value}.
segment_idsstring[]Segments to add the subscriber to (alias segments), on top of the form's.
topicsobject[]Topic subscriptions: [{id, subscription: opt_in|opt_out}]. Topics not listed do not change.
topic_idsstring[]Topics to subscribe to (shorthand for topics with opt_in).
form_idstringForm whose settings to follow (active, on the domain); the default form otherwise.
double_opt_inbooleanOverrides the form's double opt-in.
consentobject{text, ip, user_agent}, kept on the signup and the contact.
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter/subscribe" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ada@example.org",
    "first_name": "Ada",
    "topic_ids": [
      "7a1c…"
    ]
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 409 Form disabled.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "subscription",
  "email": "ada@example.org",
  "status": "pending",
  "contact_id": null,
  "form_id": "2b8f…",
  "double_opt_in": true
}

Unsubscribe an address

POST /api/v1/newsletter/unsubscribe · Нужный ключ : sending_access / full_access

Without topic_ids: unsubscribes from every broadcast of the domain (queued messages canceled); with: opt_out of these topics only.

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
emailstringAddress (or contact_id).
contact_idstringContact id (or email).
topic_idsstring[]Only these topics (opt_out); without it, every broadcast of the domain.
domainstringDomain, when the key covers several.

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter/unsubscribe" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ada@example.org"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "subscription",
  "email": "ada@example.org",
  "contact_id": "7c1d…",
  "status": "unsubscribed",
  "topics": []
}

Get an address's subscription state

GET /api/v1/newsletter/subscriptions/{email} · Нужный ключ : sending_access / full_access

Параметры

ИмяТипОписание
email (путь, обязательно)stringAddress.
domain (запрос)stringDomain, when the key covers several.

cURL

curl -X GET "$VOAARO_URL/api/v1/newsletter/subscriptions/<email>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK. status: subscribed, unsubscribed, pending or none.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "subscription",
  "email": "ada@example.org",
  "status": "subscribed",
  "contact_id": "7c1d…",
  "created_at": "2026-11-12T10:21:44Z",
  "unsubscribed_at": null,
  "source": "api",
  "pending": null,
  "topics": [
    {
      "id": "7a1c…",
      "name": "News",
      "subscription": "opt_in"
    }
  ],
  "segments": [
    {
      "id": "…",
      "name": "Website"
    }
  ]
}

Get a proof-of-work challenge

POST /api/v1/newsletter/public/{key}/challenge · Нужный ключ : не нужен (публичный ключ формы mlk_pub_…, разрешённые источники)

No secret: the form's public key. CORS: only the form's allowed_origins.

Параметры

ИмяТипОписание
key (путь, обязательно)stringPublic key of an active form (mlk_pub_…).

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter/public/<key>/challenge"

Ответы

  • 200 OK.
  • 400 Invalid request, or challenge_required (proof of work missing or already used).
  • 403 origin_not_allowed: Origin not in the form's allowed_origins.
  • 404 Unknown or disabled form key, or invalid_token.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "challenge",
  "challenge": "v1.18.1763000000.0123…",
  "bits": 18
}

Subscribe from the browser

POST /api/v1/newsletter/public/{key}/subscribe · Нужный ключ : не нужен (публичный ключ формы mlk_pub_…, разрешённые источники)

Honeypot website, proof of work (require_challenge), 20 signups per hour per IP. Double opt-in follows the form.

Параметры

ИмяТипОписание
key (путь, обязательно)stringPublic key of an active form (mlk_pub_…).

Тело запроса

ИмяТипОписание
email (обязательно)stringAddress to subscribe.
first_namestringFirst name. (max. 100)
last_namestringLast name. (max. 100)
propertiesobjectValues of the form's fields.
topic_idsstring[]Topics among those the form offers.
consentbooleantrue when the form has a consent text.
websitestringHoneypot: leave empty (filled: same response, nothing kept).
challengestringChallenge from …/challenge (single use).
noncestringDecimal digits (24 at most) such that SHA-256("<challenge>:<nonce>") starts with bits zero bits.

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter/public/<key>/subscribe" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ada@example.org",
    "first_name": "Ada",
    "website": "",
    "challenge": "v1.18.…",
    "nonce": "48213"
  }'

Ответы

  • 200 OK. Same response for every valid address (no enumeration).
  • 400 Invalid request, or challenge_required (proof of work missing or already used).
  • 403 origin_not_allowed: Origin not in the form's allowed_origins.
  • 404 Unknown or disabled form key, or invalid_token.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "subscription",
  "status": "pending"
}

Read preferences with an unsubscribe token

GET /api/v1/newsletter/public/{key}/preferences · Нужный ключ : не нужен (публичный ключ формы mlk_pub_…, разрешённые источники)

A GET never changes anything.

Параметры

ИмяТипОписание
key (путь, обязательно)stringPublic key of an active form (mlk_pub_…).
token (запрос)stringSigned token of the unsubscribe link.

cURL

curl -X GET "$VOAARO_URL/api/v1/newsletter/public/<key>/preferences"

Ответы

  • 200 OK.
  • 400 Invalid request, or challenge_required (proof of work missing or already used).
  • 403 origin_not_allowed: Origin not in the form's allowed_origins.
  • 404 Unknown or disabled form key, or invalid_token.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "preferences",
  "test": false,
  "email": "a***@example.org",
  "unsubscribed": false,
  "topics": [
    {
      "id": "7a1c…",
      "name": "News",
      "description": "Once a month",
      "subscribed": true
    }
  ]
}

Unsubscribe with an unsubscribe token

POST /api/v1/newsletter/public/{key}/unsubscribe · Нужный ключ : не нужен (публичный ключ формы mlk_pub_…, разрешённые источники)

Never by the address alone: the signed token of the unsubscribe link is required.

Параметры

ИмяТипОписание
key (путь, обязательно)stringPublic key of an active form (mlk_pub_…).

Тело запроса

ИмяТипОписание
token (обязательно)stringUnsubscribe token from the message.
topic_idsstring[]unsubscribe only: these topics only; without it, everything.

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter/public/<key>/unsubscribe" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "…"
  }'

Ответы

  • 200 OK: the preferences.
  • 400 Invalid request, or challenge_required (proof of work missing or already used).
  • 403 origin_not_allowed: Origin not in the form's allowed_origins.
  • 404 Unknown or disabled form key, or invalid_token.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "preferences",
  "test": false,
  "email": "a***@example.org",
  "unsubscribed": true,
  "topics": [
    {
      "id": "7a1c…",
      "name": "News",
      "description": "Once a month",
      "subscribed": true
    }
  ]
}

Resubscribe with an unsubscribe token

POST /api/v1/newsletter/public/{key}/resubscribe · Нужный ключ : не нужен (публичный ключ формы mlk_pub_…, разрешённые источники)

Параметры

ИмяТипОписание
key (путь, обязательно)stringPublic key of an active form (mlk_pub_…).

Тело запроса

ИмяТипОписание
token (обязательно)stringUnsubscribe token from the message.
topic_idsstring[]unsubscribe only: these topics only; without it, everything.

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter/public/<key>/resubscribe" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "…"
  }'

Ответы

  • 200 OK: the preferences.
  • 400 Invalid request, or challenge_required (proof of work missing or already used).
  • 403 origin_not_allowed: Origin not in the form's allowed_origins.
  • 404 Unknown or disabled form key, or invalid_token.
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "preferences",
  "test": false,
  "email": "a***@example.org",
  "unsubscribed": false,
  "topics": [
    {
      "id": "7a1c…",
      "name": "News",
      "description": "Once a month",
      "subscribed": true
    }
  ]
}

Automations

Welcome series and emails triggered by events, with delays and conditions.

List automations

GET /api/v1/automations · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).
status (запрос)stringOnly this status: draft, active, paused.

cURL

curl -X GET "$VOAARO_URL/api/v1/automations" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Create an automation

POST /api/v1/automations · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/automations" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Welcome",
    "status": "active",
    "trigger": {
      "type": "contact.created"
    },
    "steps": [
      {
        "type": "email",
        "subject": "Welcome!",
        "text": "Hello"
      },
      {
        "type": "wait",
        "minutes": 1440
      }
    ]
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Get an automation

GET /api/v1/automations/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAutomation id.

cURL

curl -X GET "$VOAARO_URL/api/v1/automations/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Update an automation

PATCH /api/v1/automations/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAutomation id.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/automations/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "paused"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Delete an automation

DELETE /api/v1/automations/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAutomation id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/automations/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

List contact journeys

GET /api/v1/automations/{id}/runs · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringAutomation id.
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).
status (запрос)stringOnly this status: active, done, stopped.

cURL

curl -X GET "$VOAARO_URL/api/v1/automations/<id>/runs" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Send a contact event

POST /api/v1/events · Нужный ключ : full_access

Triggers automations whose trigger is this event.

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/events" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ana@example.com",
    "name": "purchase",
    "data": {
      "amount": 42
    }
  }'

Ответы

  • 202 Accepted.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Newsletter templates

Reusable newsletter layouts.

List newsletter templates

GET /api/v1/newsletter-templates · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).

cURL

curl -X GET "$VOAARO_URL/api/v1/newsletter-templates" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Create a newsletter template

POST /api/v1/newsletter-templates · Нужный ключ : full_access

Параметры

ИмяТипОписание
domain (запрос)stringDomain, when the key covers several.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/newsletter-templates" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Monthly",
    "subject": "News",
    "html": "<p>…</p>"
  }'

Ответы

  • 201 Created.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Get a newsletter template

GET /api/v1/newsletter-templates/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringTemplate id.

cURL

curl -X GET "$VOAARO_URL/api/v1/newsletter-templates/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Update a newsletter template

PATCH /api/v1/newsletter-templates/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringTemplate id.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/newsletter-templates/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Monthly letter"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Delete a newsletter template

DELETE /api/v1/newsletter-templates/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringTemplate id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/newsletter-templates/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Webhooks

Endpoints of the calling key, delivery log and replay (full_access key).

List webhook endpoints

GET /api/v1/webhooks · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).

cURL

curl -X GET "$VOAARO_URL/api/v1/webhooks" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "webhook",
      "id": "8d1c…",
      "endpoint": "https://app.example.com/webhooks/voaaro",
      "events": [
        "email.delivered",
        "contact.created"
      ],
      "status": "enabled",
      "description": null,
      "created_at": "2026-11-12T08:00:00Z",
      "updated_at": "2026-11-12T08:00:00Z",
      "secret_rotation": null
    }
  ]
}

Create a webhook endpoint

POST /api/v1/webhooks · Нужный ключ : full_access

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
endpoint (обязательно)stringHTTPS address (alias url), public, without credentials. (max. 2000)
events (обязательно)string[]1 to 30 event names (email.sent, contact.created…). (max. 30)
descriptionstringFree text. (max. 200)
status"enabled" | "disabled"enabled (default) or disabled.

cURL

curl -X POST "$VOAARO_URL/api/v1/webhooks" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "endpoint": "https://app.example.com/webhooks/voaaro",
    "events": [
      "email.delivered",
      "email.bounced",
      "contact.created"
    ]
  }'

Ответы

  • 201 Created, with the signing secret (shown once).
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "webhook",
  "id": "8d1c…",
  "endpoint": "https://app.example.com/webhooks/voaaro",
  "events": [
    "email.delivered",
    "contact.created"
  ],
  "status": "enabled",
  "description": null,
  "created_at": "2026-11-12T08:00:00Z",
  "updated_at": "2026-11-12T08:00:00Z",
  "secret_rotation": null,
  "signing_secret": "whsec_…"
}

Retrieve a webhook endpoint

GET /api/v1/webhooks/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.

cURL

curl -X GET "$VOAARO_URL/api/v1/webhooks/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK (never the secret).
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "webhook",
  "id": "8d1c…",
  "endpoint": "https://app.example.com/webhooks/voaaro",
  "events": [
    "email.delivered",
    "contact.created"
  ],
  "status": "enabled",
  "description": null,
  "created_at": "2026-11-12T08:00:00Z",
  "updated_at": "2026-11-12T08:00:00Z",
  "secret_rotation": null
}

Update a webhook endpoint

PATCH /api/v1/webhooks/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.

Тело запроса

ИмяТипОписание
endpointstringHTTPS address (alias url), public, without credentials. (max. 2000)
eventsstring[]1 to 30 event names (email.sent, contact.created…). (max. 30)
descriptionstringFree text. (max. 200)
status"enabled" | "disabled"enabled (default) or disabled.

cURL

curl -X PATCH "$VOAARO_URL/api/v1/webhooks/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "events": [
      "email.delivered"
    ],
    "status": "disabled"
  }'

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "webhook",
  "id": "8d1c…",
  "endpoint": "https://app.example.com/webhooks/voaaro",
  "events": [
    "email.delivered",
    "contact.created"
  ],
  "status": "enabled",
  "description": null,
  "created_at": "2026-11-12T08:00:00Z",
  "updated_at": "2026-11-12T08:00:00Z",
  "secret_rotation": null
}

Delete a webhook endpoint

DELETE /api/v1/webhooks/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/webhooks/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 Deleted.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "webhook",
  "id": "8d1c…",
  "deleted": true
}

Rotate the signing secret

POST /api/v1/webhooks/{id}/rotate-secret · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
grace_hoursintegerHours the previous secret still signs (two v1), 0 to 72. (≤ 72, по умолчанию 24)

cURL

curl -X POST "$VOAARO_URL/api/v1/webhooks/<id>/rotate-secret" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "grace_hours": 24
  }'

Ответы

  • 200 New secret.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "webhook",
  "id": "8d1c…",
  "signing_secret": "whsec_…",
  "previous_secret_expires_at": "2026-11-13T08:00:00Z"
}

Send a test event

POST /api/v1/webhooks/{id}/test · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/webhooks/<id>/test" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 202 Queued (webhook.test).
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
202
{
  "object": "webhook_delivery",
  "id": "51aa…"
}

List deliveries

GET /api/v1/webhooks/{id}/deliveries · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).
status (запрос)stringpending, sending, delivered or failed.
event_type (запрос)stringEvent name (email.delivered…).

cURL

curl -X GET "$VOAARO_URL/api/v1/webhooks/<id>/deliveries" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK (without payload).
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "webhook_delivery",
      "id": "51aa…",
      "webhook_id": "8d1c…",
      "event_type": "contact.created",
      "status": "delivered",
      "attempts": 1,
      "last_status": 204,
      "last_error": null,
      "created_at": "2026-11-12T08:00:00Z",
      "delivered_at": "2026-11-12T08:00:01Z",
      "next_attempt_at": null,
      "replay_of": null
    }
  ]
}

Retrieve a delivery

GET /api/v1/webhooks/{id}/deliveries/{delivery} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.
delivery (путь, обязательно)stringDelivery id.

cURL

curl -X GET "$VOAARO_URL/api/v1/webhooks/<id>/deliveries/<delivery>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK, with the payload sent.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).

Replay a delivery

POST /api/v1/webhooks/{id}/deliveries/{delivery}/replay · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringWebhook id.
delivery (путь, обязательно)stringDelivery id.
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

cURL

curl -X POST "$VOAARO_URL/api/v1/webhooks/<id>/deliveries/<delivery>/replay" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 202 New delivery of the same content.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
202
{
  "object": "webhook_delivery",
  "id": "77b0…",
  "replay_of": "51aa…"
}

Suppressions

Addresses that no longer receive anything from a domain (application full_access key).

List suppressed addresses

GET /api/v1/suppressions · Нужный ключ : full_access

Параметры

ИмяТипОписание
limit (запрос)integerPage size, 1 to 100. Without it, the list keeps its default.
after (запрос)stringCursor: id of an item; returns the older items after it (needs limit).
before (запрос)stringCursor: id of an item; returns the newer items before it (needs limit).
domain (запрос)stringOnly this domain.
email (запрос)stringAddress contains.
reason (запрос)stringbounce, complaint or manual.

cURL

curl -X GET "$VOAARO_URL/api/v1/suppressions" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "suppression",
      "id": "3f0e…",
      "email": "jane@example.com",
      "domain": "notify.acme.com",
      "reason": "manual",
      "details": null,
      "email_id": null,
      "created_at": "2026-11-12T08:00:00Z"
    }
  ]
}

Add an address

POST /api/v1/suppressions · Нужный ключ : full_access

Параметры

ИмяТипОписание
Idempotency-Key (заголовок)string1 to 256 ASCII characters, kept 24 hours: the same request with the same key returns the first response (Idempotent-Replayed: true).

Тело запроса

ИмяТипОписание
email (обязательно)stringAddress.
domainstringDomain of the list (optional if the key has one domain).

cURL

curl -X POST "$VOAARO_URL/api/v1/suppressions" \
  -H "Authorization: Bearer $VOAARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "jane@example.com"
  }'

Ответы

  • 201 Added (200 if already there).
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
201
{
  "object": "suppression",
  "id": "3f0e…",
  "email": "jane@example.com",
  "domain": "notify.acme.com",
  "reason": "manual",
  "details": null,
  "email_id": null,
  "created_at": "2026-11-12T08:00:00Z"
}

Retrieve a suppressed address

GET /api/v1/suppressions/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringIdentifier.

cURL

curl -X GET "$VOAARO_URL/api/v1/suppressions/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "suppression",
  "id": "3f0e…",
  "email": "jane@example.com",
  "domain": "notify.acme.com",
  "reason": "manual",
  "details": null,
  "email_id": null,
  "created_at": "2026-11-12T08:00:00Z"
}

Remove an address (it will be served again)

DELETE /api/v1/suppressions/{id} · Нужный ключ : full_access

Параметры

ИмяТипОписание
id (путь, обязательно)stringIdentifier.

cURL

curl -X DELETE "$VOAARO_URL/api/v1/suppressions/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 Removed.
  • 401 Missing, invalid or too limited key.
  • 404 Not found, or outside the key's scope.
  • 422 Invalid request (message says which field).
  • 429 Too many requests (Retry-After says when to retry).
200
{
  "object": "suppression",
  "id": "3f0e…",
  "deleted": true
}

Organizations

Operator routes (operator key, disabled by default): client organizations, their quotas, domains, suspension.

List organizations

GET /api/v1/organizations · Нужный ключ : ключ оператора (mko_…), маршруты по умолчанию отключены

cURL

curl -X GET "$VOAARO_URL/api/v1/organizations" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing or invalid operator key.
  • 403 Operator routes disabled (Administration › Organizations).
  • 404 Not found.
  • 409 Conflict: quota reached, default organization or domain, identifier taken.
  • 422 Invalid request (message says which field).
  • 429 Too many failed attempts.
200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "6a1c…",
      "slug": "alpha-conseil",
      "name": "Alpha Conseil",
      "is_default": false,
      "kind": "company",
      "status": "active",
      "plan": null,
      "quotas": {
        "accounts": 10,
        "storage_bytes": 21474836480,
        "sends_per_day": 500,
        "domains": 2
      },
      "usage": {
        "accounts": 4,
        "invitations": 0,
        "storage_bytes": 8589934592,
        "domains": 1,
        "sends_today": 137
      },
      "domains": [
        "alpha-conseil.mg"
      ],
      "created_at": "2026-11-12T08:00:00Z"
    }
  ]
}

Create an organization

POST /api/v1/organizations · Нужный ключ : ключ оператора (mko_…), маршруты по умолчанию отключены

Тело запроса

ИмяТипОписание
namestringName, 1 to 100 characters (required to create).
slugstringShort identifier (default: from the name).
kind"company" | "public"company (default) or public.
planstringPlan, free text.
quotasobjectQuotas; null: unlimited.
quotas.accountsintegerAccounts, open invitations included.
quotas.storage_bytesintegerStorage allocated to accounts, in bytes.
quotas.sends_per_dayintegerMessages sent per day (webmail, SMTP, API).
quotas.domainsintegerDomains.
settingsobjectOwn settings: secondary.identity (true, false, or null to inherit the instance).
outboundobjectDedicated sending: relay (relay id or null), ips (ids of the dedicated outbound IPs; an IP attached to a cluster node only serves that node), fallback ({mode: queue|relay|direct, relay, after_attempts}: what to do when the dedicated relay fails) and other_nodes (instance or hold: nodes without a dedicated IP).

cURL

curl -X POST "$VOAARO_URL/api/v1/organizations" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 201 Created.
  • 401 Missing or invalid operator key.
  • 403 Operator routes disabled (Administration › Organizations).
  • 404 Not found.
  • 409 Conflict: quota reached, default organization or domain, identifier taken.
  • 422 Invalid request (message says which field).
  • 429 Too many failed attempts.
201
{
  "id": "6a1c…",
  "slug": "alpha-conseil",
  "name": "Alpha Conseil",
  "is_default": false,
  "kind": "company",
  "status": "active",
  "plan": null,
  "quotas": {
    "accounts": 10,
    "storage_bytes": 21474836480,
    "sends_per_day": 500,
    "domains": 2
  },
  "usage": {
    "accounts": 4,
    "invitations": 0,
    "storage_bytes": 8589934592,
    "domains": 1,
    "sends_today": 137
  },
  "domains": [
    "alpha-conseil.mg"
  ],
  "created_at": "2026-11-12T08:00:00Z"
}

Retrieve an organization

GET /api/v1/organizations/{id} · Нужный ключ : ключ оператора (mko_…), маршруты по умолчанию отключены

Параметры

ИмяТипОписание
id (путь, обязательно)string (uuid)Organization identifier.

cURL

curl -X GET "$VOAARO_URL/api/v1/organizations/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing or invalid operator key.
  • 403 Operator routes disabled (Administration › Organizations).
  • 404 Not found.
  • 409 Conflict: quota reached, default organization or domain, identifier taken.
  • 422 Invalid request (message says which field).
  • 429 Too many failed attempts.
200
{
  "id": "6a1c…",
  "slug": "alpha-conseil",
  "name": "Alpha Conseil",
  "is_default": false,
  "kind": "company",
  "status": "active",
  "plan": null,
  "quotas": {
    "accounts": 10,
    "storage_bytes": 21474836480,
    "sends_per_day": 500,
    "domains": 2
  },
  "usage": {
    "accounts": 4,
    "invitations": 0,
    "storage_bytes": 8589934592,
    "domains": 1,
    "sends_today": 137
  },
  "domains": [
    "alpha-conseil.mg"
  ],
  "created_at": "2026-11-12T08:00:00Z"
}

Update an organization (name, plan, quotas, settings, dedicated sending)

PATCH /api/v1/organizations/{id} · Нужный ключ : ключ оператора (mko_…), маршруты по умолчанию отключены

Параметры

ИмяТипОписание
id (путь, обязательно)string (uuid)Organization identifier.

Тело запроса

ИмяТипОписание
namestringName, 1 to 100 characters (required to create).
slugstringShort identifier (default: from the name).
kind"company" | "public"company (default) or public.
planstringPlan, free text.
quotasobjectQuotas; null: unlimited.
quotas.accountsintegerAccounts, open invitations included.
quotas.storage_bytesintegerStorage allocated to accounts, in bytes.
quotas.sends_per_dayintegerMessages sent per day (webmail, SMTP, API).
quotas.domainsintegerDomains.
settingsobjectOwn settings: secondary.identity (true, false, or null to inherit the instance).
outboundobjectDedicated sending: relay (relay id or null), ips (ids of the dedicated outbound IPs; an IP attached to a cluster node only serves that node), fallback ({mode: queue|relay|direct, relay, after_attempts}: what to do when the dedicated relay fails) and other_nodes (instance or hold: nodes without a dedicated IP).

cURL

curl -X PATCH "$VOAARO_URL/api/v1/organizations/<id>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing or invalid operator key.
  • 403 Operator routes disabled (Administration › Organizations).
  • 404 Not found.
  • 409 Conflict: quota reached, default organization or domain, identifier taken.
  • 422 Invalid request (message says which field).
  • 429 Too many failed attempts.
200
{
  "id": "6a1c…",
  "slug": "alpha-conseil",
  "name": "Alpha Conseil",
  "is_default": false,
  "kind": "company",
  "status": "active",
  "plan": null,
  "quotas": {
    "accounts": 10,
    "storage_bytes": 21474836480,
    "sends_per_day": 500,
    "domains": 2
  },
  "usage": {
    "accounts": 4,
    "invitations": 0,
    "storage_bytes": 8589934592,
    "domains": 1,
    "sends_today": 137
  },
  "domains": [
    "alpha-conseil.mg"
  ],
  "created_at": "2026-11-12T08:00:00Z"
}

Suspend an organization (sessions, sign-in, API keys, IMAP and SMTP)

POST /api/v1/organizations/{id}/suspend · Нужный ключ : ключ оператора (mko_…), маршруты по умолчанию отключены

Параметры

ИмяТипОписание
id (путь, обязательно)string (uuid)Organization identifier.

cURL

curl -X POST "$VOAARO_URL/api/v1/organizations/<id>/suspend" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing or invalid operator key.
  • 403 Operator routes disabled (Administration › Organizations).
  • 404 Not found.
  • 409 Conflict: quota reached, default organization or domain, identifier taken.
  • 422 Invalid request (message says which field).
  • 429 Too many failed attempts.
200
{
  "id": "6a1c…",
  "slug": "alpha-conseil",
  "name": "Alpha Conseil",
  "is_default": false,
  "kind": "company",
  "status": "active",
  "plan": null,
  "quotas": {
    "accounts": 10,
    "storage_bytes": 21474836480,
    "sends_per_day": 500,
    "domains": 2
  },
  "usage": {
    "accounts": 4,
    "invitations": 0,
    "storage_bytes": 8589934592,
    "domains": 1,
    "sends_today": 137
  },
  "domains": [
    "alpha-conseil.mg"
  ],
  "created_at": "2026-11-12T08:00:00Z"
}

Reactivate an organization

POST /api/v1/organizations/{id}/reactivate · Нужный ключ : ключ оператора (mko_…), маршруты по умолчанию отключены

Параметры

ИмяТипОписание
id (путь, обязательно)string (uuid)Organization identifier.

cURL

curl -X POST "$VOAARO_URL/api/v1/organizations/<id>/reactivate" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing or invalid operator key.
  • 403 Operator routes disabled (Administration › Organizations).
  • 404 Not found.
  • 409 Conflict: quota reached, default organization or domain, identifier taken.
  • 422 Invalid request (message says which field).
  • 429 Too many failed attempts.
200
{
  "id": "6a1c…",
  "slug": "alpha-conseil",
  "name": "Alpha Conseil",
  "is_default": false,
  "kind": "company",
  "status": "active",
  "plan": null,
  "quotas": {
    "accounts": 10,
    "storage_bytes": 21474836480,
    "sends_per_day": 500,
    "domains": 2
  },
  "usage": {
    "accounts": 4,
    "invitations": 0,
    "storage_bytes": 8589934592,
    "domains": 1,
    "sends_today": 137
  },
  "domains": [
    "alpha-conseil.mg"
  ],
  "created_at": "2026-11-12T08:00:00Z"
}

Move a domain into an organization (its accounts, keys and newsletters follow)

PUT /api/v1/organizations/{id}/domains/{name} · Нужный ключ : ключ оператора (mko_…), маршруты по умолчанию отключены

Параметры

ИмяТипОписание
id (путь, обязательно)string (uuid)Organization identifier.
name (путь, обязательно)stringDomain name, already on the instance.

cURL

curl -X PUT "$VOAARO_URL/api/v1/organizations/<id>/domains/<name>" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Ответы

  • 200 OK.
  • 401 Missing or invalid operator key.
  • 403 Operator routes disabled (Administration › Organizations).
  • 404 Not found.
  • 409 Conflict: quota reached, default organization or domain, identifier taken.
  • 422 Invalid request (message says which field).
  • 429 Too many failed attempts.
200
{
  "id": "6a1c…",
  "slug": "alpha-conseil",
  "name": "Alpha Conseil",
  "is_default": false,
  "kind": "company",
  "status": "active",
  "plan": null,
  "quotas": {
    "accounts": 10,
    "storage_bytes": 21474836480,
    "sends_per_day": 500,
    "domains": 2
  },
  "usage": {
    "accounts": 4,
    "invitations": 0,
    "storage_bytes": 8589934592,
    "domains": 1,
    "sends_today": 137
  },
  "domains": [
    "alpha-conseil.mg"
  ],
  "created_at": "2026-11-12T08:00:00Z"
}
Esc