exportJob
query · in the family Export job
What it does
Look up one background export — a search plan the platform is running, or has run, for you to a file: its words, the format, how far it got, how many rows and bytes it wrote, and why it stopped if it stopped short.
One ExportJob by id. The record must belong to your organization group; an id from another group reads as not found.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Reading your records — Looking up and listing the records of your organization.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows
api:exportJob
What happens
Reads only — changes nothing.
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
id | ID ID! | yes | The id of the record. |
Returns
ExportJob — The record is the durable truth (stepsDone · examined · partCount · rowCount · bytes grow; partial says the run stopped short; problem says why). the budget rule is the SearchJob's verbatim — at most 50000 records examined · 300 s from the start (past it the job is expired with the parts written) · 400 machine steps — plus ONE bound of its own: 256 MiB on the composed file (the walk halts partial the step before it would cross). The plan's limit does NOT bound the export — every terminal record is written. ONE running export per signed-in session (the exportlock marker — a second start refuses CONFLICT/EXPORT_JOB_ACTIVE naming the holder; a running search does not block it). Lifecycle queued → running → done | cancelled | expired | failed: cancel is the owner's (cancelExportJob) or the session's end — NO file is composed on cancel; done stays listed, the other terminals are doomed-class. The generic wire is read-only (the two reads) — the bespokes own the writes: startExportJob (the plan gate, then the per-family list-op offer as the caller — a family you may not list stops the plan before any read; the format csv | jsonl) · cancelExportJob · exportJobDownload (a query — the owner alone AND the reader's own list right over the plan's terminal family). The finish mints an in-app notice (export_finished · export_expired · export_failed), never on cancel.
Example request
query ExampleExportJob($id: ID!) {
exportJob(id: $id) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
userId
sessionId
planJson
words
format
reportJson
stepsDone
examined
partCount
rowCount
bytes
partial
fileKey
fileName
fileTtl
startedAt
finishedAt
problem
sfExecutionArn
}
}Variables:
{
"id": "01900000-0000-7000-8000-c6a1b59a0000"
}Example response
{
"data": {
"exportJob": {
"id": "01900000-0000-7000-8000-c6a1b59a0000",
"sysId": "EX-EXMP-0000-000F",
"type": "ExportJob",
"caption": "Blue jeans",
"status": "queued",
"parentId": "01900000-0000-7000-8000-eacdfcfd0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"userId": "01900000-0000-7000-8000-e0a63e120000",
"sessionId": "01900000-0000-7000-8000-2048cc970000",
"planJson": "<plan json>",
"words": "<words>",
"format": "<format>",
"reportJson": "<report json>",
"stepsDone": 1,
"examined": 1,
"partCount": 1,
"rowCount": 1,
"bytes": 1,
"partial": true,
"fileKey": "<file key>",
"fileName": "Blue jeans",
"fileTtl": 1,
"startedAt": "2027-01-31T00:00:00.000Z",
"finishedAt": "2027-01-31T00:00:00.000Z",
"problem": "<problem>",
"sfExecutionArn": "<sf execution arn>"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)