Uploads
Get the status of a multipart file batch
One handle to poll for a batch registered with POST /files/upload/multipart/batch: per-file states and a roll-up of counts, instead of polling every upload.
GET
Get the status of a multipart file batch
Request · Response · Guide: Track a batch
More details
More details
files[].uploadId is the results[].fileId from the multipart initiate response (that
response uses uploadId for the S3 multipart id), and is the id GET /uploads/
takes.state stays in_progress until every registered file is settled (succeeded, failed
or expired), then becomes completed (all succeeded), failed (none succeeded) or
partially_failed (mixed). Files rejected at registration are counted in counts.rejected
and as failures. counts always covers the whole batch, on every page.A batch in which every file was rejected is settled at once as failed, with an empty
files[], and its callback is sent like any other.settlement is saved once, when the batch first settles, and never changes after that;
it is null until then. A background job also settles batches that nobody polls.
state and counts stay live.callback reports delivery to defaults.batchCallbackURL (null when the batch has none):
one POST of { event: "upload.batch.settled", batchId, uploadType, state, counts, settledAt, failures } after the batch settles. A non-2xx answer, timeout or network error is retried
after 1 min, 5 min, 30 min, 2 h and 12 h, then failed. A URL that resolves to a private
address fails without retrying. Delivery is at least once, so use batchId to drop duplicates.files[] is paged in request order: limit 1-100 (default 100), then follow
pagination.nextCursor. An invalid limit, or a cursor that is malformed or from another
batch, answers 400.A file never uploaded is expired 30 minutes after its last part URL expired. Refreshing
part URLs (POST /files/upload/multipart/urls/refresh) moves that deadline. An expired file
can still be refreshed and completed; it then leaves expired, and the batch state is
worked out again.Only batches from POST /files/upload/multipart/batch. A simple batch (POST
/files/upload/batch) has its own status at GET /files/upload/batch/ and answers
404 here, the same 404 as a batchId that does not exist or belongs to another project.Query Parameters
Response
Batch status.
in_progress until every registered file is settled; then completed (all succeeded), failed (none succeeded) or partially_failed (mixed). Files rejected at registration count as failures. In a multipart batch, an expired file completed late changes the state again.
Available options:
in_progress, completed, partially_failed, failed