Brume · Docs
API

Tasks and jobs

Background tasks scheduled by a workspace.

GET
/api/workspaces/{workspace_id}/jobs

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

workspace_id*string

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
/api/workspaces/{workspace_id}/jobs

Delete every workspace processing job and clear their file references.

Path Parameters

workspace_id*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/jobs"
{  "property1": 0,  "property2": 0}
DELETE
/api/workspaces/{workspace_id}/jobs/{job_id}

Delete a processing job and clear its file references; requires workspace membership.

Path Parameters

workspace_id*string
job_id*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/jobs/string"
{  "property1": "string",  "property2": "string"}
POST
/api/workspaces/{workspace_id}/jobs/{job_id}/retry

Reset a failed job to pending and redispatch it; requires workspace membership.

Path Parameters

workspace_id*string
job_id*string

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"}
GET
/api/workspaces/{workspace_id}/tasks

Path Parameters

workspace_id*string

Response Body

application/json

application/json

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"  }]
POST
/api/workspaces/{workspace_id}/tasks

Path Parameters

workspace_id*string

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"  }]
PATCH
/api/workspaces/{workspace_id}/tasks/{task_id}

Path Parameters

workspace_id*string
task_id*string

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"}
DELETE
/api/workspaces/{workspace_id}/tasks/{task_id}

Path Parameters

workspace_id*string
task_id*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/workspaces/string/tasks/string"
{  "property1": 0,  "property2": 0}
POST
/api/workspaces/{workspace_id}/tasks/{task_id}/start

Start a to-do task by creating its conversation and launching its agent.

Path Parameters

workspace_id*string
task_id*string

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"}