Skip to main content
The Supervisor worker orchestrates agent execution and manages project state, artifacts, and execution traces.

Base URL

  • Local: http://localhost:8787
  • Production: https://parti-supervisor.your-subdomain.workers.dev

Endpoints

Project Management

GET /api/projects

List all projects.

GET /api/hydrate/:projectId

Master hydration endpoint for project state.

Project Creation

POST /api/projects

Create a new project.

Agent Execution

POST /api/execute

Execute agent workflow (streaming). Headers:
  • Accept: text/event-stream - For SSE streaming
  • X-Project-ID: project-uuid - Project identifier
Streaming Response (SSE):

Artifact Management

GET /api/artifacts/:projectId

Get all artifacts for a project.

Execution Traces

GET /api/traces/:projectId

Get execution traces for a project.

Streaming API

The supervisor supports Server-Sent Events (SSE) for real-time progress updates:

Human-in-the-Loop (HITL)

The supervisor supports interrupt signals for human review:
  • Interrupt Signal: system_state.interrupt_signal: true
  • Status: system_state.status: "interrupted"
  • Review Required: Agent execution pauses for human approval