GET Upload Status
Returns the current status of an upload session, including per-file malware-scan status. Poll this after uploading a file to the URL returned by POST Upload Initiate.
Use cases
- Confirm a file has cleared malware scanning before referencing it elsewhere.
- Build a progress indicator for an in-flight upload.
Parameters
| string | Path parameter. Required. The upload session identifier returned by POST Upload Initiate. |
Response fields
| string | Upload session identifier. |
| string | Overall session status. In progress: |
| array | One entry per file in the session. |
| string | File identifier within the upload session, matching the |
| string | File name after cleaning: every character other than a letter, digit, hyphen, underscore or full stop is replaced with an underscore. |
| string | Per-file processing status. In progress: |
| string | Malware-scan verdict: |
Important notes
- Invalid or unknown id: an
upload_idthat is not a UUID returns400UPL-4000with the messageupload_id must be a valid UUID. An unknownupload_id, or one that belongs to another organisation, returns404UPL-4041. This is deliberate: an organisation mismatch and an unknown id are indistinguishable by design, so an id cannot be used to find out whether it exists. - Stored location: the stored location of a file is not returned. Identify a file by
upload_idandfile_id, and quote both to support. - On-premise orgs: this endpoint returns 400 with the message
File uploads are only available for online organisationsandsupport_codeUPL-4000. - Polling guidance: every 5 seconds for the first minute, then every 30 seconds, until
statusiscompleted,rejectedorerror. These are the three terminal states. There is no webhook and no batch status call, so poll each upload separately. Each upload carries one file. - Outcomes: a clean file ends as file
completed,scan_resultno_threats_found, sessioncompleted. Malware ends asquarantined,threat_detected, sessionrejected. A file that does not match its declared type ends asintegrity_failed,integrity_failed, sessionrejected. A file with unusually high entropy ends the same way. A scan that could not be completed ends asscan_failed,error, sessionerror. A clean file whose name is too long to store ends asscan_failed,path_too_long, sessionerror; start a new upload with a shorter file name. Use the filestatusto decide what happened. - Scan time: a clean file normally finishes in a few seconds (2 to 5 seconds in UAT). This is an observation, not a guaranteed time.
- Errors are not retried: an upload in
erroris not retried automatically. Start a new upload with POST Upload Initiate. A scan that has not finished after about 15 minutes is markederror. If a file has not reached a final state about 20 minutes after it was uploaded, treat it as failed and start a new upload. - Status retention: upload status is available for 30 days. After that the call returns 400 with the message
Upload session has expired. The upload URL itself is valid for 15 minutes. If the file is never sent, the session staysawaiting_uploadand the file stayspending_uploaduntil the 30 days end; it does not move to a failed state. This was observed unchanged after 5 minutes.
Quick example
curl "https://api-uat.dental4web.com.au/api/v1/uploads/a3f5c9e2-8b1d-4e6a-9c3f-1d2e3f4a5b6c" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Accept: application/json" Header Parameters
(Required)
Path Parameters
The upload session identifier returned by POST Upload Initiate.
Response
{ "upload_id": "a3f5c9e2-8b1d-4e6a-9c3f-1d2e3f4a5b6c", "status": "completed", "files": [ { "file_id": "7d9e2b41-5c3a-4f8e-b6a1-2e4d8c0f9a13", "filename": "xray-2026-03-01.pdf", "status": "completed", "scan_result": "no_threats_found" } ] }
Response Attributes
Response Attributes
GET
/
1