Volanea Workflows API

Event-triggered automation graphs and their executions.

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 11

GET /v1/workflows List workflows #
POST /v1/workflows Create a workflow #
GET /v1/workflows/{id} Get a workflow #
PATCH /v1/workflows/{id} Update a workflow #
DELETE /v1/workflows/{id} Delete a workflow #
POST /v1/workflows/{id}/duplicate Duplicate a workflow #
POST /v1/workflows/{id}/enroll Enroll a contact #
GET /v1/workflows/{id}/executions List executions #
POST /v1/workflows/{id}/executions/cancel-all Cancel every in-flight execution #
POST /v1/workflows/{id}/executions/{executionId}/cancel Cancel one execution #
GET /v1/workflows/executions/{executionId} Get an execution #

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-workflows-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-workflows-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Volanea Workflows 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: Workflows
  description: Event-triggered automation graphs and their executions.
paths:
  /v1/workflows:
    get:
      tags:
      - Workflows
      operationId: listWorkflows
      summary: List workflows
      description: 'Every workflow in the project — draft, active, and paused — with its trigger and its full node graph.


        Unpaginated. Only `active` workflows enrol anyone: a `draft` or `paused` workflow whose trigger matches is reported in the `skipped` array of `POST /v1/events` rather than running.'
      responses:
        '200':
          description: All workflows.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Workflow'
                required:
                - data
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      tags:
      - Workflows
      operationId: createWorkflow
      summary: Create a workflow
      description: Created in `draft`. The graph must have unique node ids, edges to existing nodes, and at least one trigger node.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 160
                trigger:
                  type: string
                  description: '`event:<name>`, `contact.created`, `segment:enter:<ref>`, or `segment:exit:<ref>`.'
                graph:
                  $ref: '#/components/schemas/WorkflowGraph'
                reentry:
                  type: string
                  enum:
                  - never
                  - after_exit
                  - always
                  default: after_exit
                exitOnReply:
                  type: boolean
                  description: Exit a contact from this workflow as soon as they reply to any email (an `email.received` from them).
              required:
              - name
              - trigger
              - graph
      responses:
        '201':
          description: Created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workflow'
        '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}:
    get:
      tags:
      - Workflows
      operationId: getWorkflow
      summary: Get a workflow
      description: 'Includes `stepStats`: per-node counts grouped by outcome.'
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow id.
        schema:
          type: string
      responses:
        '200':
          description: The workflow with aggregates.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/Workflow'
                - type: object
                  properties:
                    stepStats:
                      type: array
                      items:
                        type: object
                        properties:
                          nodeId:
                            type: string
                          nodeType:
                            type: string
                          outcome:
                            type: string
                          count:
                            type: integer
        '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:
      - Workflows
      operationId: updateWorkflow
      summary: Update a workflow
      description: Also used to activate or pause via `status`.
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 160
                trigger:
                  type: string
                graph:
                  $ref: '#/components/schemas/WorkflowGraph'
                reentry:
                  type: string
                  enum:
                  - never
                  - after_exit
                  - always
                exitOnReply:
                  type: boolean
                  description: Exit a contact from this workflow as soon as they reply to any email (an `email.received` from them).
                status:
                  type: string
                  enum:
                  - draft
                  - active
                  - paused
      responses:
        '200':
          description: The updated workflow.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workflow'
        '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:
      - Workflows
      operationId: deleteWorkflow
      summary: Delete a workflow
      description: 'Deletes the workflow definition.


        **Executions already in flight are not deleted and not cancelled by this call.** An enrolment sitting on a delay keeps its wake timer, so removing a workflow is not the same as stopping the automation it is running. Call `POST /v1/workflows/{id}/executions/cancel-all` first if you want the contacts currently inside it to stop where they are.


        Pausing with `PATCH /v1/workflows/{id}` is the reversible way to stop new enrolments.'
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow 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/workflows/{id}/duplicate:
    post:
      tags:
      - Workflows
      operationId: duplicateWorkflow
      summary: Duplicate a workflow
      description: Clones the graph, trigger, and re-entry policy as a new `paused` workflow — never auto-activated. Stats are reset.
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow id.
        schema:
          type: string
      responses:
        '201':
          description: The new paused workflow.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workflow'
        '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/workflows/{id}/enroll:
    post:
      tags:
      - Workflows
      operationId: enrollInWorkflow
      summary: Enroll a contact
      description: Manually start an execution for a contact (the workflow must be `active`). Re-entry is subject to the workflow's `reentry` policy.
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow id.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  format: email
              required:
              - email
      responses:
        '201':
          description: The new execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecution'
        '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'
        '409':
          description: Workflow not active (`invalid_state`) or contact not enrolled (`not_enrolled`).
          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}/executions:
    get:
      tags:
      - Workflows
      operationId: listWorkflowExecutions
      summary: List executions
      description: 'Enrolments in one workflow, newest first — each with the contact''s email, where it currently sits in the graph, and what it is waiting on. Filter with `status` and cap with `limit`.


        This is the log to read when a workflow "did nothing". An empty list means nothing ever enrolled, which is a trigger problem — check `POST /v1/events`''s `triggered` and `skipped` arrays. A list of `waiting` rows means enrolment worked and the contacts are sitting on a delay or an event that has not arrived, which is a graph problem. The two look identical from the outside and have nothing in common as fixes.'
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow id.
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: status
        in: query
        required: false
        schema:
          type: string
          enum:
          - active
          - waiting
          - completed
          - exited
          - failed
          - cancelled
      responses:
        '200':
          description: Executions, newest first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        contactId:
                          type: string
                        contactEmail:
                          type:
                          - string
                          - 'null'
                        status:
                          type: string
                          enum:
                          - active
                          - waiting
                          - completed
                          - exited
                          - failed
                          - cancelled
                        currentNodeId:
                          type:
                          - string
                          - 'null'
                        wakeAt:
                          type:
                          - string
                          - 'null'
                          format: date-time
                        waitEventName:
                          type:
                          - string
                          - 'null'
                        enteredAt:
                          type: string
                          format: date-time
                        completedAt:
                          type:
                          - string
                          - 'null'
                          format: date-time
                      required:
                      - id
                      - contactId
                      - status
                      - enteredAt
                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/workflows/{id}/executions/cancel-all:
    post:
      tags:
      - Workflows
      operationId: cancelAllWorkflowExecutions
      summary: Cancel every in-flight execution
      description: Cancels every `active` or `waiting` execution for this workflow. Already-finished executions are untouched.
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow id.
        schema:
          type: string
      responses:
        '200':
          description: How many executions were cancelled.
          content:
            application/json:
              schema:
                type: object
                properties:
                  cancelled:
                    type: integer
                required:
                - cancelled
        '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/workflows/{id}/executions/{executionId}/cancel:
    post:
      tags:
      - Workflows
      operationId: cancelWorkflowExecution
      summary: Cancel one execution
      description: Cancels an `active` or `waiting` execution. No-op error if it has already finished.
      parameters:
      - name: id
        in: path
        required: true
        description: Workflow id.
        schema:
          type: string
      - name: executionId
        in: path
        required: true
        description: Execution id.
        schema:
          type: string
      responses:
        '200':
          description: Cancelled.
          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'
        '409':
          description: Already finished and can't be cancelled (`invalid_state`).
          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/executions/{executionId}:
    get:
      tags:
      - Workflows
      operationId: getWorkflowExecution
      summary: Get an execution
      description: 'One contact''s walk through the graph: the execution plus its ordered step runs.'
      parameters:
      - name: executionId
        in: path
        required: true
        description: Execution id.
        schema:
          type: string
      responses:
        '200':
          description: The execution with step log.
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/WorkflowExecution'
                - type: object
                  properties:
                    steps:
                      type: array
                      items:
                        $ref: '#/components/schemas/WorkflowStepRun'
        '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
    Workflow:
      type: object
      properties:
        workflowId:
          type: string
        projectId:
          type: string
        name:
          type: string
        status:
          type: string
          enum:
          - draft
          - active
          - paused
        trigger:
          type: string
          description: '`event:<name>`, `contact.created`, `segment:enter:<ref>`, or `segment:exit:<ref>`.'
        graph:
          oneOf:
          - $ref: '#/components/schemas/WorkflowGraph'
          - type: 'null'
        reentry:
          type: string
          enum:
          - never
          - after_exit
          - always
        exitOnReply:
          type: boolean
        entered:
          type: integer
        completed:
          type: integer
        active:
          type: integer
        createdAt:
          type: string
          format: date-time
      required:
      - workflowId
      - name
      - status
      - trigger
      - reentry
      - createdAt
    WorkflowGraph:
      type: object
      description: 'The automation graph: nodes (with canvas positions) plus directed edges.'
      properties:
        nodes:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
                enum:
                - trigger
                - send_email
                - delay
                - wait_event
                - condition
                - update_contact
                - webhook
                - exit
              label:
                type: string
              config:
                type: object
                additionalProperties: true
              x:
                type: number
              y:
                type: number
            required:
            - id
            - type
            - label
            - x
            - y
        edges:
          type: array
          maxItems: 200
          items:
            type: object
            properties:
              from:
                type: string
              to:
                type: string
              label:
                type: string
            required:
            - from
            - to
      required:
      - nodes
      - edges
    WorkflowStepRun:
      type: object
      properties:
        executionId:
          type: string
        workflowId:
          type: string
        nodeId:
          type: string
        nodeType:
          type: string
        outcome:
          type: string
          description: '`ok`, `branch:<label>`, `skipped`, `timeout`, or `error`.'
        detail:
          type:
          - object
          - 'null'
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
      required:
      - executionId
      - nodeId
      - nodeType
      - outcome
      - createdAt
    WorkflowExecution:
      type: object
      properties:
        executionId:
          type: string
        workflowId:
          type: string
        projectId:
          type: string
        contactId:
          type: string
        status:
          type: string
          enum:
          - active
          - waiting
          - completed
          - exited
          - failed
          - cancelled
        currentNodeId:
          type:
          - string
          - 'null'
        wakeAt:
          type:
          - string
          - 'null'
          format: date-time
        waitEventName:
          type:
          - string
          - 'null'
        waitTimeoutAt:
          type:
          - string
          - 'null'
          format: date-time
        context:
          type:
          - object
          - 'null'
          additionalProperties: true
        enteredAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        completedAt:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - executionId
      - workflowId
      - contactId
      - status
      - enteredAt
  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`.