Retrieve a single job by ID.
const url = 'https://api.adversarial.com/api/v1/jobs/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.adversarial.com/api/v1/jobs/exampleParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Job ID, as returned when the job was enqueued
Responses
Section titled “Responses”Job details
A single background job.
object
How long the job took, in seconds, from when it was enqueued
(created_at) to when it reached its final state (updated_at).
Absent while the job is still in flight. Includes time spent waiting in
the queue.
Why the job failed. Absent unless the status is failed.
Job ID, assigned when the job was enqueued.
The integration this job belongs to, when it is integration work.
The kind of work this job performs (e.g. RiskIntegrationImporter).
When the job became — or becomes — eligible to run: the enqueue time
for an immediate job, a future instant for a scheduled one. For a
recurring job this advances to the next scheduled run once it
completes. It is not the time the job started or finished, so it should
not be used to measure how long the job took; read duration_seconds
for that.
The lifecycle status of a background job.
Example
{ "status": "queued"}Job not found