Get a STOW batch's status
get /dicomweb/stow/{batchId}
Progress and per-instance outcome of one STOW request or STOW upload. Only the token that sent the batch can read it.
Scope: stow:write (partner_stow tokens).
Parameters
| Name | In | Description |
|---|---|---|
batchId |
path | The batch ID from the Location header or the upload |
Responses
200
The batch
application/json
| Field | Type | Description |
|---|---|---|
batchId |
string | |
status |
string | ingesting, then done or failed |
error |
string or null | |
parts |
integer or null | Instances in the body; null until the body is split |
arrived |
integer | |
ingested |
integer | |
duplicates |
integer | |
rejected |
integer | |
instances |
array of object | |
createdAt |
integer | Unix time in milliseconds |
updatedAt |
integer |
{
"batchId": "01JA2Z6Q7Y9K3M5N8P0R2S4T6V",
"status": "done",
"error": null,
"parts": 2,
"arrived": 2,
"ingested": 1,
"duplicates": 1,
"rejected": 0,
"instances": [
{
"part": 1,
"sopUid": "1.2.826.0.1.3680043.8.498.11",
"status": "ingested",
"reason": null
},
{
"part": 2,
"sopUid": "1.2.826.0.1.3680043.8.498.12",
"status": "duplicate",
"reason": null
}
],
"createdAt": 1760000000000,
"updatedAt": 1760000004000
}
401
Problem: unauthenticated
403
Problem: forbidden
404
Problem: not-found
500
Problem: internal
Errors
| Status | Type | Meaning |
|---|---|---|
| 401 |
unauthenticated
|
Not authenticated |
| 403 |
forbidden
|
Not allowed |
| 500 |
internal
|
Internal error |
| 404 |
not-found
|
Not found |
Examples
curl
curl -X GET 'https://app.pacspilot.com/dicomweb/stow/01JA2Z6Q7Y9K3M5N8P0R2S4T6V' \
-H "Authorization: Bearer $PACSPILOT_TOKEN"
JavaScript
const res = await fetch("https://app.pacspilot.com/dicomweb/stow/01JA2Z6Q7Y9K3M5N8P0R2S4T6V", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PACSPILOT_TOKEN}`,
},
});
console.log(res.status, await res.text());
Python
import os
import requests
res = requests.request(
"GET",
"https://app.pacspilot.com/dicomweb/stow/01JA2Z6Q7Y9K3M5N8P0R2S4T6V",
headers={"Authorization": f"Bearer {os.environ['PACSPILOT_TOKEN']}"},
)
print(res.status_code, res.text)