SnozeDevelopers
API referenceAi Jobs

Read a background AI job

One of the caller's jobs with its summary and up to fifty parts that failed for good, each with the reason in plain words. A job another member started reads as not found. Requires a Clerk session for a workspace member with the `ai:read` permission.

GET
/v1/workspaces/{workspaceId}/agent/jobs/{jobId}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
jobId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/agent/jobs/string'
Example Response
{  "data": {    "job": {      "id": "string",      "workspaceId": "string",      "chatId": "string",      "kind": "records",      "status": "queued",      "statusReason": "person",      "title": "string",      "estimateMicrousd": 0,      "ceilingMicrousd": 0,      "spentMicrousd": 0,      "waivedMicrousd": 0,      "totalUnits": 0,      "doneUnits": 0,      "failedUnits": 0,      "rowsWritten": 0,      "summary": {        "unitsDone": 0,        "unitsFailed": 0,        "unitsCancelled": 0,        "rowsWritten": 0,        "rowsSkipped": 0,        "spentMicrousd": 0,        "waivedMicrousd": 0,        "durationMs": 0      },      "lastError": "string",      "createdAt": "string",      "updatedAt": "string",      "startedAt": "string",      "finishedAt": "string"    },    "failedUnits": [      {        "id": "string",        "unitKey": "string",        "ordinal": 0,        "label": "string",        "attempt": 0,        "error": "string",        "finishedAt": "string"      }    ]  }}