Volanea Events API
Product event ingestion (public key) and the event log.
Product event ingestion (public key) and the event log.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/volanea-com:volanea-com-events-api"
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.
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: 3.2.0
info:
title: Volanea Events 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: Events
description: Product event ingestion (public key) and the event log.
paths:
/v1/events:
post:
tags:
- Events
operationId: trackEvent
summary: Track an event
description: Ingest a product event for a contact (auto-created if unknown). Accepts the public key (`pk_…`), so it is safe to call from client-side code. Names with the `email.`/`contact.`/`segment.`/`workflow.` prefixes are reserved for system events. Events feed segments, workflow triggers, and webhooks.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
maxLength: 128
description: Your event name, e.g. `user.signup` (reserved prefixes excluded).
email:
type: string
format: email
description: The contact the event belongs to.
data:
type: object
additionalProperties: true
description: Properties of the event — what happened. Point-in-time; never applied to the contact.
contact:
type: object
description: Who the contact is. Applied to the contact record, so a workflow triggered by this event can personalise its email with `{{firstName}}`. Omit a field to leave the existing value untouched; omit the whole object and the contact is created with only an address.
properties:
firstName:
type: string
maxLength: 120
nullable: true
lastName:
type: string
maxLength: 120
nullable: true
locale:
type: string
maxLength: 16
nullable: true
data:
type: object
additionalProperties: true
nullable: true
description: Custom contact fields, merged into the contact's existing `data`.
required:
- name
- email
responses:
'200':
description: Event recorded, with what it set off.
content:
application/json:
schema:
type: object
properties:
eventId:
type: string
contactId:
type: string
description: The contact the event was attributed to, created if it did not exist.
triggered:
type: array
items:
$ref: '#/components/schemas/TriggeredWorkflow'
description: The active workflows this event just handed to the automation engine. **An empty array means nothing matched** — that is the point of the field. Firing automations is what this endpoint is for, and before this existed the only way to find out whether anything happened was to list every workflow and compare trigger strings by hand; a typo in an event name looked exactly like a working integration.
skipped:
type: array
items:
$ref: '#/components/schemas/SkippedWorkflow'
description: 'Workflows whose trigger matched but that are `draft` or `paused`, so nothing ran. Check this before concluding your trigger string is wrong: an empty `triggered` with a non-empty `skipped` means the wiring is correct and the workflow simply is not live yet.'
required:
- eventId
- contactId
- triggered
- skipped
'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'
get:
tags:
- Events
operationId: listEvents
summary: List events
description: The event log (system and custom events), newest first, cursor-paginated, within the plan's log window (`logRetentionDays`). Requires a secret key.
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
- name: name
in: query
required: false
description: Filter by exact event name.
schema:
type: string
- name: contactId
in: query
required: false
description: Filter to one contact.
schema:
type: string
responses:
'200':
description: A page of events.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Event'
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'
/v1/events/names:
get:
tags:
- Events
operationId: listEventNames
summary: List distinct event names
description: Every event name logged for the project, alphabetical — for populating a segment/workflow event picker.
responses:
'200':
description: Distinct event names.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: string
'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/events/stats:
get:
tags:
- Events
operationId: eventStats
summary: Per-name event counts
description: 'Count and first/last-seen timestamp for every event name, most frequent first.
**Windowing is opt-in.** With no range parameters this covers the project''s whole history, which is what it did before ranges existed — narrowing the default would have changed the meaning of a number callers are already charting. Pass `days` for a rolling window or `from`/`to` for an explicit one; the two forms are mutually exclusive and sending both is a 422 rather than a silent choice between them.
When a range is given the response carries a `window` object echoing it back, and `firstSeen`/`lastSeen` become the extremes *inside* that window rather than the event''s all-time first sighting. A request with no range omits `window` entirely.'
parameters:
- name: days
in: query
required: false
description: Rolling window, in days (1–365) counting back from now. Mutually exclusive with `from`/`to`. Omit for all time.
schema:
type: integer
minimum: 1
maximum: 365
- name: from
in: query
required: false
description: Start of an explicit window (ISO 8601). May be sent without `to` for an open-ended range.
schema:
type: string
format: date-time
- name: to
in: query
required: false
description: End of an explicit window (ISO 8601), inclusive — `to` on a date includes that whole day rather than stopping at its start.
schema:
type: string
format: date-time
responses:
'200':
description: Per-name stats.
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
name:
type: string
count:
type: integer
firstSeen:
type: integer
description: Unix ms.
lastSeen:
type: integer
description: Unix ms.
'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/events/{name}/usage:
get:
tags:
- Events
operationId: eventUsage
summary: Usage detail for one event name
description: 'One event name''s totals: how many times it fired, how many distinct contacts triggered it, and when it was first and last seen.
`contactCount` counts only events that were attributed to a contact — events tracked without a resolvable address raise `count` without raising it, so the two legitimately disagree.
An unknown name answers 200 with zeros rather than 404, so this endpoint cannot tell you "never fired" from "you misspelled it". When a trigger looks dead, check `GET /v1/events/names` for what you are actually sending.
Takes the same optional window as `GET /v1/events/stats`, so drilling from a ranged list into one name keeps the range and the two agree. With no range this covers all time, as it always has.'
parameters:
- name: name
in: path
required: true
schema:
type: string
- name: days
in: query
required: false
description: Rolling window, in days (1–365) counting back from now. Mutually exclusive with `from`/`to`. Omit for all time.
schema:
type: integer
minimum: 1
maximum: 365
- name: from
in: query
required: false
description: Start of an explicit window (ISO 8601). May be sent without `to` for an open-ended range.
schema:
type: string
format: date-time
- name: to
in: query
required: false
description: End of an explicit window (ISO 8601), inclusive — `to` on a date includes that whole day rather than stopping at its start.
schema:
type: string
format: date-time
responses:
'200':
description: Usage detail.
content:
application/json:
schema:
type: object
properties:
name:
type: string
count:
type: integer
contactCount:
type: integer
description: Distinct contacts that triggered this event.
firstSeen:
type:
- integer
- 'null'
lastSeen:
type:
- integer
- 'null'
'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/events/{name}:
delete:
tags:
- Events
operationId: deleteEventName
summary: Delete all events with this name
description: Irreversible. System event names (`email.`/`contact.`/`segment.`/`workflow.` prefixes) are reserved and can't be deleted.
parameters:
- name: name
in: path
required: true
schema:
type: string
responses:
'200':
description: How many events were removed.
content:
application/json:
schema:
type: object
properties:
name:
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'
components:
schemas:
SkippedWorkflow:
type: object
description: A workflow whose trigger matched but which cannot run in its current state. Reported separately so the two ways an event-driven integration silently does nothing — nothing matched, or the only match is not live — are distinguishable from the response alone.
properties:
workflowId:
type: string
name:
type: string
trigger:
type: string
reason:
type: string
enum:
- workflow_paused
- workflow_draft
required:
- workflowId
- name
- trigger
- reason
Event:
type: object
properties:
eventId:
type: string
projectId:
type: string
contactId:
type:
- string
- 'null'
emailId:
type:
- string
- 'null'
name:
type: string
description: System events use reserved prefixes ("email.", "contact.", "segment.", "workflow."); everything else is yours.
data:
type:
- object
- 'null'
additionalProperties: true
createdAt:
type: string
format: date-time
required:
- eventId
- name
- 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
TriggeredWorkflow:
type: object
description: 'A workflow this event handed to the automation engine. `status` is `dispatched`, never `enrolled`: enrolment runs fire-and-forget after the response and can still be refused by the workflow''s `reentry` policy. Confirm an actual enrolment with `GET /v1/workflows/{id}/executions`.'
properties:
workflowId:
type: string
name:
type: string
trigger:
type: string
description: The workflow's trigger string that this event matched.
status:
type: string
enum:
- dispatched
required:
- workflowId
- name
- trigger
- status
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`.