The Copilot API provides an AI-assisted workflow builder. Create a copilot session linked to a workflow, describe what you want in natural language, and the copilot generates the workflow graph. You can iterate through multiple chat turns to refine the workflow, then save a snapshot to apply the generated graph.Documentation Index
Fetch the complete documentation index at: https://docs.powabase.ai/llms.txt
Use this file to discover all available pages before exploring further.
Common Patterns
Create a copilot session with a workflow_id, send messages via the chat endpoint (streaming SSE), and save good suggestions with the snapshot endpoint. Each chat message can produce a new version of the workflow graph. The copilot maintains conversation context within a session.POST /api/copilot/sessions
Create a copilot session for a workflow.GET /api/copilot/sessions
Get session by workflow_id.Workflow ID
DELETE /api/copilot/sessions/
Delete a copilot session.Session ID
GET /api/copilot/sessions//messages
Get copilot conversation history.Session ID
POST /api/copilot/sessions//messages//snapshot
Save the copilot’s workflow suggestion as a snapshot.Session ID
Message ID
POST /api/copilot/sessions//chat
Send a message and stream the copilot response (SSE).Session ID
GET /api/copilot/settings/model
Get copilot model configuration.PUT /api/copilot/settings/model
Set copilot model.Error Responses
| Status | Code | Description |
|---|---|---|
| 404 | session_not_found | No copilot session exists with the given ID |