Volanea Stats API
Engagement aggregates: the project rollup and the per-workflow funnel.
Engagement aggregates: the project rollup and the per-workflow funnel.
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-stats-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 Stats 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: Stats
description: 'Engagement aggregates: the project rollup and the per-workflow funnel.'
paths:
/v1/stats:
get:
tags:
- Stats
operationId: projectStats
summary: Project engagement rollup
description: 'Sends, delivery, opens, clicks, bounces and unsubscribes for the whole project over a window, with the previous window alongside for comparison and a gap-free daily series for charting.
**Test and live are separate populations**, and which one you get is decided by the key you authenticate with rather than by a parameter — a `sk_test_…` key can never report production figures. This matters more than it sounds: in a project that has been integrated against, more than half the rows in the send log can be test sends, and totalling `GET /v1/emails` without filtering them produces a delivery rate that is wrong by tens of points.
**Rates compare in points, sends compare in percent.** An open rate moving 35% → 38% is reported as `openPoints: 3`, because "open rate up 8%" is ambiguous and "up 3 points" is not. `sentPercent` is a true percentage change, and is `null` rather than 0 when the previous window had no sends at all — those are different facts.
`delivered` counts every message that reached the mailbox, so it includes the ones that went on to be opened and clicked. Statuses only move forward, so each stage necessarily contains the ones past it.'
parameters:
- name: days
in: query
required: false
description: Window length in days (1–365, default 30). The comparison window is the same length immediately before it.
schema:
type: integer
minimum: 1
maximum: 365
default: 30
responses:
'200':
description: The rollup.
content:
application/json:
schema:
type: object
properties:
window:
type: object
properties:
days:
type: integer
from:
type: string
format: date-time
to:
type: string
format: date-time
testMode:
type: boolean
description: Which population these numbers describe, derived from the key.
totals:
type: object
properties:
sent:
type: integer
delivered:
type: integer
opened:
type: integer
clicked:
type: integer
bounced:
type: integer
complained:
type: integer
failed:
type: integer
unsubscribed:
type: integer
rates:
type: object
description: Percentages. `delivery` and `bounce` are of `sent`; `open`, `click` and `unsubscribe` are of `delivered`.
properties:
delivery:
type: number
open:
type: number
click:
type: number
bounce:
type: number
unsubscribe:
type: number
previous:
type: object
description: The same measures for the preceding window of equal length.
change:
type: object
properties:
sentPercent:
type:
- number
- 'null'
description: Percentage change in volume; null when the previous window had no sends.
deliveryPoints:
type: number
openPoints:
type: number
clickPoints:
type: number
daily:
type: array
description: One entry per day, oldest first, split by source. Days with no sends are present with zeros so a chart has no holes.
items:
type: object
properties:
day:
type: string
description: YYYY-MM-DD.
transactional:
type: integer
campaign:
type: integer
workflow:
type: integer
inbound:
type: integer
total:
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/workflows/{id}/stats:
get:
tags:
- Stats
operationId: workflowStats
summary: Workflow funnel
description: 'The enrolment funnel for one workflow: entered → delivered → opened → clicked → converted, each with the drop from the stage before it.
**The funnel counts distinct contacts; `totals` counts messages.** A three-email drip sends three messages to one person, so a funnel counted in messages would report more delivered than entered and stop being a funnel at all. The two numbers differ for that reason, not by mistake.
**Conversion is whatever you say it is.** Volanea stores no conversion of its own — what counts as one is a property of your product. Name any event you already send to `POST /v1/events` as `conversionEvent` and it becomes the last stage. Only conversions that happened at or after the contact entered are counted; attributing a purchase that predates the enrolment would flatter every funnel aimed at people who already buy. Omit the parameter and the stage is absent rather than zero, because "no goal set" and "nobody converted" are different answers.
Engagement is aggregated from the send log on read rather than kept as counters on the workflow, so these numbers are real for workflows that ran long before this endpoint existed.'
parameters:
- name: id
in: path
required: true
description: Workflow id.
schema:
type: string
- name: days
in: query
required: false
description: Window length in days (1–365, default 30).
schema:
type: integer
minimum: 1
maximum: 365
default: 30
- name: conversionEvent
in: query
required: false
description: One of your own event names, e.g. `order.placed`. Adds the `converted` stage.
schema:
type: string
maxLength: 128
responses:
'200':
description: The funnel.
content:
application/json:
schema:
type: object
properties:
workflowId:
type: string
name:
type: string
status:
type: string
window:
type: object
properties:
days:
type: integer
from:
type: string
format: date-time
to:
type: string
format: date-time
testMode:
type: boolean
funnel:
type: array
description: Stages in order, in distinct contacts.
items:
type: object
properties:
stage:
type: string
enum:
- entered
- delivered
- opened
- clicked
- converted
count:
type: integer
rateOfEntered:
type: number
description: Percentage of the contacts that entered.
dropFromPrevious:
type:
- integer
- 'null'
description: Contacts lost since the previous stage; null on the first.
totals:
type: object
description: Messages, not people.
properties:
messages:
type: integer
unsubscribed:
type: integer
byStatus:
type: object
additionalProperties:
type: integer
executions:
type: object
additionalProperties:
type: integer
description: Enrolment counts by execution status.
conversionEvent:
type: string
description: Echoed back when one was named.
'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:
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`.