API Reference
API reference for agent execution, workflows, schedules, chats, and human review
This reference documents the Supervity APIs used to programmatically interact with the platform.
These APIs allow you to:
- execute AI agents and workflows
- monitor execution runs and schedules
- interact with agents via chat and streaming
- embed human-in-command approval flows
- access execution artifacts such as logs, forms, and attachments
If you are coming from Key Features β API & Webhooks, this is the canonical technical contract.
API Model Overview
Supervity exposes an agent-driven execution model.
Core objects you interact with via APIs:
- Agent β plans and governs execution
- Workflow β executable representation of the plan
- Run β a single execution of a workflow
- Human review form β approval or input checkpoint
- Chat thread β conversational and streaming interaction
- Object β files and attachments used during execution
Most APIs are used to trigger, observe, or govern execution.
Base URL & Authentication
Base URL
All endpoints are relative to your workflow service base URL. Set the
Use this variable in the examples below (or substitute the URL directly).
Authentication
All requests require a bearer token.
Include the token in every request:
Tokens control:
- which workflows can be executed
- which runs can be inspected
- which approvals can be acted upon
API Conventions
Pagination
List endpoints typically support:
- (default: 1)text
- (endpoint-specific)text
Content Types
-
JSON APIs Use
text -
Execution & Streaming APIs Use
(viatext)text
Workflow & Agent Management APIs
These APIs are used to inspect and manage agent-generated workflows.
List workflows
GET
Query params:
- text
- text
- (optional)text
Get workflow by ID
GET
Delete workflow
DELETE
Deleting a workflow does not affect past runs or audit history.
Scheduling APIs
Scheduling controls when workflows execute, not how they behave.
List schedules
GET
Used to list all schedules (e.g. for the Schedule page). Supports pagination and optional org/team context.
Headers:
Query params:
- (default: 1)text
- (default: 20)text
Example response:
cURL example:
Pause or resume a schedule
PUT
Headers:
Request body (JSON):
Set
cURL example:
Delete a schedule
DELETE
Headers:
This removes the schedule but keeps the workflow intact.
cURL example:
Parse a natural-language schedule
POST
Headers:
Request body (JSON):
Returns a normalized schedule expression.
cURL example:
Get upcoming scheduled runs
GET
Returns the list of upcoming run times for a workflowβs schedule.
Headers:
cURL example:
Execution & Run APIs
Runs represent individual executions of an agent workflow.
List workflow runs
GET
Common query params:
- text
- text
- text
- text
Get workflow run by ID
GET
Returns:
- run status
- step-level activity runs
- inputs and outputs
- error context (if any)
Cancel workflow runs
POST
Body can include:
- (cancel active runs)text
- or (cancel specific runs)text
Dashboard counts per workflow
GET
Used for UI dashboards and monitoring systems.
Execute a workflow (agent execution)
POST
This endpoint triggers agent-backed execution.
multipart/form-data fields:
- (required)text
- text
- (optional execution overrides)text
Example:
Execution always respects:
- approval gates
- permissions
- human-in-command policies
Chat & Streaming APIs (Agent Interaction)
These APIs support conversational and streaming interaction with agents.
Create a chat thread
POST
Response:
Stream messages to an agent (SSE)
POST
Used for:
- conversational interaction
- planner visibility
- streaming execution updates
- human-in-command interrupts
Common stream event types:
- text
- text
- text
- text
- text
- text
- text
Human Review APIs (Human-in-Command)
These APIs allow external systems to participate in approval flows (e.g. Human Review page to list approvals, User Form page to view and act on a single approval).
List pending review forms (approvals)
GET
Used to list pending approvals for the Human Review / workbench page.
Headers:
Query params:
- (default: 1)text
- (default: 20)text
- (optional)text
Example response:
cURL example:
With optional search:
Fetch a rendered review form (view approval)
GET
Used to load a single approval form for the User Form page (view and submit the approval).
Headers:
No request body.
Example response:
You can render the provided
cURL example:
Submit a review decision
POST
Headers:
Request body (JSON):
cURL example:
Submitting a form resumes execution automatically.
Objects & Attachments
Objects represent files exchanged during execution.
Download an attachment
GET
Query params:
- text
- (e.g.text)text
Notes on Extensibility
Depending on deployment, Supervity may also expose APIs for:
- registering external tools
- integrating custom services
- advanced policy or governance controls
These are documented in dedicated reference sections when enabled.
Where to Go Next
- understand execution β Workflows Explained
- see agents in action β Examples
- add governance β Human Review & Approvals
These APIs let you embed Supervity agents into your systems while preserving control, observability, and human oversight.