API Reference

Ventryx REST API

Complete reference for all Ventryx API endpoints, request parameters, response objects, and error codes. The API follows REST conventions and returns JSON for all responses.

Base URL

https://api.ventryx.io/v1

All requests must be made over HTTPS. HTTP requests are rejected.

Request format

Pass Content-Type: application/json on all POST and PATCH requests. Authentication uses Bearer tokens in the Authorization header.

Request headers
Authorization: Bearer vtx_live_your_key_here
Content-Type: application/json
Ventryx-Version: 2026-04-01

Response format

All responses return JSON with a consistent envelope:

Success response
{
  "data": { ... },
  "meta": {
    "total": 42,
    "page": 1,
    "per_page": 20
  }
}
Error response
{
  "error": {
    "code": "invalid_api_key",
    "message": "The API key provided is invalid or has been revoked.",
    "status": 401
  }
}

Rate limits

Rate limits are applied per API key. Limits vary by plan:

Plan Requests / min Requests / day
Starter6010,000
Pro300100,000
EnterpriseCustomUnlimited

Rate limit headers are returned on every response:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 247
X-RateLimit-Reset: 1743591600

Endpoints

Workflows

MethodPathDescription
GET/workflowsList all workflows
POST/workflowsCreate a workflow
GET/workflows/:idRetrieve a workflow
PATCH/workflows/:idUpdate a workflow
DELETE/workflows/:idDelete a workflow

Events

MethodPathDescription
GET/eventsList all events
POST/eventsEmit an event
GET/events/:idRetrieve an event

API Keys

MethodPathDescription
GET/api-keysList all API keys
POST/api-keysCreate an API key
DELETE/api-keys/:idRevoke an API key

HTTP status codes

CodeMeaning
200OK — request succeeded
201Created — resource was created
204No Content — resource was deleted
400Bad Request — invalid parameters
401Unauthorized — invalid or missing API key
403Forbidden — insufficient scope
404Not Found — resource does not exist
429Too Many Requests — rate limit exceeded
500Internal Server Error