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.
  • processing: the job is running: records are being calculated (or deleted, in a delete job).
  • completed: every record succeeded.
  • completed_with_errors: every chunk ran and at least one record failed (counts.failed > 0).
failed is reserved and no job ends in it today. A job whose chunks_done stops moving stays processing: see A job that does not finish.
string
What the job creates, e.g. wastes.
string
Available values: create, delete (Delete Wastes).
string
How the job was submitted: api_bulk with an API key (an integration), app by a person signed in to Dcycle (the app’s forms, or tools that act on their session). Only api_bulk jobs send the ingest_job.finished webhook. file_upload and import_wizard are reserved.
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.
Rather not poll? Register a webhook endpoint for ingest_job.finished: Dcycle sends you this same object, signed, as soon as the job finishes.

A job that does not finish

chunks_done normally moves within minutes. If it has not changed for 30 minutes, the job is stuck: Dcycle does not retry it on its own yet, and its ingest_job.finished webhook will not arrive. Contact support with the job id. Do not resend a create batch with a new Idempotency-Key: its records are already stored, so you would duplicate them.

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