Access & visibility
Allow workspace.GetJob on your API key.
Acting member required. Send Brigg-Act-As with an approved member account ID. The key supplies permissions; the member selects whose data is used.
The selected member must be active and approved by the credential. This selects whose private data is used; the credential supplies permissions. Private ownership and project boundaries still apply.
Request fields
Send a JSON object with the following fields. Required fields must be included; omit optional fields you do not need.
job_idstringRequiredID returned by a supported start operation, such as FillWordTemplate or GenerateBrief. Keep the same approved acting member used to start it.
At least 1 character.
Poll without starting duplicate work
Keep job_id from the operation that started the work and use the same acting member when polling. This endpoint reads supported document-generation, briefing and CRM-import jobs; it does not enumerate every internal task.
queuedorrunning: wait before polling again.retry_at, when present, is an earliest suggested timestamp in Unix milliseconds; it is not a duration.awaiting_input: the person must continue the task in Brigg. Polling or repeating the start command does not answer that question.completed: inspectkindand the fields inresult. A document job returns afile_id; a brief job identifies a record, not the brief's body; a CRM import can report an imported count.failedorcancelled: stop automatic polling and inspect the returned error or the task in Brigg before starting a new action.
Results still require current access. A previously readable job can become unavailable after revocation or a change to the target's permissions.
Response
Returns 200 OK with a JSON body.
job_idstringRequiredOpaque job identifier returned when the work starts.
kindstringRequiredThe work this job performs.
Allowed: "document_generation", "crm_import", "brief", "brief_action".
statusstringRequiredFailed and cancelled are terminal. An automatically retried attempt remains queued. Awaiting_input needs a response in the task in Brigg; do not start duplicate work.
Allowed: "queued", "running", "awaiting_input", "completed", "failed", "cancelled".
created_atintegerRequiredTime the work was accepted, in Unix milliseconds.
updated_atintegerRequiredMost recent progress change, in Unix milliseconds.
retry_atinteger or nullRequiredEarliest suggested next check, in Unix milliseconds, or null when no specific time is supplied. Still poll with a delay and honor HTTP rate limits.
resultobject or nullRequiredCompletion result selected by kind. Null while unfinished or when no public result is available. A resource_id identifies a record; it is not generated content.
Nested fields
file_idstringOptionalGenerated file; use documents.GetFileDownload.
resource_typestringOptionalKind of the affected record.
resource_idstringOptionalAffected record identifier; read the record for current values.
importedintegerOptionalRecords created or updated.
errorobject or nullRequiredA terminal failure. Fix the cause and submit a new command with a new idempotency key; retrying the old command returns the same job.
Nested fields
codestringRequiredMachine-readable code identifying this outcome or issue.
messagestringRequiredHuman-readable explanation of the returned outcome.
Errors & retries
This operation reads data. It needs no idempotency key and can be retried after a transient failure.
For rate limits, follow the server’s retry guidance and back off. See HTTP errors and safe retries and limits.
| HTTP status | Code | What to do |
|---|---|---|
| 400 | invalid_json |
Send a JSON object with Content-Type: application/json. |
| 400 | invalid_input |
Check the request fields and types. |
| 401 | invalid_key |
The workspace API key is missing, invalid or revoked. |
| 403 | forbidden |
Check the key’s operation and resource grants. Supply Brigg-Act-As with a member authorized by the key’s delegation grant. The selected member must be active and approved by the credential. This selects whose private data is used; the credential supplies permissions. Private ownership and project boundaries still apply. |
| 404 | not_found |
The requested operation or resource is not available to this credential. |
| 429 | rate_limited |
Wait for Retry-After before retrying. |
Next steps
JSON schemas
Use the complete schemas for validation or client generation.
Full request JSON schema
{
"type": "object",
"properties": {
"job_id": {
"type": "string",
"minLength": 1,
"description": "ID returned by a supported start operation, such as FillWordTemplate or GenerateBrief. Keep the same approved acting member used to start it."
}
},
"required": [
"job_id"
],
"additionalProperties": false,
"examples": [
{
"job_id": "job_document_proposal"
}
]
}Full response JSON schema
{
"title": "Job",
"type": "object",
"additionalProperties": false,
"properties": {
"job_id": {
"type": "string",
"description": "Opaque job identifier returned when the work starts."
},
"kind": {
"type": "string",
"enum": [
"document_generation",
"crm_import",
"brief",
"brief_action"
],
"description": "The work this job performs."
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"awaiting_input",
"completed",
"failed",
"cancelled"
],
"description": "Failed and cancelled are terminal. An automatically retried attempt remains queued. Awaiting_input needs a response in the task in Brigg; do not start duplicate work."
},
"created_at": {
"type": "integer",
"description": "Time the work was accepted, in Unix milliseconds."
},
"updated_at": {
"type": "integer",
"description": "Most recent progress change, in Unix milliseconds."
},
"retry_at": {
"type": [
"integer",
"null"
],
"description": "Earliest suggested next check, in Unix milliseconds, or null when no specific time is supplied. Still poll with a delay and honor HTTP rate limits."
},
"result": {
"type": [
"object",
"null"
],
"additionalProperties": false,
"properties": {
"file_id": {
"type": "string",
"description": "Generated file; use documents.GetFileDownload."
},
"resource_type": {
"type": "string",
"description": "Kind of the affected record."
},
"resource_id": {
"type": "string",
"description": "Affected record identifier; read the record for current values."
},
"imported": {
"type": "integer",
"description": "Records created or updated."
}
},
"description": "Completion result selected by kind. Null while unfinished or when no public result is available. A resource_id identifies a record; it is not generated content."
},
"error": {
"type": [
"object",
"null"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable code identifying this outcome or issue."
},
"message": {
"type": "string",
"description": "Human-readable explanation of the returned outcome."
}
},
"required": [
"code",
"message"
],
"additionalProperties": false,
"description": "A terminal failure. Fix the cause and submit a new command with a new idempotency key; retrying the old command returns the same job."
}
},
"required": [
"job_id",
"kind",
"status",
"created_at",
"updated_at",
"retry_at",
"result",
"error"
],
"examples": [
{
"job_id": "job_document_proposal",
"kind": "document_generation",
"created_at": 1794301200000,
"updated_at": 1794301260000,
"retry_at": null,
"result": null,
"error": null,
"status": "running"
}
]
}