List recent jobs for the current org.
const url = 'https://api.adversarial.com/api/v1/jobs?age_days=7&order_by=created_at&page=1&page_size=50';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?age_days=7&order_by=created_at&page=1&page_size=50'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Filter by job type. Repeatable. An unrecognized value is rejected with 422.
Filter by lifecycle status. Repeatable.
Filter to jobs for a single integration, by name (e.g. Bugcrowd).
Only return jobs created within the last N days. Defaults to 7, max 30.
Sort key for the jobs list. Always descending (newest first), with id DESC
as the tiebreaker so pagination is stable across rows sharing a timestamp.
Sort key; always newest-first (id tiebreak). Defaults to updated_at
so re-runs and fresh completions surface at the top.
1-indexed page number. Defaults to 1; zero is rejected.
Rows per page. Defaults to 50, max 100; zero is rejected.
Responses
Section titled “Responses”Paginated list of jobs for the current org
Paginated list envelope: { "results": [...], "pagination": {...} }.
object
Pagination metadata describing the slice.
object
1-indexed page number of this result slice.
Number of items requested per page.
Total number of matching items across all pages.
Total number of pages at this page size.
The items on this page.
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
{ "results": [ { "status": "queued" } ]}