Volanea Send API

Transactional sending, with batching, scheduling, and idempotency.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

POST /v1/send Send an email #
POST /v1/send/batch Send a batch #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/volanea-com:volanea-com-send-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

volanea-com-send-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Volanea Send API
  version: 0.1.0
  description: 'The open email platform: transactional sending, marketing campaigns, and lifecycle automation over one contact graph.


    **Authentication** — pass an API key as `Authorization: Bearer `. Three key types exist per project:

    `sk_…` (secret, full access — server-side only), `sk_test_…` (test — full access, renders and logs but never delivers),

    and `pk_…` (public — only accepted by `POST /v1/events`, safe to ship in client code).


    **Response envelope** — every 2xx body is `{ "success": true, "data": … }`. The schema shown for each operation below

    describes what goes in `data`, not the whole body. Cursor-paginated lists put the array in `data` and `nextCursor`

    beside it: `{ "success": true, "data": [...], "nextCursor": "1730000000000.6a6dd07e6afeb87b46b08bca" }`.

    `nextCursor` is an opaque string — send it back as `cursor` unchanged, and never parse or synthesise one.


    **Errors** — every error is `{ "success": false, "error": "", "code": "" }` with an

    appropriate HTTP status. Branch on `code`, never on the wording of `error`. Validation failures (422) add a `details`

    array naming each failing field by its dotted path.


    **Unknown request-body fields are rejected** — a body carrying a field this spec does not declare is a 422

    `validation_error`, with one `details` entry per unknown key (`code: "unrecognized_keys"`, `path` naming the key).

    Until 2026-08 they were silently dropped, which is how `reply_to` for `replyTo`, a `cc` carried over from another

    provider, and a misspelled segment `operator` all shipped to production looking like they had worked: the request

    answered 200 and the behaviour the field was meant to buy simply never happened. Sending an unknown field now costs

    you a failed request instead of a silent one. Query strings are the exception and stay permissive — a URL routinely

    carries analytics and cache-busting params that have nothing to do with the endpoint.


    **Idempotency** — `POST /v1/send` and `POST /v1/send/batch` accept an `Idempotency-Key` header. A repeated key with the

    same body replays the stored response, marked BOTH by the `X-Idempotent-Replay: true` response header and by

    `"replay": true` inside `data`. Read either; they are set together. (The header was promised here for years and never

    actually sent, so callers wrote against the body field — both are now part of the contract and neither will be

    removed.) A repeated key with a *different* body is a 409 `idempotency_key_reused` — the request is neither sent nor

    replayed, because silently returning the first response would discard the new message.


    **Template variables** — `{{name}}` placeholders are substituted in subjects, bodies, and preheaders wherever this

    spec says so. A placeholder may carry a fallback: `{{firstName | "there"}}` renders `there` when `firstName` is

    missing, null, or the empty string. The quotes are required and must be double quotes. Without a fallback a missing

    variable renders as nothing at all, which is how "Hi ," reaches inboxes. Dotted paths (`{{data.plan}}`) resolve

    into the contact''s custom `data`; per-call `variables` win over contact fields of the same name.


    **Pagination** — list endpoints return `{ data, nextCursor }`; pass `nextCursor` back as `cursor` until it is `null`.'
servers:
- url: https://api.volanea.com
  description: Production
- url: http://localhost:4100
  description: Local development
security:
- bearerAuth: []
tags:
- name: Send
  description: Transactional sending, with batching, scheduling, and idempotency.
paths:
  /v1/send:
    post:
      tags:
      - Send
      operationId: send
      summary: Send an email
      description: 'Send one message (to one address or up to 50). Runs the full pipeline: suppression check, contact upsert, template render, tracking instrumentation, and dispatch. Supports scheduling via `sendAt` and safe retries via the `Idempotency-Key` header.


        **Reading a failure** — every failure of the send pipeline keeps the top-level `code` `send_failed`, at whatever HTTP status fits (404 for a missing template, 403 for an unverified from domain). The specific cause is in `details[0].code` — e.g. `template_not_found`. Branch on `code === "send_failed"` for "the send did not happen", then read `details[0].code` when you need to tell a wrong template id in your config from a transient provider problem worth retrying. `details` is absent when there is no cause more specific than the message.


        **A 200 does not mean delivered.** Each entry in `messages` is either an accepted message (with an `id` and a `status`) or a skip (`{ to, skipped }` — suppressed, unsubscribed, over quota). Skips are part of a 200 body. Accepted messages are queued: the provider round trip happens after this response returns, so track final delivery with `GET /v1/emails/{id}` or the `email.*` webhooks, not from this call.'
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: A unique key for this logical send; a repeat replays the stored response instead of sending again.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMessage'
      responses:
        '200':
          description: Per-recipient results.
          content:
            application/json:
              schema:
                type: object
                properties:
                  messages:
                    type: array
                    items:
                      $ref: '#/components/schemas/SendResult'
                  testMode:
                    type: boolean
                  replay:
                    type: boolean
                    enum:
                    - true
                    description: Present and `true` ONLY on an idempotent replay — absent on a first send, never `false`. Nothing was dispatched for this request; `messages` is the stored response from the original call, so the ids in it are the original ids. Test `data.replay === true`, or read the `X-Idempotent-Replay` header.
                required:
                - messages
                - testMode
          headers:
            X-Idempotent-Replay:
              description: Present and `true` when this response was replayed from a previous request with the same `Idempotency-Key` — nothing was sent for this call. Omitted entirely otherwise; it is never `false`. `data.replay` says the same thing in the body for clients that cannot read response headers.
              schema:
                type: string
                enum:
                - 'true'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The from domain is not verified, or the project has no verified domain at all. `code` is `send_failed` — the domain is named in `error`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Template not found. `code` is `send_failed`; `details[0].code` is `template_not_found`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`Idempotency-Key` reused with a different body (`idempotency_key_reused`) — nothing was sent.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Request validation failed (code `validation_error`, 422).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Per-project send rate limit (`rate_limited`). Retry after the `Retry-After` header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/send/batch:
    post:
      tags:
      - Send
      operationId: sendBatch
      summary: Send a batch
      description: 'Up to 1,000 personalized messages in one call. Each message succeeds or fails independently; a failed message becomes a `{ error: … }` entry in `results` rather than failing the whole batch, so a bad template id in message #7 does not stop #8.


        **The batch answers 200 even when every message failed.** `results` is positional — entry *i* is the outcome of `messages[i]` — and you must inspect each entry. A caller that only checks the HTTP status reports a completely failed batch as a success. Supports `Idempotency-Key` over the whole batch.'
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: Replay protection for the whole batch.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                messages:
                  type: array
                  items:
                    $ref: '#/components/schemas/SendMessage'
                  minItems: 1
                  maxItems: 1000
              required:
              - messages
      responses:
        '200':
          description: Per-message results, in request order.
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      oneOf:
                      - type: object
                        properties:
                          messages:
                            type: array
                            items:
                              $ref: '#/components/schemas/SendResult'
                        required:
                        - messages
                      - type: object
                        description: 'A failed message. NOT the top-level error envelope — there is no `success` here, and the human-readable text is `error.message`, not `error`. Read `error.code` to branch: `validation_error` (with `error.details` naming the fields) or `send_failed`.'
                        properties:
                          error:
                            type: object
                            properties:
                              message:
                                type: string
                              code:
                                type: string
                                description: '`validation_error` or `send_failed`.'
                              details:
                                type: array
                                description: Failing fields, present on `validation_error` only. Paths are relative to this message, not to the batch body.
                                items:
                                  type: object
                                  properties:
                                    path:
                                      type: string
                                    message:
                                      type: string
                                    code:
                                      type: string
                                  required:
                                  - path
                                  - message
                                  - code
                            required:
                            - message
                            - code
                        required:
                        - error
                  testMode:
                    type: boolean
                  replay:
                    type: boolean
                    enum:
                    - true
                    description: Present and `true` ONLY on an idempotent replay — absent on a first send, never `false`. Nothing was dispatched; `results` is the stored response from the original batch.
                required:
                - results
                - testMode
          headers:
            X-Idempotent-Replay:
              description: Present and `true` when this response was replayed from a previous request with the same `Idempotency-Key` — nothing was sent for this call. Omitted entirely otherwise; it is never `false`. `data.replay` says the same thing in the body for clients that cannot read response headers.
              schema:
                type: string
                enum:
                - 'true'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`Idempotency-Key` reused with a different body (`idempotency_key_reused`) — nothing was sent.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Request validation failed (code `validation_error`, 422).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Per-project send rate limit (`rate_limited`). A batch consumes one unit per message, so it cannot dodge the cap.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    SendResult:
      description: 'Per-recipient outcome: either an accepted message or a skip reason.'
      oneOf:
      - type: object
        properties:
          id:
            type: string
            description: Email id — use with `GET /v1/emails/{id}`.
          to:
            type: string
            format: email
          status:
            type: string
            enum:
            - sent
            - scheduled
            - queued
        required:
        - id
        - to
        - status
      - type: object
        properties:
          to:
            type: string
            format: email
          skipped:
            type: string
            enum:
            - suppressed
            - unsubscribed
            - limit_reached
            - reputation_paused
            - disabled
            - free_tier_exceeded
            - plan_quota_exceeded
            - provider_suppressed
            - domain_blocked
            - provider_held
        required:
        - to
        - skipped
    SendMessage:
      type: object
      description: A single message. Provide inline `html`/`text` content or a `templateId`; `subject` is required unless the template supplies one.
      properties:
        to:
          description: Recipient address (optionally with a display name), or an array of 1–50 recipients (each gets its own message).
          oneOf:
          - type: string
            description: 'An address, or a display name and address: `"Ada Lovelace <ada@example.com>"`.'
          - type: object
            properties:
              email:
                type: string
                format: email
              name:
                type: string
            required:
            - email
          - type: array
            items:
              oneOf:
              - type: string
                description: 'An address, or a display name and address: `"Ada Lovelace <ada@example.com>"`.'
              - type: object
                properties:
                  email:
                    type: string
                    format: email
                  name:
                    type: string
                required:
                - email
            minItems: 1
            maxItems: 50
        subject:
          type: string
          description: 'Subject line. Supports `{{variable}}` placeholders, with fallbacks: `{{firstName | "there"}}`.'
        html:
          type: string
          description: 'HTML body. Supports `{{variable}}` placeholders, with fallbacks: `{{firstName | "there"}}`.'
        text:
          type: string
          description: Plain-text body (wrapped in `<pre>` when no HTML is given).
        templateId:
          type: string
          description: Send using a stored template instead of inline content.
        variables:
          type: object
          additionalProperties:
            oneOf:
            - type: string
            - type: number
            - type: boolean
          description: Values for `{{variable}}` placeholders in the subject and body. A name you omit falls back to the same-named contact field, then to the placeholder's own `| "default"` if it has one, then to nothing.
        from:
          type: string
          description: 'From address. Must belong to a verified domain (unless in test mode). Defaults to the template''s from address, or hello@ your first verified domain. `"Acme <hello@acme.com>"` also works: the name becomes `fromName` unless you send `fromName` yourself.'
        fromName:
          type: string
        replyTo:
          type: string
          description: Sets a Reply-To header. An address, or `"Name <address>"` (the name is dropped).
        headers:
          type: object
          additionalProperties:
            type: string
          description: Custom email headers to include on the message.
        attachments:
          type: array
          maxItems: 10
          items:
            type: object
            properties:
              filename:
                type: string
              content:
                type: string
                description: Base64-encoded file content.
              contentType:
                type: string
                default: application/octet-stream
            required:
            - filename
            - content
          description: Up to 10 attachments per message. Total request size is capped at 10 MiB.
        sendAt:
          type: string
          format: date-time
          description: Schedule delivery for a future time (ISO 8601 with offset). The message is stored `queued` with a `scheduledFor` — list the pending ones with `GET /v1/emails?status=scheduled`, stop one with `DELETE /v1/emails/{id}`.
        createContact:
          type: boolean
          description: Set `false` to skip auto-creating a contact for unknown recipients (default `true`).
        type:
          type: string
          enum:
          - transactional
          - marketing
          description: Marketing messages get the unsubscribe footer and skip contacts who have unsubscribed. Defaults to the template's type, or `transactional` for inline content — so promotional copy sent as inline `html` must set this explicitly or it bypasses the unsubscribe check.
      required:
      - to
    Error:
      type: object
      description: The error envelope returned by every non-2xx response. `error` is a human-readable string — branch on `code`, not on the wording of `error`, which may be reworded at any time.
      properties:
        success:
          type: boolean
          enum:
          - false
        error:
          type: string
          description: Human-readable explanation. For `validation_error` it names the failing field.
        code:
          type: string
          description: Machine-readable code, e.g. `unauthorized`, `not_found`, `validation_error`, `invalid_state`, `idempotency_key_reused`, `ambiguous_api_key`, `send_failed`, `plan_limit`.
        details:
          type:
          - array
          - object
          description: 'Present on `validation_error` (one entry per failing field) and on `send_failed`, where the single entry names the specific cause. `code` is the part to branch on — see the `details` note on `POST /v1/send`. On `plan_limit` it is an object instead: `{ feature, plan, requiredPlan, limit?, used? }`, where `requiredPlan` is the cheapest plan that includes the feature (`null` when none does — contact support).'
          items:
            type: object
            properties:
              path:
                type: string
                description: Dotted path into the request body, e.g. "messages.2.to". Empty string when the failure is not attributable to one field — which is the case for every `send_failed` entry.
              message:
                type: string
              code:
                type: string
                description: The underlying validator's code (`invalid_string`, `unrecognized_keys`, `invalid_cursor`, …), or for `send_failed` the specific cause (`template_not_found`, …).
            required:
            - path
            - message
            - code
      required:
      - success
      - error
      - code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Project API key. Use `sk_…` (secret) or `sk_test_…` (test) for server-side endpoints; `pk_…` (public) is accepted only by `POST /v1/events`.