HTTP API / PIPELINE KEYS / MCP

A micro backend for apps and agents

Store and retrieve structured JSON through HTTP endpoints. Manage API keys per pipeline, and connect agents to the same data through MCP with OAuth.

Read the developer guide
Application and agent accessShared pipelines and event history
HTTP API

POST events. GET state.

Call JSON endpoints from your server to append a complete event, read current state, or fetch history by aggregate ID.

HTTP endpoints and examples
PIPELINE API KEYS

Manage keys per pipeline

Create, rotate, or revoke a key in the workspace. A key permits reads and appends within one pipeline and deployment.

Open pipeline access
MCP TOOLS

Connect an agent

Use MCP with OAuth to define pipelines and work with their data. Approve permissions for each agent connection.

MCP connection instructions
HTTP + MCP

Two ways to use your backend

Your application and authorized agents read and write the same pipeline data.

Append an event over HTTP

Set PIPELINE_URL and PIPELINE_API_KEY on your server using your pipeline’s HTTP access & API key panel. Replace the example data with a complete object matching its schema.

curl "$PIPELINE_URL/events" \
  -H "X-API-Key: $PIPELINE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "aggregateId": "order-123",
    "data": { "status": "started" },
    "expectedSequence": 0,
    "requestId": "order-123-first"
  }'

Define a pipeline with an agent

Connect your MCP client with OAuth, then use this request to create a pipeline and its first event.

Using Event Pipeline, help me define a pipeline for structured JSON events. Ask what data I want to keep, propose an event schema, and review it with me before creating the pipeline. Explain that the first event freezes the schema. Use an aggregateId I provide, or generate a UUID for me to keep using. Append a complete JSON event with expectedSequence 0 and a new requestId. Later events must contain the full state, not patches.
HTTP endpoints, API keys, and MCP setup
STORAGE MODEL

Pipelines, aggregates, events

Event Pipeline validates and stores data. Your application or agent supplies complete JSON state and handles business logic.

01

A schema per pipeline

Every event matches its pipeline’s JSON schema. The first event freezes that structure for subsequent events.

02

State and history by ID

Group complete JSON events under an aggregate ID. Read the latest state or the earlier events in sequence.

03

Sequence checks and safe retries

Supply the expected sequence to detect concurrent writes. Reuse a request ID and the same content to retry an append without duplicating it.

WEB WORKSPACE

Manage pipelines and access

Inspect saved data, manage pipeline keys, and review agent connections.

Open workspace