Complete a direct-to-storage upload after the file bytes have been written to the signed uploadUrl.
Retab verifies that the object exists, matches the expected size from the upload session, and belongs to the authenticated organization. The response includes the durable storageUrl to use in later document requests.
curl -X POST \
'https://api.retab.com/v1/files/upload/file_a1b2c3d4e5f6/complete' \
-H "Api-Key: $RETAB_API_KEY" \
-H 'Content-Type: application/json' \
-d '{}'
{
"fileId": "file_a1b2c3d4e5f6",
"filename": "invoice.pdf",
"storageUrl": "https://storage.retab.com/file_a1b2c3d4e5f6"
}
Path Parameters
File ID returned by POST /v1/files/upload.
Request Parameters
Optional SHA-256 checksum. Required only if the upload session was created with sha256.
Response Fields
Unique identifier for the uploaded file, prefixed with file_.
The filename of the uploaded document.
Durable Retab storage URL to use in later MIMEData requests.
Optional SHA-256 checksum
Pattern: ^[a-fA-F0-9]{64}$