Tasks and jobs
Background tasks scheduled by a workspace.
List jobs (pending, processing, embedding, failed, completed) for this workspace.
Completed jobs are included so the frontend reconcile loop can converge
a locally-stuck card to its terminal state even when the completed
WebSocket event was dropped or arrived out of order (worker-pod events
relay via pg_notify while embedding events are in-memory — no ordering
guarantee between the two paths). Rows are short-lived: the processing
center auto-fires the cleanup DELETE once everything is terminal.
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/jobs"[ { "created_at": "string", "current_step": "string", "destination": "string", "error_message": "string", "file_name": "string", "id": "string", "overall_progress": 0, "status": "string", "step_progress": 0 }]Delete every workspace processing job and clear their file references.
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/jobs"{ "property1": 0, "property2": 0}Delete a processing job and clear its file references; requires workspace membership.
Path Parameters
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/jobs/string"{ "property1": "string", "property2": "string"}Reset a failed job to pending and redispatch it; requires workspace membership.
Path Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/jobs/string/retry"{ "created_at": "string", "destination": "string", "file_name": "string", "id": "string", "status": "string"}curl -X GET "https://example.com/api/workspaces/string/tasks"[ { "conversation_id": "string", "created_at": "string", "id": "string", "live_state": "string", "live_status": "string", "notes": "string", "position": 0, "publish_date": "string", "status": "string", "title": "string", "type": "string", "updated_at": "string", "workspace_id": "string" }]Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/tasks" \ -H "Content-Type: application/json" \ -d '{ "items": [ "string" ], "type": "string" }'[ { "conversation_id": "string", "created_at": "string", "id": "string", "live_state": "string", "live_status": "string", "notes": "string", "position": 0, "publish_date": "string", "status": "string", "title": "string", "type": "string", "updated_at": "string", "workspace_id": "string" }]Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/api/workspaces/string/tasks/string" \ -H "Content-Type: application/json" \ -d '{}'{ "conversation_id": "string", "created_at": "string", "id": "string", "live_state": "string", "live_status": "string", "notes": "string", "position": 0, "publish_date": "string", "status": "string", "title": "string", "type": "string", "updated_at": "string", "workspace_id": "string"}curl -X DELETE "https://example.com/api/workspaces/string/tasks/string"{ "property1": 0, "property2": 0}Start a to-do task by creating its conversation and launching its agent.
Path Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/tasks/string/start"{ "conversation_id": "string", "created_at": "string", "id": "string", "live_state": "string", "live_status": "string", "notes": "string", "position": 0, "publish_date": "string", "status": "string", "title": "string", "type": "string", "updated_at": "string", "workspace_id": "string"}