Volanea Templates API

Reusable content with versioning, rollback, and test sends.

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 9

GET /v1/templates List templates #
POST /v1/templates Create a template #
GET /v1/templates/{id} Get a template #
PATCH /v1/templates/{id} Update a template #
DELETE /v1/templates/{id} Delete a template #
GET /v1/templates/{id}/versions List template versions #
POST /v1/templates/{id}/duplicate Duplicate a template #
POST /v1/templates/{id}/rollback Roll back to a version #
POST /v1/templates/{id}/test-send Test-send a template #

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-templates-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-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Volanea Templates 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: Templates
  description: Reusable content with versioning, rollback, and test sends.
paths:
  /v1/templates:
    get:
      tags:
      - Templates
      operationId: listTemplates
      summary: List templates
      description: 'Every template in the project, newest first, each with its current content and version number.


        Unpaginated — unlike contacts, emails, and events, this returns the whole set in one response, bodies included. A project with many large templates will find this a heavy call; there is no cursor to page it with.'
      responses:
        '200':
          description: All templates, most recently updated first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Template'
                required:
                - data
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      tags:
      - Templates
      operationId: createTemplate
      summary: Create a template
      description: 'Stores reusable content addressed by `templateId`, so a send can name the template instead of carrying the markup.


        `subject`, `body`, and the preheader support `{{variable}}` placeholders, resolved at send time against the per-call `variables` first and the contact''s own fields second. `fromEmail` must sit on a verified domain or every send from this template fails.


        Version 1 is written immediately. Every later content change bumps the version and keeps the previous one, which is what `POST /v1/templates/{id}/rollback` restores.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 120
                type:
                  type: string
                  enum:
                  - transactional
                  - marketing
                  description: Marketing templates get the unsubscribe footer and respect the subscribed flag.
                subject:
                  type: string
                  maxLength: 500
                body:
                  type: string
                  description: HTML with `{{variable}}` placeholders.
                fromName:
                  type: string
                  maxLength: 120
                fromEmail:
                  type: string
                  format: email
              required:
              - name
              - subject
              - body
              - fromEmail
      responses:
        '201':
          description: Created (version 1 is snapshotted).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
        '401':
          description: Missing or invalid API key.
          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'
  /v1/templates/{id}:
    get:
      tags:
      - Templates
      operationId: getTemplate
      summary: Get a template
      description: 'One template: its current subject, body, from address, and version number.


        Only the current content — earlier versions are at `GET /v1/templates/{id}/versions`.'
      parameters:
      - name: id
        in: path
        required: true
        description: Template id.
        schema:
          type: string
      responses:
        '200':
          description: The template.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          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'
    patch:
      tags:
      - Templates
      operationId: updateTemplate
      summary: Update a template
      description: Content changes (subject, body, from) bump the version and snapshot the new content for rollback.
      parameters:
      - name: id
        in: path
        required: true
        description: Template id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 120
                type:
                  type: string
                  enum:
                  - transactional
                  - marketing
                  description: Marketing templates get the unsubscribe footer and respect the subscribed flag.
                subject:
                  type: string
                  maxLength: 500
                body:
                  type: string
                  description: HTML with `{{variable}}` placeholders.
                fromName:
                  type: string
                  maxLength: 120
                fromEmail:
                  type: string
                  format: email
      responses:
        '200':
          description: The updated template.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          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'
    delete:
      tags:
      - Templates
      operationId: deleteTemplate
      summary: Delete a template
      description: 'Deletes the template and its entire version history.


        Messages already sent from it are unaffected: the rendered body is stored on each email row, so the send log stays readable after the template is gone.


        **Nothing checks for references first.** A campaign or workflow step still naming this `templateId` is not updated and not warned about — it fails at send time with `send_failed` and `details[0].code` of `template_not_found`. Check what points at a template before removing it.'
      parameters:
      - name: id
        in: path
        required: true
        description: Template id.
        schema:
          type: string
      responses:
        '200':
          description: Deleted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                required:
                - success
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          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'
  /v1/templates/{id}/versions:
    get:
      tags:
      - Templates
      operationId: listTemplateVersions
      summary: List template versions
      description: 'Every stored version of one template, newest version first.


        Each row is the full content as it stood — subject, body, from address — not a diff. This is the list to read a `version` number out of before calling `POST /v1/templates/{id}/rollback`.'
      parameters:
      - name: id
        in: path
        required: true
        description: Template id.
        schema:
          type: string
      responses:
        '200':
          description: All snapshots, newest version first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TemplateVersion'
                required:
                - data
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          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'
  /v1/templates/{id}/duplicate:
    post:
      tags:
      - Templates
      operationId: duplicateTemplate
      summary: Duplicate a template
      description: Clones the current content as a new template with its own fresh version-1 history (the source's version history is not copied).
      parameters:
      - name: id
        in: path
        required: true
        description: Template id.
        schema:
          type: string
      responses:
        '201':
          description: The new template.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          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'
  /v1/templates/{id}/rollback:
    post:
      tags:
      - Templates
      operationId: rollbackTemplate
      summary: Roll back to a version
      description: Restores an old version's content as a new version (history is never rewritten).
      parameters:
      - name: id
        in: path
        required: true
        description: Template id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                version:
                  type: integer
                  minimum: 1
              required:
              - version
      responses:
        '200':
          description: The template at its new version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          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'
  /v1/templates/{id}/test-send:
    post:
      tags:
      - Templates
      operationId: testSendTemplate
      summary: Test-send a template
      description: Sends the template to one address with sample variable data. The subject is prefixed with "[Test]".
      parameters:
      - name: id
        in: path
        required: true
        description: Template id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                to:
                  type: string
                  format: email
                variables:
                  type: object
                  additionalProperties:
                    oneOf:
                    - type: string
                    - type: number
                    - type: boolean
              required:
              - to
      responses:
        '200':
          description: The send outcome.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendResult'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          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'
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
    TemplateVersion:
      type: object
      properties:
        templateId:
          type: string
        version:
          type: integer
        subject:
          type: string
        body:
          type: string
        fromName:
          type:
          - string
          - 'null'
        fromEmail:
          type: string
          format: email
        createdAt:
          type: string
          format: date-time
      required:
      - templateId
      - version
      - subject
      - body
      - fromEmail
      - createdAt
    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
    Template:
      type: object
      properties:
        templateId:
          type: string
        projectId:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
          - transactional
          - marketing
        subject:
          type: string
        body:
          type: string
        fromName:
          type:
          - string
          - 'null'
        fromEmail:
          type: string
          format: email
        version:
          type: integer
          description: Bumped on every content change; old versions are kept for rollback.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
      - templateId
      - name
      - type
      - subject
      - body
      - fromEmail
      - version
      - createdAt
      - updatedAt
  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`.