Skip to main content
Velor
Developers / API reference

API reference

REST API for Velor — list and act on conversations, push notes/tags, export CSV, and read analytics.

Authentication

All endpoints expect a Bearer token formatted velor_live_<token>. Generate keys from Settings → API keys and scope each key to the operations it actually needs.

Every operation below has a “Copy as curl” command, generated from the same OpenAPI document. They read your key from VELOR_API_KEY, take ids from shell variables named after the path parameter (ID, VERSION_ID) and, on writes, an IDEMPOTENCY_KEY (any unique string, for example from uuidgen).

curl https://app.velorplatforms.com/api/v1/conversations \
  -H "Authorization: Bearer velor_live_..."

Official TypeScript SDK

The @velorplatforms/sdk package wraps every endpoint below with auth, retry-on-5xx, and typed responses. It is not published to npm yet; use the OpenAPI spec or raw HMAC verification until it is.

import { VelorClient } from "@velorplatforms/sdk";

const velor = new VelorClient({ apiKey: process.env.VELOR_API_KEY! });

// List recent open conversations
const page = await velor.conversations.list({ status: "open", limit: 50 });

// Resolve + add a note — list payloads are under `data`
await velor.conversations.update(page.data[0].id, { status: "resolved" });
await velor.conversations.notes.create(page.data[0].id, {
  content: "Refunded $42 — see HubSpot deal #1042.",
});

// Stream a CSV export
const csv = await velor.conversations.exportCsv({ status: "resolved" });
console.log(await csv.text());

Machine-readable spec

Live OpenAPI 3.1 document at /api/openapi.json. Pipe it into any OpenAPI-aware tool — code generators, Postman, Stoplight, etc.

# Generate a TypeScript client (example)
npx openapi-typescript https://app.velorplatforms.com/api/openapi.json \
  -o velor.d.ts

Conversations

Read and manage conversations

  • get/api/v1/conversationsscope: conversations:read

    List conversations

    Returns conversations for the authenticated organization, most recent first. Supports cursor pagination, status filtering, and a `since` timestamp filter.

    Parameters (4)
    • status (query)
    • limit (query)
    • cursor (query) — Opaque cursor returned by a prior response.
    • since (query)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/conversations" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {
          "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
          "created_at": "2026-10-29T14:00:00Z",
          "updated_at": "2026-10-29T14:00:00Z",
          "status": "open",
          "channel": "<channel>",
          "visitor_email": "<visitor_email>",
          "visitor_name": "<visitor_name>",
          "priority": "<priority>",
          "resolution_outcome": "<resolution_outcome>",
          "csat_score": 1
        }
      ],
      "pagination": {
        "limit": 1,
        "has_next_page": true,
        "next_cursor": "<next_cursor>"
      }
    }
    Responses
    • 200 Conversations page
    • 400
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/conversationsscope: conversations:write

    Create a conversation

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/conversations" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"visitor_email":"visitor@example.com","visitor_name":"<visitor_name>","initial_message":"<initial_message>","channel":"web"}'
    Request body example
    {
      "visitor_email": "visitor@example.com",
      "visitor_name": "<visitor_name>",
      "initial_message": "<initial_message>",
      "channel": "web"
    }
    Response example (201)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "created_at": "2026-10-29T14:00:00Z",
        "updated_at": "2026-10-29T14:00:00Z",
        "status": "open",
        "channel": "<channel>",
        "visitor_email": "<visitor_email>",
        "visitor_name": "<visitor_name>",
        "priority": "<priority>",
        "resolution_outcome": "<resolution_outcome>",
        "csat_score": 1
      }
    }
    Responses
    • 201 Created
    • 400
    • 401
    • 403
    • 413
    • 429
    • 500
    • 503
  • get/api/v1/conversations/{id}scope: conversations:read

    Fetch conversation

    Parameters (1)
    • id (path, required) — Conversation UUID
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/conversations/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "created_at": "2026-10-29T14:00:00Z",
        "updated_at": "2026-10-29T14:00:00Z",
        "status": "open",
        "channel": "<channel>",
        "visitor_email": "<visitor_email>",
        "visitor_name": "<visitor_name>",
        "priority": "<priority>",
        "resolution_outcome": "<resolution_outcome>",
        "csat_score": 1,
        "messages": [
          {
            "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
            "role": "visitor",
            "content": "<content>",
            "created_at": "2026-10-29T14:00:00Z"
          }
        ],
        "messages_truncated": true
      }
    }
    Responses
    • 200 Conversation + last 50 messages
    • 400
    • 401
    • 403
    • 404
    • 429
    • 500
    • 503
  • patch/api/v1/conversations/{id}scope: conversations:write

    Update conversation

    Update status (open / resolved / escalated) or assignment.

    Parameters (1)
    • id (path, required) — Conversation UUID
    Copy as curl
    cURL
    curl -X PATCH "https://app.velorplatforms.com/api/v1/conversations/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"status":"open","assigned_to":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b","assigned_to_profile_id":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"}'
    Request body example
    {
      "status": "open",
      "assigned_to": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "assigned_to_profile_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"
    }
    Response example (200)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "created_at": "2026-10-29T14:00:00Z",
        "updated_at": "2026-10-29T14:00:00Z",
        "status": "open",
        "channel": "<channel>",
        "visitor_email": "<visitor_email>",
        "visitor_name": "<visitor_name>",
        "priority": "<priority>",
        "resolution_outcome": "<resolution_outcome>",
        "csat_score": 1
      }
    }
    Responses
    • 200 Updated conversation
    • 400
    • 401
    • 403
    • 404
    • 413
    • 422 The change is not allowed from the conversation's current status, or a value is out of range.
    • 429
    • 500
    • 503

Messages

Append messages to a conversation

  • post/api/v1/conversations/{id}/messagesscope: conversations:write

    Append a message

    Append a message to a conversation. Use role=`agent` to inject a human reply via the API; the AI pipeline does not run on agent messages.

    Parameters (2)
    • id (path, required) — Conversation UUID
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/conversations/$ID/messages" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"role":"agent","content":"<content>"}'
    Request body example
    {
      "role": "agent",
      "content": "<content>"
    }
    Response example (201)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "role": "visitor",
        "content": "<content>",
        "created_at": "2026-10-29T14:00:00Z"
      },
      "delivered": true,
      "delivery_error": "<delivery_error>"
    }
    Responses
    • 201 Message created
    • 400
    • 401
    • 403
    • 404
    • 409 The conversation is resolved or snoozed, so a message cannot be added. Reopen it first.
    • 413
    • 429
    • 500
    • 503

Notes

Internal notes attached to conversations

  • get/api/v1/conversations/{id}/notesscope: conversations:read

    List notes

    Parameters (1)
    • id (path, required) — Conversation UUID
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/conversations/$ID/notes" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "notes": [
        {
          "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
          "content": "<content>",
          "created_at": "2026-10-29T14:00:00Z"
        }
      ],
      "has_more": true
    }
    Responses
    • 200 Notes list
    • 400
    • 401
    • 403
    • 404
    • 429
    • 500
    • 503
  • post/api/v1/conversations/{id}/notesscope: conversations:write

    Add a note

    Parameters (2)
    • id (path, required) — Conversation UUID
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/conversations/$ID/notes" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"content":"<content>"}'
    Request body example
    {
      "content": "<content>"
    }
    Response example (201)
    {
      "note": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "content": "<content>",
        "created_at": "2026-10-29T14:00:00Z"
      }
    }
    Responses
    • 201 Note created
    • 400
    • 401
    • 403
    • 404
    • 413
    • 422 The conversation already has the maximum number of notes.
    • 429
    • 500
    • 503

Tags

Organize conversations with labels

  • get/api/v1/conversations/{id}/tagsscope: conversations:read

    List tags

    Parameters (1)
    • id (path, required) — Conversation UUID
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/conversations/$ID/tags" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {
          "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
          "name": "<name>",
          "color": "<color>"
        }
      ]
    }
    Responses
    • 200 Tags list
    • 400
    • 401
    • 403
    • 404
    • 429
    • 500
    • 503
  • post/api/v1/conversations/{id}/tagsscope: conversations:write

    Add tag

    Adds a tag to a conversation; creates the tag if it doesn't exist.

    Parameters (1)
    • id (path, required) — Conversation UUID
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/conversations/$ID/tags" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name":"<name>","color":"<color>"}'
    Request body example
    {
      "name": "<name>",
      "color": "<color>"
    }
    Response example (201)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "name": "<name>",
        "color": "<color>"
      }
    }
    Responses
    • 201 Tag added
    • 400
    • 401
    • 403
    • 404
    • 413
    • 422 The tag name or colour is invalid, or a tag limit is reached.
    • 429
    • 500
    • 503
  • delete/api/v1/conversations/{id}/tagsscope: conversations:write

    Remove tag

    Parameters (2)
    • id (path, required) — Conversation UUID
    • name (query, required)
    Copy as curl
    cURL
    curl -X DELETE "https://app.velorplatforms.com/api/v1/conversations/$ID/tags?name=$NAME" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Responses
    • 204 Tag removed
    • 400
    • 401
    • 403
    • 404
    • 422 The tag reference is not valid.
    • 429
    • 500
    • 503

Events

Conversation timeline (tool calls, escalations, etc.)

  • get/api/v1/conversations/{id}/eventsscope: conversations:read

    Conversation timeline

    Returns the unified timeline of conversation events — tool calls, RAG retrievals, guardrail triggers, escalations, resolution, CSAT.

    Parameters (3)
    • id (path, required) — Conversation UUID
    • limit (query)
    • cursor (query) — The `next_cursor` from a prior response.
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/conversations/$ID/events" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {
          "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
          "kind": "<kind>",
          "payload": {},
          "latency_ms": 1,
          "created_at": "2026-10-29T14:00:00Z"
        }
      ],
      "next_cursor": "<next_cursor>"
    }
    Responses
    • 200 Events list
    • 400
    • 401
    • 403
    • 404
    • 429
    • 500
    • 503

Export

Bulk export of conversation data

  • get/api/v1/conversations/exportscope: export:read

    Export conversations as CSV

    Streams up to 25,000 conversation rows as CSV. Useful for ad-hoc analysis, BI loads, and compliance archives. Requires the separate `export:read` scope — `conversations:read` alone is not enough.

    Parameters (4)
    • since (query) — Default: 30 days ago
    • until (query)
    • status (query)
    • limit (query)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/conversations/export" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Responses
    • 200 CSV file
    • 400
    • 401
    • 403
    • 422 The export would be larger than one request can return. Narrow it with `since`/`until` or `status`.
    • 429
    • 500
    • 503

Analytics

Aggregate metrics across conversations

  • get/api/v1/analyticsscope: analytics:read

    Aggregate analytics

    The same headline figures the dashboard shows, by the same definitions. Real conversations only: synthetic test traffic, imported history and the setup wizard's own chats are excluded. `total`, `resolved` and `escalated` count conversations CREATED in the range, by their current status. `open` is conversations open right now, whenever they were created. A CSAT `response` is a survey that was sent and answered; `positive` is a rating of 4 or 5 stars.

    Parameters (3)
    • since (query) — Start of the reporting range (inclusive). Defaults to the start of `window`.
    • until (query) — End of the reporting range (inclusive). Defaults to now.
    • window (query) — Shorthand that sets `since` to N days ago. Ignored when `since` is given. An unrecognised value is rejected with 400.
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/analytics" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "window": "30d",
      "period": {
        "since": "2026-10-29T14:00:00Z",
        "until": "2026-10-29T14:00:00Z"
      },
      "conversations": {
        "total": 1,
        "resolved": 1,
        "escalated": 1,
        "open": 1
      },
      "rates": {
        "resolution_pct": 1,
        "escalation_pct": 1,
        "basis": "<basis>",
        "resolution_rate_known_outcome_pct": 1,
        "escalation_rate_known_outcome_pct": 1,
        "known_outcome_count": 1
      },
      "csat": {
        "responses": 1,
        "positive": 1,
        "score_pct": 1
      }
    }
    Responses
    • 200 Aggregate metrics
    • 400
    • 401
    • 403
    • 429
    • 500
    • 503

Evals

Evaluation datasets and runs and simulated-customer runs (CI/CD)

  • get/api/v1/evals/datasetsscope: evals:read

    List evaluation datasets

    Parameters (2)
    • limit (query)
    • cursor (query) — The `next_cursor` from a prior response.
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/evals/datasets" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "datasets": [
        {}
      ],
      "count": 1,
      "limit": 1,
      "has_more": true,
      "next_cursor": "<next_cursor>"
    }
    Responses
    • 200 Datasets for the authenticated org
    • 400
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/evals/simulationsscope: evals:write

    Run a simulated-customer conversation

    An LLM plays a visitor (your persona and goal) against your saved agent; a judge scores the transcript against your success criteria. Synchronous (at most 8 visitor turns). Every action is simulated, nothing reaches a real customer or system. Model calls are billed to your organization; 10 per organization per hour, shared with the dashboard. Fail a build on `outcome.passed === false`.

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/evals/simulations" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name":"<name>","persona":"<persona>","goal":"<goal>","successCriteria":"<successCriteria>","maxTurns":1}'
    Request body example
    {
      "name": "<name>",
      "persona": "<persona>",
      "goal": "<goal>",
      "successCriteria": "<successCriteria>",
      "maxTurns": 1
    }
    Response example (201)
    {
      "ok": true,
      "session_id": "<session_id>",
      "outcome": {}
    }
    Responses
    • 201 The run finished (it may still have failed its criteria: check outcome.passed)
    • 400
    • 401
    • 403
    • 413
    • 429
    • 500
    • 503 simulation_unavailable
  • get/api/v1/evals/runsscope: evals:read

    List evaluation runs

    Newest first. Filter by dataset_id/status and poll in CI to gate on resolution rate.

    Parameters (4)
    • dataset_id (query)
    • status (query)
    • limit (query)
    • cursor (query) — The `next_cursor` from a prior response.
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/evals/runs" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "runs": [
        {}
      ],
      "count": 1,
      "limit": 1,
      "has_more": true,
      "next_cursor": "<next_cursor>"
    }
    Responses
    • 200 Eval runs with computed pass_rate_pct
    • 400
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/evals/runsscope: evals:write

    Start an evaluation run

    Starts a run of one of your datasets without a dashboard session, for CI/CD. Returns 201 as soon as the run is queued; poll `GET /api/v1/evals/runs/{id}` until it completes. Each run makes model calls billed to your organization, so starts are limited to 10 per key and 10 per organization per hour.

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/evals/runs" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"dataset_id":"<dataset_id>","sample_size":1}'
    Request body example
    {
      "dataset_id": "<dataset_id>",
      "sample_size": 1
    }
    Response example (201)
    {
      "ok": true,
      "run": {
        "id": "<id>",
        "status": "<status>",
        "dataset_id": "<dataset_id>"
      }
    }
    Responses
    • 201 Run queued
    • 400
    • 401
    • 403
    • 404 dataset_not_found: no dataset with this id in your workspace
    • 413
    • 429
    • 500
    • 503 workflow_unavailable: nothing was queued
  • get/api/v1/evals/runs/{id}scope: evals:read

    Get an eval run with regression status

    Includes a read-only regression comparison vs the previous scored run for the dataset.

    Parameters (2)
    • id (path, required)
    • include_cases (query)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/evals/runs/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "dataset_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "status": "<status>",
      "started_at": "2026-10-29T14:00:00Z",
      "completed_at": "2026-10-29T14:00:00Z",
      "total_cases": 1,
      "passed_count": 1,
      "failed_count": 1,
      "errored_count": 1,
      "avg_score": 1,
      "pass_rate_pct": 1,
      "cost_cents": 1,
      "error_message": "<error_message>",
      "created_at": "2026-10-29T14:00:00Z",
      "regression": {},
      "cases": [
        {}
      ],
      "has_more": true
    }
    Responses
    • 200 Run detail + regression baseline
    • 400
    • 401
    • 403
    • 404 Run not found
    • 429
    • 500
    • 503

Calls

Place + track outbound AI phone calls

  • get/api/v1/callsscope: calls:read

    List voice calls

    Parameters (2)
    • limit (query)
    • cursor (query) — The `next_cursor` from a prior response.
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/calls" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "calls": [
        {}
      ],
      "count": 1,
      "limit": 1,
      "has_more": true,
      "next_cursor": "<next_cursor>"
    }
    Responses
    • 200 Recent voice calls
    • 400
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/callsscope: calls:write

    Place an outbound AI phone call

    Dials `to` from one of the org's configured voice numbers; the org's agent answers. Pass `persona_id` to apply a saved preset; per-call fields (voice_id, first_sentence, ai_name, tone, task) override it. `analysis_schema` extracts structured fields after the call (surfaced as `analysis` on GET /calls/{id}). `max_duration` caps length; `record` enables recording. Send an `Idempotency-Key` header so a retried request replays the original 201 instead of dialing twice. **Consent and calling rules.** `consent` is required: say which consent the callee gave and where it is recorded. Before dialling, Velor also refuses a number on your do-not-call list or that texted STOP (403 `do_not_call`), a call outside 8am-9pm at the callee's location as worked out from the number, or outside your configured calling window when it can't be (422 `outside_calling_hours`), and a number already called your daily limit of times in the last 24 hours, 3 at most (429 `frequency_cap`). If any of these checks cannot run, the call is refused (503 `compliance_check_failed`). A refusal does not consume the Idempotency-Key.

    Parameters (1)
    • Idempotency-Key (header) — Unique key (e.g. a UUID) so a retried request doesn't dial twice
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/calls" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"to":"<to>","consent":{"basis":"prior_express_written_consent","reference":"<reference>","obtained_at":"2026-10-29T14:00:00Z"},"from_number_id":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b","persona_id":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b","voice_id":"<voice_id>","first_sentence":"<first_sentence>","ai_name":"<ai_name>","tone":"professional","task":"<task>","max_duration":1,"record":true,"metadata":{},"analysis_schema":[{"key":"<key>","type":"string","description":"<description>"}]}'
    Request body example
    {
      "to": "<to>",
      "consent": {
        "basis": "prior_express_written_consent",
        "reference": "<reference>",
        "obtained_at": "2026-10-29T14:00:00Z"
      },
      "from_number_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "persona_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "voice_id": "<voice_id>",
      "first_sentence": "<first_sentence>",
      "ai_name": "<ai_name>",
      "tone": "professional",
      "task": "<task>",
      "max_duration": 1,
      "record": true,
      "metadata": {},
      "analysis_schema": [
        {
          "key": "<key>",
          "type": "string",
          "description": "<description>"
        }
      ]
    }
    Response example (201)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "status": "<status>",
      "to": "<to>",
      "from": "<from>",
      "from_number_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "twilio_call_sid": "<twilio_call_sid>"
    }
    Responses
    • 201 Call initiated
    • 400 Invalid input or no voice number configured
    • 401
    • 402 The workspace is out of call quota or today's call budget. Wait for the reset or raise the limit; retrying now will not help.
    • 403 `do_not_call`: the number is on your do-not-call list or texted STOP; `outbound_suspended`: Velor has suspended outbound calls for the account (or the key lacks calls:write)
    • 404 persona_id not found for this org
    • 409 Idempotency-Key is still being processed (in-flight)
    • 413
    • 422 `outside_calling_hours`: outside 8am-9pm at the callee's location, or outside your configured window when that can't be worked out
    • 429 `frequency_cap`: the number has reached your daily call limit (or a rate limit was hit)
    • 500
    • 502 The telephony provider refused or failed the dial. Nothing was charged; retry later with the same `Idempotency-Key`.
    • 503 `compliance_check_failed`: a settings, do-not-call or frequency lookup could not run, so the call was not placed
  • post/api/v1/calls/batchscope: calls:write

    Place a batch of outbound AI phone calls

    Up to 50 calls per request, processed with bounded concurrency. Returns per-call results (HTTP 207). Send an `Idempotency-Key` header so a retried campaign replays the original results instead of re-dialing the list. Every call needs its own `consent` record; a batch with any call missing one is rejected whole (400) before anything is dialled, and a number may appear only once per batch. Each number then gets the same checks as POST /api/v1/calls (do-not-call list, calling hours at the callee's location, daily limit per number); a refused number is reported in its result row and the rest of the batch carries on.

    Parameters (1)
    • Idempotency-Key (header) — Unique key so a retried batch doesn't re-dial
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/calls/batch" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"from_number_id":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b","calls":[{"to":"<to>","consent":{"basis":"prior_express_written_consent","reference":"<reference>","obtained_at":"2026-10-29T14:00:00Z"},"metadata":{}}]}'
    Request body example
    {
      "from_number_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "calls": [
        {
          "to": "<to>",
          "consent": {
            "basis": "prior_express_written_consent",
            "reference": "<reference>",
            "obtained_at": "2026-10-29T14:00:00Z"
          },
          "metadata": {}
        }
      ]
    }
    Response example (207)
    {
      "count": 1,
      "placed": 1,
      "failed": 1,
      "results": [
        {}
      ]
    }
    Responses
    • 207 Per-call results
    • 400 Invalid input
    • 401
    • 403
    • 413
    • 429
    • 500
    • 503
  • get/api/v1/calls/{id}scope: calls:read

    Get a voice call's status, outcome, and analysis

    Returns the call's status, recording, resolution, and — when an `analysis_schema` was supplied — the extracted `analysis` fields.

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/calls/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "status": "<status>",
      "to": "<to>",
      "twilio_call_sid": "<twilio_call_sid>",
      "voice_minutes": 1,
      "recording_url": "https://example.com/page",
      "resolution_outcome": "<resolution_outcome>",
      "created_at": "2026-10-29T14:00:00Z",
      "completed_at": "2026-10-29T14:00:00Z",
      "analysis": {}
    }
    Responses
    • 200 Call detail
    • 400
    • 401
    • 403
    • 404 Call not found
    • 429
    • 500
    • 503
  • get/api/v1/memoryscope: calls:read

    Get cross-call memory context for a caller

    Returns the facts the agent has learned about a caller across prior calls (keyed by phone). Pass `?phone=` (E.164) or `?visitor_id=`.

    Parameters (2)
    • phone (query) — Caller phone, E.164
    • visitor_id (query) — Alternative identity key (defaults to the phone)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/memory" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "visitor_id": "<visitor_id>",
      "facts": [
        {}
      ],
      "count": 1
    }
    Responses
    • 200 Stored facts for the caller
    • 400 Missing or invalid phone / visitor_id
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/memoryscope: calls:write

    Upsert a memory fact for a caller

    Set (or correct) a fact the agent should know about a caller. Keys are lowercase identifiers; values are sanitized and capped at 500 chars.

    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/memory" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"phone":"+14155551234","visitor_id":"<visitor_id>","key":"account_tier","value":"<value>"}'
    Request body example
    {
      "phone": "+14155551234",
      "visitor_id": "<visitor_id>",
      "key": "account_tier",
      "value": "<value>"
    }
    Response example (200)
    {
      "visitor_id": "<visitor_id>",
      "key": "<key>",
      "value": {}
    }
    Responses
    • 200 Fact stored
    • 400 Invalid key/value or identity
    • 401
    • 403
    • 413
    • 422 A visitor can hold only so many facts; delete one before adding another.
    • 429
    • 500
    • 503
  • delete/api/v1/memoryscope: calls:write

    Delete a caller's memory fact (or all facts)

    Remove one fact (with `?key=`) or clear the caller's whole memory (omit `key`).

    Parameters (3)
    • phone (query)
    • visitor_id (query)
    • key (query) — Omit to clear all facts for the caller
    Copy as curl
    cURL
    curl -X DELETE "https://app.velorplatforms.com/api/v1/memory" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "visitor_id": "<visitor_id>",
      "key": "<key>",
      "deleted": true
    }
    Responses
    • 200 Deleted (with a count)
    • 400 Missing or invalid identity
    • 401
    • 403
    • 429
    • 500
    • 503

Contacts

Visitor / customer profiles

  • get/api/v1/contactsscope: contacts:read

    List or look up contacts

    Pass `?email=` to look up one contact; otherwise returns a paginated list.

    Parameters (3)
    • email (query)
    • limit (query)
    • cursor (query)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/contacts" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "contacts": [
        {
          "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
          "email": "<email>",
          "name": "<name>",
          "phone": "<phone>",
          "tags": [
            "<tags>"
          ],
          "custom_fields": {},
          "marketing_consent_at": "2026-10-29T14:00:00Z",
          "created_at": "2026-10-29T14:00:00Z",
          "updated_at": "2026-10-29T14:00:00Z"
        }
      ],
      "next_cursor": "<next_cursor>"
    }
    Responses
    • 200 Contacts
    • 400
    • 401
    • 403
    • 422 A filter value is not valid (for example a malformed email).
    • 429
    • 500
    • 503
  • post/api/v1/contactsscope: contacts:write

    Upsert a contact by email

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/contacts" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"email":"visitor@example.com","name":"<name>","phone":"+12025550123","tags":["vip"],"custom_fields":{},"marketing_consent":true}'
    Request body example
    {
      "email": "visitor@example.com",
      "name": "<name>",
      "phone": "+12025550123",
      "tags": [
        "vip"
      ],
      "custom_fields": {},
      "marketing_consent": true
    }
    Response example (200)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "email": "<email>",
      "name": "<name>",
      "phone": "<phone>",
      "tags": [
        "<tags>"
      ],
      "custom_fields": {},
      "marketing_consent_at": "2026-10-29T14:00:00Z",
      "created_at": "2026-10-29T14:00:00Z",
      "updated_at": "2026-10-29T14:00:00Z"
    }
    Responses
    • 200 Upserted contact
    • 400
    • 401
    • 403
    • 413
    • 422 The contact is not valid or the workspace's contact limit is reached.
    • 429
    • 500
    • 503
  • patch/api/v1/contactsscope: contacts:write

    Update a contact's tags, custom fields or marketing consent

    Identify the contact with `?id=` or `?email=`. Send `marketing_consent: true|false` to record or withdraw marketing consent; campaigns and email sequences only send to contacts with consent recorded.

    Parameters (2)
    • id (query)
    • email (query)
    Copy as curl
    cURL
    curl -X PATCH "https://app.velorplatforms.com/api/v1/contacts" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name":"<name>","phone":"+12025550123","tags":["vip"],"custom_fields":{},"marketing_consent":true}'
    Request body example
    {
      "name": "<name>",
      "phone": "+12025550123",
      "tags": [
        "vip"
      ],
      "custom_fields": {},
      "marketing_consent": true
    }
    Response example (200)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "email": "<email>",
      "name": "<name>",
      "phone": "<phone>",
      "tags": [
        "<tags>"
      ],
      "custom_fields": {},
      "marketing_consent_at": "2026-10-29T14:00:00Z",
      "created_at": "2026-10-29T14:00:00Z",
      "updated_at": "2026-10-29T14:00:00Z"
    }
    Responses
    • 200 Updated contact
    • 400
    • 401
    • 403
    • 404 Not found
    • 413
    • 429
    • 500
    • 503
  • delete/api/v1/contactsscope: contacts:write

    Delete a contact by id or email

    Parameters (2)
    • id (query)
    • email (query)
    Copy as curl
    cURL
    curl -X DELETE "https://app.velorplatforms.com/api/v1/contacts" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Responses
    • 204 Deleted
    • 400
    • 401
    • 403
    • 404 Not found
    • 422 The `email` filter is not a valid address.
    • 429
    • 500
    • 503
  • get/api/v1/contacts/{id}scope: contacts:read

    Get a single contact

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/contacts/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "email": "<email>",
      "name": "<name>",
      "phone": "<phone>",
      "tags": [
        "<tags>"
      ],
      "custom_fields": {},
      "marketing_consent_at": "2026-10-29T14:00:00Z",
      "created_at": "2026-10-29T14:00:00Z",
      "updated_at": "2026-10-29T14:00:00Z"
    }
    Responses
    • 200 Contact
    • 400
    • 401
    • 403
    • 404 Not found
    • 429
    • 500
    • 503

Agents

Agent definitions, their versions and skills

  • get/api/v1/agentsscope: agents:read

    List agents and what is deployed in each environment

    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/agents" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {}
      ],
      "truncated": true
    }
    Responses
    • 200 Agents
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/agentsscope: agents:write

    Create an agent

    Creates a named agent. It serves no conversations until a version is published to it, so creation is not activation. Under agents:write rather than a separate scope because an empty agent has no behaviour — the version that gives it behaviour is covered by the same scope, and deploying needs agents:publish.

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/agents" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name":"<name>","description":"<description>","routing_triggers":[],"agent_config":{},"priority":100}'
    Request body example
    {
      "name": "<name>",
      "description": "<description>",
      "routing_triggers": [],
      "agent_config": {},
      "priority": 100
    }
    Response example (201)
    {
      "data": {},
      "message": "<message>"
    }
    Responses
    • 201 Agent created
    • 400
    • 401
    • 403
    • 409 An agent with that name already exists
    • 413
    • 422 Invalid agent, or the per-organization limit is reached
    • 429
    • 500
    • 503
  • get/api/v1/agents/{id}/versionsscope: agents:read

    List versions of an agent, newest first

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/agents/$ID/versions" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {}
      ],
      "truncated": true
    }
    Responses
    • 200 Versions
    • 400
    • 401
    • 403
    • 404
    • 429
    • 500
    • 503
  • post/api/v1/agents/{id}/versionsscope: agents:write

    Author a new agent version from a definition (creates a DRAFT)

    Creates a draft version. Omitted fields inherit from the latest version rather than clearing, so a partial definition is a patch. Deploying is a separate call requiring the agents:publish scope — read `published` on the response rather than assuming.

    Parameters (2)
    • id (path, required)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/agents/$ID/versions" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"description":"<description>","notes":"<notes>","routing_triggers":["<routing_triggers>"],"priority":1,"agent_config":{},"skill_ids":["3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"],"knowledge_source_ids":["3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"]}'
    Request body example
    {
      "description": "<description>",
      "notes": "<notes>",
      "routing_triggers": [
        "<routing_triggers>"
      ],
      "priority": 1,
      "agent_config": {},
      "skill_ids": [
        "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"
      ],
      "knowledge_source_ids": [
        "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"
      ]
    }
    Response example (201)
    {
      "data": {},
      "published": true,
      "message": "<message>"
    }
    Responses
    • 201 Draft version created
    • 400
    • 401
    • 403
    • 404
    • 413
    • 422 Invalid definition, or a bound id from another workspace
    • 429
    • 500
    • 503
  • post/api/v1/agents/{id}/versions/{versionId}/publishscope: agents:publish

    Deploy a version to an environment

    Requires the separate agents:publish scope, which agents:write does not imply: authoring changes nothing a customer reaches, while publishing changes what every conversation is served by. An unrecognised environment is rejected rather than defaulted.

    Parameters (2)
    • id (path, required)
    • versionId (path, required)
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/agents/$ID/versions/$VERSION_ID/publish" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"environment":"draft","acknowledge_test_set":true,"require_eval":{"run_id":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b","min_score":1}}'
    Request body example
    {
      "environment": "draft",
      "acknowledge_test_set": true,
      "require_eval": {
        "run_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "min_score": 1
      }
    }
    Response example (200)
    {
      "data": {},
      "published": true
    }
    Responses
    • 200 Deployed
    • 400
    • 401
    • 403
    • 404 Version not found in this workspace
    • 422 Not published: the eval gate was not satisfied (avg_score and min_score), or the saved test set does not clear this version (tests_regressed, tests_failing, tests_not_run, with the datasets named; send acknowledge_test_set to publish anyway)
    • 429
    • 500
    • 503
  • get/api/v1/agents/{id}/versions/{versionId}/diffscope: agents:read

    What does this version change?

    Field-level diff against the version currently live in production, or against ?against=<versionId>. Bindings are compared as sets, so reordering is not reported as a change. `identical: true` means no differences; a null baseline with reason `no_production_deployment` means there was nothing to compare against, which is a different statement.

    Parameters (3)
    • id (path, required)
    • versionId (path, required)
    • against (query)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/agents/$ID/versions/$VERSION_ID/diff" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": {}
    }
    Responses
    • 200 Diff
    • 400
    • 401
    • 403
    • 404 Version or baseline not found in this workspace
    • 429
    • 500
    • 503
  • get/api/v1/agents/{id}/versions/{versionId}/definitionscope: agents:read

    Export a version as a definition

    The version in the shape POST /agents/{id}/versions accepts, so a team can start agents-as-code from what is live. Empty fields are omitted rather than written blank. With `?as=ts` the same definition is returned as a TypeScript module using the SDK's defineAgent (text/plain).

    Parameters (3)
    • id (path, required)
    • versionId (path, required)
    • as (query)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/agents/$ID/versions/$VERSION_ID/definition" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "definition": {}
    }
    Responses
    • 200 Definition
    • 400
    • 401
    • 403
    • 404 Version not found in this workspace
    • 422 The stored version cannot be exported as a definition file; `issues` lists what is wrong. Fix the version, then export again.
    • 429
    • 500
    • 503
  • get/api/v1/skillsscope: skills:read

    List the workspace's skills

    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/skills" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {}
      ],
      "truncated": true
    }
    Responses
    • 200 Skills
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/skillsscope: skills:write

    Author a skill from code (creates a DISABLED draft)

    Creates a disabled draft, version 1 — an enabled skill is a tool the model may call mid-conversation, so authoring one does not arm it. `status`, `enabled` and `version` in the body are accepted and ignored: the response says what was created. A bound action_id and an owner_user_id must belong to the same workspace.

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/skills" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name":"check_order_status","display_name":"Check order status","description":"Looks up an order by number and reports where it is.","action_id":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b","input_schema":{},"preconditions":"<preconditions>","postconditions":"<postconditions>","system_addendum":"<system_addendum>","tags":["orders"],"owner_user_id":"3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"}'
    Request body example
    {
      "name": "check_order_status",
      "display_name": "Check order status",
      "description": "Looks up an order by number and reports where it is.",
      "action_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "input_schema": {},
      "preconditions": "<preconditions>",
      "postconditions": "<postconditions>",
      "system_addendum": "<system_addendum>",
      "tags": [
        "orders"
      ],
      "owner_user_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b"
    }
    Response example (201)
    {
      "data": {},
      "published": true,
      "message": "<message>"
    }
    Responses
    • 201 Draft skill created
    • 400
    • 401
    • 403
    • 413
    • 422 Invalid skill, or an action or owner from another workspace (unknown_action, unknown_owner)
    • 429
    • 500
    • 503

Policies

Answer policies every reply is checked against before it is stored or sent

  • get/api/v1/principlesscope: principles:read

    List the workspace's answer policies

    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/principles" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {}
      ],
      "truncated": true
    }
    Responses
    • 200 Policies
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/principlesscope: principles:write

    Create an answer policy (live on creation unless enabled: false)

    Every reply on every channel is checked against enabled policies before it is stored or sent. `check_kind` is `regex` (`check_config: { pattern, flags? }`, flags limited to i, m, s, u) or `prompt_judge` (`check_config: { threshold? }`, a model reads the reply against `rule` and flags it at or above the threshold; adds a billed model call per reply, and a reply is allowed through when the judge cannot answer). `blocking` is required: true replaces a violating reply, false only records the violation. On the widget and voice, which stream replies as they are written, a block takes effect before the visitor sees the reply only when the workspace has "Check every answer before it is shown" turned on in the dashboard.

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/principles" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"key":"no_refund_promises","display_name":"<display_name>","rule":"<rule>xxxx","examples":["<examples>"],"severity":"low","check_kind":"regex","check_config":{"pattern":"\\bguarantee\\b","flags":"i"},"enabled":true,"blocking":true}'
    Request body example
    {
      "key": "no_refund_promises",
      "display_name": "<display_name>",
      "rule": "<rule>xxxx",
      "examples": [
        "<examples>"
      ],
      "severity": "low",
      "check_kind": "regex",
      "check_config": {
        "pattern": "\\bguarantee\\b",
        "flags": "i"
      },
      "enabled": true,
      "blocking": true
    }
    Response example (201)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "agent_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "key": "no_refund_promises",
        "display_name": "<display_name>",
        "rule": "<rule>",
        "examples": [
          "<examples>"
        ],
        "severity": "low",
        "check_kind": "regex",
        "check_config": {},
        "enabled": true,
        "blocking": true,
        "created_at": "2026-10-29T14:00:00Z",
        "updated_at": "2026-10-29T14:00:00Z"
      }
    }
    Responses
    • 201 Policy created
    • 400
    • 401
    • 403
    • 409 A policy with that key already exists
    • 413
    • 422 Invalid policy (including a regex the checker refuses to run), or the per-workspace limit is reached
    • 429
    • 500
    • 503
  • get/api/v1/principles/{id}scope: principles:read

    Read one answer policy

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/principles/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "agent_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "key": "no_refund_promises",
        "display_name": "<display_name>",
        "rule": "<rule>",
        "examples": [
          "<examples>"
        ],
        "severity": "low",
        "check_kind": "regex",
        "check_config": {},
        "enabled": true,
        "blocking": true,
        "created_at": "2026-10-29T14:00:00Z",
        "updated_at": "2026-10-29T14:00:00Z"
      }
    }
    Responses
    • 200 Policy
    • 400
    • 401
    • 403
    • 404 Not found
    • 429
    • 500
    • 503
  • patch/api/v1/principles/{id}scope: principles:write

    Edit an answer policy

    Partial update. `key` cannot change. `check_kind` and `check_config` must be sent together.

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X PATCH "https://app.velorplatforms.com/api/v1/principles/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"display_name":"<display_name>","rule":"<rule>xxxx","examples":["<examples>"],"severity":"low","check_kind":"regex","check_config":{"pattern":"\\bguarantee\\b","flags":"i"},"enabled":true,"blocking":true}'
    Request body example
    {
      "display_name": "<display_name>",
      "rule": "<rule>xxxx",
      "examples": [
        "<examples>"
      ],
      "severity": "low",
      "check_kind": "regex",
      "check_config": {
        "pattern": "\\bguarantee\\b",
        "flags": "i"
      },
      "enabled": true,
      "blocking": true
    }
    Response example (200)
    {
      "data": {
        "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "agent_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "key": "no_refund_promises",
        "display_name": "<display_name>",
        "rule": "<rule>",
        "examples": [
          "<examples>"
        ],
        "severity": "low",
        "check_kind": "regex",
        "check_config": {},
        "enabled": true,
        "blocking": true,
        "created_at": "2026-10-29T14:00:00Z",
        "updated_at": "2026-10-29T14:00:00Z"
      }
    }
    Responses
    • 200 Updated policy
    • 400
    • 401
    • 403
    • 404 Not found
    • 413
    • 422 Invalid change
    • 429
    • 500
    • 503
  • delete/api/v1/principles/{id}scope: principles:write

    Delete an answer policy (its recorded violations are kept)

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X DELETE "https://app.velorplatforms.com/api/v1/principles/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Responses
    • 204 Deleted
    • 400
    • 401
    • 403
    • 404 Not found
    • 429
    • 500
    • 503

Knowledge

Knowledge base sources

  • get/api/v1/knowledgescope: knowledge:read

    List knowledge sources

    Parameters (2)
    • limit (query)
    • cursor (query) — The cursor from the previous page.
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/knowledge" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "sources": [
        {}
      ],
      "next_cursor": "<next_cursor>"
    }
    Responses
    • 200 Sources
    • 400
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/knowledgescope: knowledge:write

    Add a knowledge source (URL or text)

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/knowledge" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name":"<name>","source_type":"url","url":"https://example.com/page","content":"<content>"}'
    Request body example
    {
      "name": "<name>",
      "source_type": "url",
      "url": "https://example.com/page",
      "content": "<content>"
    }
    Response example (201)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "name": "<name>",
      "source_type": "<source_type>",
      "status": "<status>",
      "created_at": "2026-10-29T14:00:00Z",
      "truncated": true
    }
    Responses
    • 201 Source created
    • 400
    • 401
    • 402 The workspace's plan limit for knowledge sources is reached. Remove a source or upgrade.
    • 403
    • 409 A source for this URL already exists.
    • 413
    • 422 The URL could not be fetched, so there is nothing to index. Check it is public and returns content.
    • 429
    • 500
    • 503
  • delete/api/v1/knowledgescope: knowledge:write

    Delete a knowledge source

    Parameters (1)
    • id (query)
    Copy as curl
    cURL
    curl -X DELETE "https://app.velorplatforms.com/api/v1/knowledge" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Responses
    • 204 Deleted
    • 400
    • 401
    • 403
    • 404 Not found
    • 429
    • 500
    • 503
  • delete/api/v1/knowledge/{id}scope: knowledge:write

    Delete a knowledge source by id

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X DELETE "https://app.velorplatforms.com/api/v1/knowledge/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Responses
    • 204 Deleted
    • 400
    • 401
    • 403
    • 404 Not found
    • 429
    • 500
    • 503

Webhooks

Event subscriptions

  • get/api/v1/webhooksscope: webhooks:read

    List webhook endpoints

    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/webhooks" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {}
      ],
      "has_more": true
    }
    Responses
    • 200 Endpoints
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/webhooksscope: webhooks:write

    Create a webhook endpoint (returns the signing secret once)

    Send an `Idempotency-Key` header so a retried request replays the original 201 instead of registering a second endpoint. A replay returns the same signing secret.

    Parameters (1)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/webhooks" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"url":"https://example.com/page","events":["conversation.created"],"description":"<description>"}'
    Request body example
    {
      "url": "https://example.com/page",
      "events": [
        "conversation.created"
      ],
      "description": "<description>"
    }
    Response example (201)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "url": "https://example.com/page",
      "event_types": [
        "<event_types>"
      ],
      "secret": "<secret>"
    }
    Responses
    • 201 Created
    • 400
    • 401
    • 403
    • 413
    • 422 The URL is not allowed, or the workspace has the maximum number of endpoints.
    • 429
    • 500
    • 503
  • delete/api/v1/webhooksscope: webhooks:write

    Delete a webhook endpoint

    Parameters (1)
    • id (query, required)
    Copy as curl
    cURL
    curl -X DELETE "https://app.velorplatforms.com/api/v1/webhooks?id=$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Responses
    • 204 Deleted
    • 400
    • 401
    • 403
    • 404 No endpoint with this id in your workspace (webhook_not_found)
    • 429
    • 500
    • 503
  • get/api/v1/webhooks/deliveriesscope: webhooks:read

    List webhook deliveries (the delivery log; status=failed is the dead-letter view)

    Newest first. Each row is one delivery of one event to one endpoint, with its attempt count and the last response status or error. The event payload is not included. Retry a failed delivery with `POST /api/v1/webhooks/deliveries/{id}/retry`.

    Parameters (4)
    • status (query)
    • webhook_id (query)
    • limit (query)
    • cursor (query) — The next_cursor of the previous page.
    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/webhooks/deliveries" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "data": [
        {
          "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
          "webhook_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
          "event_type": "<event_type>",
          "status": "pending",
          "attempts": 1,
          "last_response_status": 1,
          "last_error": "<last_error>",
          "created_at": "2026-10-29T14:00:00Z",
          "delivered_at": "2026-10-29T14:00:00Z"
        }
      ],
      "has_more": true,
      "next_cursor": "<next_cursor>"
    }
    Responses
    • 200 A page of deliveries
    • 400
    • 401
    • 403
    • 429
    • 500
    • 503
  • post/api/v1/webhooks/deliveries/{id}/retryscope: webhooks:write

    Retry a failed webhook delivery

    Re-sends a failed (dead-lettered) delivery to the endpoint it was first sent to, keeping the original event id and timestamp so a receiver that dedupes on `Idempotency-Key` treats it as a retry. Returns 202 once queued; the result appears as a new row in the delivery log. 409 if the delivery did not fail or its endpoint is disabled. Limited to 30 retries per hour per workspace. A `velor_test_` key queues nothing.

    Parameters (2)
    • id (path, required)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/webhooks/deliveries/$ID/retry" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{}'
    Request body example
    {}
    Response example (202)
    {
      "data": {
        "delivery_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "webhook_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
        "event_type": "<event_type>",
        "status": "queued"
      }
    }
    Responses
    • 202 Queued
    • 400
    • 401
    • 403
    • 404 delivery_not_found or webhook_not_found
    • 409 delivery_not_retryable or webhook_disabled
    • 422 A parameter is not valid.
    • 429
    • 500
    • 503
  • post/api/v1/webhooks/{id}/rotate-secretscope: webhooks:write

    Rotate a webhook endpoint's signing secret (returns the new secret once)

    Issues a new `whsec_` signing secret and returns it once. The previous secret keeps signing alongside the new one for 24 hours (`x-velor-prev-signature`), so an endpoint that has not yet switched keeps verifying. If the secret LEAKED, send `{"revoke_previous_secret": true}`: the old secret stops signing immediately (no `x-velor-prev-signature`), so a receiver can no longer be fed forgeries made with it. The default keeps the 24-hour overlap so a scheduled rotation does not break a receiver mid-rollout. Send an `Idempotency-Key` so a retry after a lost response replays the same secret instead of rotating again (the same key with a different body is a conflict). Limited to 20 rotations per hour per workspace; an unknown id does not use the allowance.

    Parameters (2)
    • id (path, required)
    • Idempotency-Key (header) — A unique key (for example a UUID) for this logical request. Retrying with the same key replays the original response instead of creating a second resource.
    Copy as curl
    cURL
    curl -X POST "https://app.velorplatforms.com/api/v1/webhooks/$ID/rotate-secret" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
    -H "Content-Type: application/json" \
    -d '{"revoke_previous_secret":false}'
    Request body example
    {
      "revoke_previous_secret": false
    }
    Response example (200)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "secret": "<secret>",
      "previous_secret_valid_until": "2026-10-29T14:00:00Z"
    }
    Responses
    • 200 Rotated
    • 400
    • 401
    • 403
    • 404 webhook_not_found
    • 429
    • 500
    • 503
  • patch/api/v1/webhooks/{id}scope: webhooks:write

    Update a webhook endpoint

    Parameters (1)
    • id (path, required)
    Copy as curl
    cURL
    curl -X PATCH "https://app.velorplatforms.com/api/v1/webhooks/$ID" \
    -H "Authorization: Bearer $VELOR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"url":"https://example.com/page","events":["conversation.created"],"description":"<description>","label":"<label>","enabled":true}'
    Request body example
    {
      "url": "https://example.com/page",
      "events": [
        "conversation.created"
      ],
      "description": "<description>",
      "label": "<label>",
      "enabled": true
    }
    Response example (200)
    {
      "id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "url": "https://example.com/page",
      "event_types": [
        "<event_types>"
      ],
      "description": "<description>",
      "enabled": true,
      "created_at": "2026-10-29T14:00:00Z"
    }
    Responses
    • 200 Updated
    • 400
    • 401
    • 403
    • 404 Not found
    • 413
    • 422 The new URL is not allowed (not public https, or resolves to a private address).
    • 429
    • 500
    • 503

Data

Bulk org data export

  • get/api/v1/snapshotscope: snapshot:read

    Full org data export (conversations, contacts, KB, routing, webhooks)

    Streams a single JSON document with all exportable org data. Rate-limited to 5/hour.

    Copy as curl
    cURL
    curl -X GET "https://app.velorplatforms.com/api/v1/snapshot" \
    -H "Authorization: Bearer $VELOR_API_KEY"
    Response example (200)
    {
      "schema_version": 1,
      "organization_id": "3f2b8c1e-5a47-4d0e-9b0a-1c2d3e4f5a6b",
      "generated_at": "2026-10-29T14:00:00Z",
      "conversations": [
        {}
      ],
      "messages": [
        {}
      ],
      "contacts": [
        {}
      ],
      "knowledge_sources": [
        {}
      ],
      "routing_rules": [
        {}
      ],
      "webhooks": [
        {}
      ],
      "feature_flags": [
        {}
      ],
      "campaigns": [
        {}
      ],
      "organization_config": {}
    }
    Responses
    • 200 JSON snapshot of the workspace
    • 401
    • 403
    • 413 The workspace has more rows than this endpoint exports in one document. Use the paginated list endpoints; this endpoint refuses rather than returning a partial backup.
    • 429
    • 500
    • 503

Webhooks

Velor delivers signed webhook events for conversation lifecycle, approval queue activity, CSAT submissions, and hallucination flags. Configure subscriptions at Settings → Webhooks. Payloads are signed with HMAC-SHA256.