Skip to main content
GET
Get Ingest Job
← Create Wastes (v2) Read the status, counters and progress of a job created by a bulk endpoint such as POST /v2/wastes. This is the endpoint to poll while the records are being calculated.
Beta. Part of the bulk ingest API, currently in beta. The contract may still change before general availability.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
UUID of the organization that created the job, or of one of its parent organizations.Example: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

uuid
required
The job id, as returned in the bulk response body and in its Location header.Example: 2d4b90c1-7c1e-4b6f-9a55-3f2b8e61d0aa

Response

uuid
Job id.
string
Available values: processing, completed, completed_with_errors, failed.
  • processing: the records are stored and their emissions are being calculated.
  • completed: every record was calculated.
  • completed_with_errors: every chunk ran and at least one record failed to calculate (counts.failed > 0).
  • failed: the job as a whole failed; contact support with the job id.
string
What the job creates, e.g. wastes.
string
Available values: create.
string
How the job was submitted. Available values: api_bulk, file_upload, import_wizard.
object
integer
Number of calculation chunks.
integer
Chunks already calculated. chunks_done / chunks_total is the progress.
datetime
When the job was created (UTC).
datetime | null
When the job finished (UTC), null while it is processing.
self: this job. items: its per-record outcomes.

Example

Successful Response

Poll every 5 to 10 seconds and stop when status is no longer processing. chunks_done / chunks_total tells you how far along the job is.

Common Errors

401 Unauthorized

Missing or invalid API key.

404 Not Found

The job does not exist, or it belongs to an organization outside the one in x-organization-id. Both cases return the same response.

List Ingest Job Items

Per-record outcomes of the job

Create Wastes (v2)

Create up to 5,000 wastes in one request