Volanea Contacts API

The contact graph: CRUD, timeline, bulk operations, CSV import/export.

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 13

GET /v1/contacts List contacts #
POST /v1/contacts Create or update a contact #
GET /v1/contacts/export Export contacts as CSV #
POST /v1/contacts/import Import contacts from CSV #
GET /v1/contacts/import/{id} Import job progress #
POST /v1/contacts/bulk Bulk subscribe / unsubscribe / delete / suppress #
GET /v1/contacts/fields Discover custom contact fields #
GET /v1/contacts/fields/{field}/values Distinct values for one custom field #
GET /v1/contacts/fields/{field}/usage How many contacts have this field set #
DELETE /v1/contacts/fields/{field} Remove a custom field from every contact #
GET /v1/contacts/{id} Get a contact #
DELETE /v1/contacts/{id} Delete a contact #
GET /v1/contacts/{id}/timeline Contact activity timeline #

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-contacts-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-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Volanea Contacts 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: Contacts
  description: 'The contact graph: CRUD, timeline, bulk operations, CSV import/export.'
paths:
  /v1/contacts:
    get:
      tags:
      - Contacts
      operationId: listContacts
      summary: List contacts
      description: Newest first, cursor-paginated.
      parameters:
      - name: cursor
        in: query
        required: false
        description: 'Pagination cursor — an OPAQUE token. Take the `nextCursor` from the previous page and send it back unchanged. Do not parse it, do not coerce it to a number, and do not construct one: the format is `<unixMs>.<objectId>` today and may change. A cursor that cannot be parsed is rejected with 422 `validation_error` rather than silently restarting at page one.'
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Page size (1–200, default 50).
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      responses:
        '200':
          description: A page of contacts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Contact'
                  nextCursor:
                    type:
                    - string
                    - 'null'
                    description: Opaque token. Pass back as `cursor` verbatim to fetch the next page; `null` when there are no more rows.
                required:
                - data
                - nextCursor
        '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'
    post:
      tags:
      - Contacts
      operationId: upsertContact
      summary: Create or update a contact
      description: Upsert by email (addresses are lowercased). Only the provided fields are changed on update.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
                firstName:
                  type: string
                lastName:
                  type: string
                subscribed:
                  type: boolean
                data:
                  type: object
                  additionalProperties: true
                  description: Arbitrary custom fields (replaces the stored object).
              required:
              - email
      responses:
        '200':
          description: Existing contact updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contact'
        '201':
          description: Contact created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contact'
        '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/contacts/export:
    get:
      tags:
      - Contacts
      operationId: exportContacts
      summary: Export contacts as CSV
      description: The full audience as a CSV download (`email,firstName,lastName,subscribed,locale,source,data,createdAt`).
      responses:
        '200':
          description: CSV file.
          content:
            text/csv:
              schema:
                type: string
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/contacts/import:
    post:
      tags:
      - Contacts
      operationId: importContacts
      summary: Import contacts from CSV
      description: 'CSV with a header row; an `email` column is required. `firstName`, `lastName`, `subscribed`, and `locale` columns map to contact fields; any other column becomes a custom `data` field.


        **Asynchronous.** This answers 202 with a job id as soon as the header row validates; the rows are imported by a background worker. It does NOT return final counts — poll `GET /v1/contacts/import/{id}` until `status` is `done` or `failed`. Only the malformed-CSV cases (no header, no `email` column) are decided synchronously, as 422.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                csv:
                  type: string
                  description: The CSV content. Max 8,000,000 characters — the whole file is stored on the job document, and Mongo caps a document at 16 MB.
                dedupe:
                  type: string
                  enum:
                  - update
                  - skip
                  default: update
                  description: What to do when an email already exists.
              required:
              - csv
      responses:
        '202':
          description: Import accepted and queued. No contact has been written yet.
          content:
            application/json:
              schema:
                type: object
                properties:
                  importJobId:
                    type: string
                    description: Poll `GET /v1/contacts/import/{id}` with this.
                  status:
                    type: string
                    enum:
                    - queued
                  total:
                    type: integer
                    description: Data rows detected (header excluded). Nothing has been imported yet.
                required:
                - importJobId
                - status
                - total
        '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/contacts/import/{id}:
    get:
      tags:
      - Contacts
      operationId: getContactImport
      summary: Import job progress
      description: Progress and final counts for a queued CSV import. Poll until `status` is `done` (counts are final) or `failed` (`failureReason` says why). Counts are recomputed from scratch on every worker attempt, never incremented, so a retried job never double-counts.
      parameters:
      - name: id
        in: path
        required: true
        description: Import job id (`importJobId` from the 202).
        schema:
          type: string
      responses:
        '200':
          description: The job's current state.
          content:
            application/json:
              schema:
                type: object
                properties:
                  importJobId:
                    type: string
                  status:
                    type: string
                    enum:
                    - queued
                    - processing
                    - done
                    - failed
                  total:
                    type: integer
                    description: Data rows in the file.
                  processed:
                    type: integer
                    description: Rows handled so far.
                  imported:
                    type: integer
                    description: New contacts created.
                  updated:
                    type: integer
                  skipped:
                    type: integer
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        line:
                          type: integer
                        error:
                          type: string
                    description: Up to the first 10 row failures. `skipped` counts them all — do not read this array's length as the failure count.
                  failureReason:
                    type:
                    - string
                    - 'null'
                    description: 'Set only when `status` is `failed`: the job itself died, not one row.'
                required:
                - importJobId
                - status
                - total
        '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/contacts/bulk:
    post:
      tags:
      - Contacts
      operationId: bulkContacts
      summary: Bulk subscribe / unsubscribe / delete / suppress
      description: Apply one action to up to 10,000 addresses. `suppress` adds addresses to the do-not-send list even if no contact exists.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                action:
                  type: string
                  enum:
                  - subscribe
                  - unsubscribe
                  - delete
                  - suppress
                emails:
                  type: array
                  items:
                    type: string
                    format: email
                  minItems: 1
                  maxItems: 10000
              required:
              - action
              - emails
      responses:
        '200':
          description: How many contacts were affected.
          content:
            application/json:
              schema:
                type: object
                properties:
                  action:
                    type: string
                  affected:
                    type: integer
                required:
                - action
                - affected
        '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/contacts/fields:
    get:
      tags:
      - Contacts
      operationId: listContactFields
      summary: Discover custom contact fields
      description: Every key seen across contacts' `data` objects, with how many contacts have it set — for building segment filter pickers dynamically.
      responses:
        '200':
          description: Custom fields with counts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                        count:
                          type: integer
        '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/contacts/fields/{field}/values:
    get:
      tags:
      - Contacts
      operationId: listContactFieldValues
      summary: Distinct values for one custom field
      description: 'The 100 most common values stored under one custom `data` key, most frequent first, each with a count.


        Built for populating a segment-filter dropdown from real data instead of asking someone to remember what they wrote. Contacts that lack the key, or store null under it, are excluded — so the counts here total less than your contact count.


        The cap is a fixed 100 and there is no pagination: a field with a longer tail than that is a free-text field, not a segment filter.'
      parameters:
      - name: field
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Distinct values with counts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  field:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        value: {}
                        count:
                          type: integer
                    description: Up to 100 distinct values, most common first.
        '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/contacts/fields/{field}/usage:
    get:
      tags:
      - Contacts
      operationId: contactFieldUsage
      summary: How many contacts have this field set
      description: 'How many contacts have this custom field set to a non-null value.


        Worth calling before `DELETE /v1/contacts/fields/{field}` — that endpoint is irreversible and project-wide, and this is the number it would affect.'
      parameters:
      - name: field
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Usage count.
          content:
            application/json:
              schema:
                type: object
                properties:
                  field:
                    type: string
                  count:
                    type: integer
        '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/contacts/fields/{field}:
    delete:
      tags:
      - Contacts
      operationId: deleteContactField
      summary: Remove a custom field from every contact
      description: Irreversible. Deletes this key from the `data` object of every contact in the project.
      parameters:
      - name: field
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: How many contacts were changed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  field:
                    type: string
                  removed:
                    type: integer
        '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/contacts/{id}:
    get:
      tags:
      - Contacts
      operationId: getContact
      summary: Get a contact
      description: 'One contact by id: identity, subscription state, locale, and the custom `data` object.


        This is the record, not the history. For what the contact was sent and what they did with it, use `GET /v1/contacts/{id}/timeline`.'
      parameters:
      - name: id
        in: path
        required: true
        description: Contact id.
        schema:
          type: string
      responses:
        '200':
          description: The contact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Contact'
        '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:
      - Contacts
      operationId: deleteContact
      summary: Delete a contact
      description: 'Deletes the contact record. Two things deliberately survive it.


        **The send log.** Rows in `GET /v1/emails` keep the address and their now-dangling `contactId`, because discarding delivery history along with the contact would erase the bounce and complaint record you are required to be able to produce.


        **Suppressions.** The do-not-send list is keyed by address, not by contact, so deleting a contact does not make a suppressed address mailable again — and re-creating the contact does not either. Use `DELETE /v1/suppressions/{id}` if that is what you meant.'
      parameters:
      - name: id
        in: path
        required: true
        description: Contact 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/contacts/{id}/timeline:
    get:
      tags:
      - Contacts
      operationId: getContactTimeline
      summary: Contact activity timeline
      description: The contact plus their most recent 100 activities — events and emails merged, newest first.
      parameters:
      - name: id
        in: path
        required: true
        description: Contact id.
        schema:
          type: string
      responses:
        '200':
          description: The merged timeline.
          content:
            application/json:
              schema:
                type: object
                properties:
                  contact:
                    $ref: '#/components/schemas/Contact'
                  timeline:
                    type: array
                    items:
                      oneOf:
                      - type: object
                        description: An event entry.
                        properties:
                          kind:
                            type: string
                            enum:
                            - event
                          at:
                            type: integer
                            description: Unix ms.
                          name:
                            type: string
                          data:
                            type:
                            - object
                            - 'null'
                            additionalProperties: true
                          emailId:
                            type:
                            - string
                            - 'null'
                        required:
                        - kind
                        - at
                        - name
                      - type: object
                        description: An email entry.
                        properties:
                          kind:
                            type: string
                            enum:
                            - email
                          at:
                            type: integer
                            description: Unix ms.
                          emailId:
                            type: string
                          subject:
                            type: string
                          source:
                            type: string
                          status:
                            type: string
                        required:
                        - kind
                        - at
                        - emailId
                        - subject
                required:
                - contact
                - timeline
        '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:
    Contact:
      type: object
      properties:
        contactId:
          type: string
        projectId:
          type: string
        email:
          type: string
          format: email
        firstName:
          type:
          - string
          - 'null'
        lastName:
          type:
          - string
          - 'null'
        subscribed:
          type: boolean
        data:
          type:
          - object
          - 'null'
          additionalProperties: true
          description: Arbitrary custom fields.
        locale:
          type:
          - string
          - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
      - contactId
      - email
      - subscribed
      - createdAt
      - updatedAt
    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`.