Uploads

Get signed upload URLs for a file's parts

Returns one signed URL per requested part number. PUT the raw bytes of each part to its URL with no extra headers, and keep the ETag response header of each PUT (quotes included) for completing the file.

total_parts = ceil(file_size_bytes / part_size); a file smaller than part_size is one part. Up to 1,000 part numbers per request, each from 1 to 10,000; a URL is valid for 15 minutes from issue, so for a very large file request URLs in batches just before uploading each batch.

Rate limit: 600 requests per minute per API key, shared by the upload endpoints.

post/uploads/sessions/{upload_session_id}/parts

Request

  • Base URL: https://api.invoicedataextraction.com/v1
  • URL: https://api.invoicedataextraction.com/v1/uploads/sessions/{upload_session_id}/parts
  • Auth: HTTP bearer

Path parameters

upload_session_idstring required

An identifier you choose: 1 to 200 characters from letters, digits, dots, underscores, colons and hyphens. Used for upload_session_id, file_id and submission_id.

The upload_session_id you chose when creating the session.

Request body

file_idstring required

An identifier you choose: 1 to 200 characters from letters, digits, dots, underscores, colons and hyphens. Used for upload_session_id, file_id and submission_id.

part_numbersinteger[] required

1-indexed part numbers; duplicates are ignored.

Response

The signed URLs, one per part number requested.

successtrue required
upload_session_idstring required

An identifier you choose: 1 to 200 characters from letters, digits, dots, underscores, colons and hyphens. Used for upload_session_id, file_id and submission_id.

file_idstring required

An identifier you choose: 1 to 200 characters from letters, digits, dots, underscores, colons and hyphens. Used for upload_session_id, file_id and submission_id.

file_namestring required
part_sizeinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.