curl --request GET \
--url https://api-dev.narrative.io/nql/{job_id} \
--header 'Authorization: Bearer <token>'{
"id": "ef628399-1c83-44ff-8525-69c3796cfc7c",
"company_id": 1,
"completed_at": null,
"created_at": "2025-04-11T23:37:40.796820Z",
"failures": [],
"idempotency_key": "9c987819-b5e9-4357-abe6-52c1e6a2e8b5",
"input": {
"nql": "EXPLAIN SELECT company_data.\"9561\".\"STATE\" FROM company_data.\"9561\"",
"compiled_sql": "..."
},
"request_source": {
"type": "api_user",
"company_id": 1,
"user_id": 1414
},
"result": null,
"state": "running",
"updated_at": "2025-04-11T23:37:41.168859Z"
}This endpoint is used to poll forecast result after it’s ran.
curl --request GET \
--url https://api-dev.narrative.io/nql/{job_id} \
--header 'Authorization: Bearer <token>'{
"id": "ef628399-1c83-44ff-8525-69c3796cfc7c",
"company_id": 1,
"completed_at": null,
"created_at": "2025-04-11T23:37:40.796820Z",
"failures": [],
"idempotency_key": "9c987819-b5e9-4357-abe6-52c1e6a2e8b5",
"input": {
"nql": "EXPLAIN SELECT company_data.\"9561\".\"STATE\" FROM company_data.\"9561\"",
"compiled_sql": "..."
},
"request_source": {
"type": "api_user",
"company_id": 1,
"user_id": 1414
},
"result": null,
"state": "running",
"updated_at": "2025-04-11T23:37:41.168859Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for a job.
OK
Unique identifier for the job.
Company that ran the job.
The timestamp representing when the job finished.
The timestamp representing when the job was created.
causes of job failure
Show child attributes
The unique ID associated with the job.
Show child attributes
{
"type": "api_user",
"company_id": 1,
"user_id": 1248
}failed, cancelled, completed, pending, running The timestamp representing when the job was updated.
The query and it's compiled sql sent to the executor.
Show child attributes
Show child attributes