Appearance
HTTP API
DICOM Capacitor includes a built-in HTTP management API for monitoring and controlling the service. The API and web UI are always started. On a native install the listener binds to 127.0.0.1, so it is not reachable from other machines; inside a container (DOTNET_RUNNING_IN_CONTAINER=true) it binds to 0.0.0.0 so a port mapping can publish it.
Configuration
Configure the API in config.yml (see api):
yaml
api:
port: 1080 # auto-increments if busy
servicePassword: "password" # browser UI cookie credential
token: "secret" # optional bearer token for scriptsThe actual bound address is logged at startup:
INFO: Web UI and API available at http://127.0.0.1:1080Authentication
Most read endpoints are open. Write endpoints and PHI-bearing reads (marked 🔒) accept either credential:
- Service password (browser UI): Set
api.servicePasswordinconfig.yml. Sent as acapacitor_sessioncookie. - Bearer token (programmatic): Set
api.tokeninconfig.yml. Sent asAuthorization: Bearer <token>header.
yaml
api:
servicePassword: "your-password" # for browser UI
token: "your-api-token" # for scripted accessMissing or wrong credentials → 403 Forbidden. Protected endpoints are never open anonymously: even with neither servicePassword nor token set, the service still requires a built-in default service password, so configure your own for production installs.
Response Envelope
All endpoints except the backward-compatible ones return a uniform envelope:
json
{ "ok": true, "data": { ... }, "error": null, "timestamp": "2026-03-22T10:00:00Z" }On error:
json
{ "ok": false, "data": null, "error": { "code": "NOT_FOUND", "message": "..." }, "timestamp": "..." }Any request to an /api/... path that matches no endpoint returns this envelope with 404 and "API endpoint not found".
Endpoints
System
GET /api/system/info
Returns version, uptime, identity, activation state, listening ports and IP addresses.
json
{
"ok": true,
"data": {
"product": "DICOM Capacitor",
"version": "4.9.0",
"startedAt": "2026-03-22T08:00:00Z",
"uptimeSeconds": 3600,
"aeTitle": "CAPACITOR",
"hostName": "RAD-ROUTER-01",
"capacitorName": "Radiology Router 1",
"displayName": "Radiology Router 1",
"activationState": "Active",
"listenPorts": { "dicom": 1040, "worklist": 1041, "queryRetrieve": 2763, "storageCommit": 1042, "api": 1080 },
"ipAddresses": ["192.168.1.20"]
}
}hostName is the machine name. capacitorName comes from capacitor.name and is null when unset. displayName is the first non-empty value of capacitorName, aeTitle and hostName.
Activation
GET /api/activation
Returns the activation state, expiry, machine request code and the store URL used to obtain an activation code.
json
{ "ok": true, "data": { "state": "Active", "expiresAt": "2027-01-01T00:00:00Z", "requestCode": "...", "activationUrl": "https://..." } }POST /api/activation 🔒
Applies an activation code. Body: { "code": "..." }. Returns the updated activation information; 400 when the code is missing.
Nodes
GET /api/nodes
Returns all configured nodes with their settings, pause and schedule-override state, queue depth, delivery statistics and delivery health.
json
{
"ok": true,
"data": [
{
"aeTitle": "PACS",
"hostName": "pacs.example.org",
"port": 104,
"role": "Storage",
"paused": false,
"scheduleOverride": false,
"queue": { "new": 12, "prepared": 3, "failed": 0, "rejected": 1, "attention": 1, "checkedOut": 1, "sending": 1 },
"stats": { "success": 1200, "failed": 4, "timedOut": 1, "lastSuccessAt": "2026-03-22T09:59:00Z", "...": "..." },
"deliveryHealth": {
"actionablePrepared": 3,
"oldestPreparedAt": "2026-03-22T09:58:00Z",
"oldestPreparedAgeSeconds": 120,
"lastSuccessAt": "2026-03-22T09:59:00Z",
"secondsSinceLastSuccess": 60,
"deliveryStalled": false,
"deliveryStallReason": null,
"deliveryStallThresholdSeconds": 3600
}
}
]
}queue.attention is failed plus rejected. queue.checkedOut counts items owned by a worker, and queue.sending counts items in a live C-STORE batch. rejected, attention and sending are available after 4.9.0 (unreleased).
deliveryHealth applies to Storage nodes. A node is reported as stalled when it is eligible to deliver (storage processing on, the node not paused, and its schedule and network rules allowing delivery), its oldest ripe, checked-in prepared item (respecting ProcessDelay) is at least deliveryStallThresholdSeconds (60 minutes) old, and it has had no successful delivery within that time. The threshold is fixed. After 4.9.0 (unreleased), the stall clock is limited by the time since the node last became eligible, so resuming a node, entering a schedule window or regaining network access does not immediately report a stall. oldestPreparedAgeSeconds still reports the actual item age. Backlog snapshots are reused for up to 30 seconds and refreshed after clock rollback.
GET /api/nodes/{aeTitle}/stats
Returns the delivery statistics for one node (the same shape as stats above): lifetime and recent success, failure and timeout counts, stall aborts, abandoned sends, supervised respawns, network exhaustions, average transfer time, and the last success, failure and echo. Counts are kept in memory and reset when the service restarts.
Storage retry diagnostics
Unreleased; not included in DICOM Capacitor 4.9.0.
For network storage destinations, stats.storageRetry reports retry behavior independently of per-object delivery counters. It is null until retry state has been created for the destination. The same fields are returned by GET /api/nodes/{aeTitle}/stats and in each node's stats object.
| Field | Meaning |
|---|---|
circuitState | Closed: normal attempts allowed; Open: waiting for a probe; HalfOpen: a probe is active. A closed circuit can still have a retry delay. |
consecutiveFailures | Consecutive destination failure decisions, not rejected-object count. |
lastOutcome | Last recorded success or failure outcome; nullable before an outcome is recorded. |
lastRootCause | Failure type and applicable socket error codes; nullable, and cleared after a fully accepted send. |
nextRetryUtc | Earliest retry eligibility time, or null when no delay is scheduled. It is not a guaranteed send time: queue availability, pause, schedule and network restrictions still apply. |
backoffSeconds | Most recently selected retry delay, in seconds; zero after recovery. |
lastSuccessUtc | Time of the last fully accepted batch or probe; nullable. |
timeSinceSuccessSeconds | Elapsed seconds since that success; nullable. |
retriesLastMinute | Attempts begun in the last 60 seconds while a failure streak existed. |
totalAttempts | Delivery attempts begun, not objects sent or scheduler polls. |
totalFailures | Recorded destination failure decisions. Several refused groups can contribute to one decision. |
totalSuccesses | Fully accepted batches or probes, not accepted-object count. |
stats.localAddressUnavailable counts outbound local-address allocation failures. stats.networkExhaustions includes both host socket-buffer exhaustion and outbound local-address exhaustion. These counters and retry state reset when the service restarts. File-backed ExportPath delivery does not use the network retry policy.
See retry settings and storage retry behavior.
GET /api/nodes/{aeTitle}
Returns a single node. 404 if not found.
PUT /api/nodes/{aeTitle} 🔒
Updates a node's properties. The node must be paused and fully drained (no checked-out items) before editing.
json
{
"role": "Storage",
"hostName": "192.168.1.100",
"port": 104,
"priority": 0,
"processDelay": 0,
"impersonate": false,
"transferSyntax": "",
"batchSize": 0,
"minimumLineSpeed": 500,
"aliases": ["PACS", "ARCHIVE"]
}The role field is required to disambiguate when multiple nodes share the same AE title (e.g., one Storage and one QueryRetrieve). Returns 409 Conflict if the node is not paused or has items checked out.
POST /api/nodes/{aeTitle}/pause 🔒
Pauses delivery for a single node. Other nodes continue processing normally.
POST /api/nodes/{aeTitle}/resume 🔒
Resumes delivery for a paused node.
POST /api/nodes/{aeTitle}/echo 🔒
Sends a C-ECHO to the node and returns latency and success status. Times out after 10 seconds.
POST /api/nodes/{aeTitle}/override-schedule 🔒
Temporarily overrides the node's ProcessSchedule, allowing delivery outside of scheduled windows. The override is in-memory only and clears on service restart.
DELETE /api/nodes/{aeTitle}/override-schedule 🔒
Clears the schedule override, returning the node to its configured schedule.
Queue
GET /api/queue/items 🔒
Returns a paginated list of queue items. Supports query filters:
| Parameter | Description |
|---|---|
state | Filter by state (see GET /api/queue/filter-options for values) |
source | Filter by source AE title |
destination | Filter by destination AE title |
modality | Filter by modality (e.g. CT) |
format | Filter by cached item format |
search | Full-text search across UIDs and AE titles |
checkedOut | true or false: only items that are, or are not, checked out by a worker (after 4.9.0, unreleased) |
activeSend | true or false: only items that are, or are not, in a live C-STORE batch (after 4.9.0, unreleased) |
skip | Pagination offset (default 0) |
limit | Page size (default 50) |
json
{
"ok": true,
"data": {
"items": [ { "id": 1, "state": "prepared", "modality": "CT", "isActiveSend": false, ... } ],
"total": 142,
"skip": 0,
"limit": 50
}
}GET /api/queue/filter-options
Returns the values available for the queue filters: states, sources, destinations and modalities. (states is available after 4.9.0, unreleased.)
GET /api/queue/items/{id} 🔒
Returns full detail for a single item including DICOM tags. 404 if not found.
POST /api/queue/items/{id}/fail 🔒
Moves the item to Failed state (will retry on next cycle).
POST /api/queue/items/{id}/reject 🔒
Moves the item to Rejected state (will not retry).
POST /api/queue/items/{id}/retry 🔒
Moves a failed or rejected item back to New state for reprocessing.
POST /api/queue/items/{id}/move 🔒
Moves an item to a specified target state. Body: { "targetState": "New" }.
DELETE /api/queue/items/{id} 🔒
Permanently deletes the item and its file from disk.
POST /api/queue/actions/retry-failed 🔒
Bulk retries all failed items matching optional filters (source, destination, modality).
POST /api/queue/actions/retry-rejected 🔒
Bulk retries all rejected items matching optional filters.
POST /api/queue/studies/{studyUid}/move 🔒
Moves all items in a study to a target state. Body: { "targetState": "New" }.
DELETE /api/queue/studies/{studyUid} 🔒
Deletes all items in a study.
POST /api/queue/series/{seriesUid}/move 🔒
Moves all items in a series to a target state.
Service
GET /api/service/status
Returns current processing flags.
json
{
"ok": true,
"data": {
"storageScu": true,
"worklistScu": true,
"storageCommitScu": true,
"prepare": true
}
}POST /api/service/pause 🔒
Disables all processing (Storage SCU, Worklist SCU, Storage Commit SCU, Prepare). Incoming files continue to be received and queued.
POST /api/service/resume 🔒
Re-enables all processing.
GET /api/service/processing-status
Returns a summary of processing state including per-node pause status and active job count.
json
{
"ok": true,
"data": {
"allPaused": false,
"checkedOutItems": 2,
"activeJobs": 3,
"idle": false
}
}Metrics
GET /api/metrics
Returns aggregate queue statistics and service status.
json
{
"ok": true,
"data": {
"totalItems": 155,
"byState": { "new": 12, "prepared": 130, "failed": 8, "rejected": 5 },
"checkedOut": 3,
"cache": {
"rawByState": { "new": 12, "prepared": 130, "failed": 8, "rejected": 5 },
"checkedOutByState": { "prepared": 3 },
"workflow": { "preparing": 12, "ready": 127, "checkedOut": 3, "sending": 3, "attention": 13, "failed": 8, "rejected": 5, "storageCommitPending": 0 },
"mismatches": { "count": 0, "samples": [] }
},
"service": { "storageScu": true, "prepare": true, ... }
}
}cache (after 4.9.0, unreleased) breaks the cache down by recorded state and by workflow stage. mismatches counts records whose recorded state differs from the state implied by the file's cache directory, with a few samples (id, recordState, pathState).
Logs
GET /api/logs/recent
Returns the most recent log entries from the in-memory ring buffer (last 1000 entries).
| Parameter | Description |
|---|---|
lines | Number of entries to return (default 100) |
level | Filter by level: DEBUG, INFO, WARN, ERROR |
json
{
"ok": true,
"data": [
{ "timestamp": "2026-03-22T10:01:00Z", "level": "INFO", "message": "Study delivered to PACS", "logger": "StorageSCU" }
]
}GET /api/logs/web/recent
Same as GET /api/logs/recent, for the separate web/API log buffer. Accepts lines and level.
GET /api/logs/audit
Returns the last lines (default 500) raw lines of capacitor_service_audit.log as an array of strings.
WARNING
This endpoint does not currently require credentials, and audit lines can include identifiers such as accession numbers (see logSuffix). Keep the API port restricted to trusted access.
Settings
GET /api/settings/config-files 🔒
Returns the data directory path, the saved Configatorium configuration code (configatoriumConfigCode) and the contents of the YAML configuration files that exist (config.yml, nodes.yml, mutations.yml, routings.yml, sortings.yml, lua.yml, worklist.yml). In config.yml, activationCode, api.token, api.servicePassword and configatorium.identifier are redacted.
POST /api/settings/configatorium/push 🔒
Pushes the local configuration bundle to Configatorium (see configatorium). Body: {}.
json
{ "ok": true, "data": { "configCode": "radiology-router-1", "version": 3, "createdAt": "2026-08-01T12:00:00Z", "includedFileCount": 2, "includedFiles": ["config.yml", "nodes.yml"] } }Returns 400 for invalid input or a missing required file, 404 when Configatorium does not know the entity, and 502 for other Configatorium failures.
POST /api/settings/configatorium/pull 🔒
Pulls a configuration bundle and applies it. Body: { "configCode": "..." }; when configCode is omitted, the saved identifier is used. Replaced files are backed up first, and a service restart is required.
json
{ "ok": true, "data": { "configCode": "radiology-router-1", "appliedFileCount": 2, "appliedFiles": ["config.yml", "nodes.yml"], "backedUpFiles": ["config.yml", "nodes.yml"], "backupDirectory": "...", "restartRequired": true } }Returns 400 for invalid input or a bundle that fails validation, 404 when the configuration is not found, and 502 for other Configatorium failures.
Worklist
GET /api/worklist/status
Returns { "managedQueriesPresent": bool, "worklistCachePopulated": bool }.
GET /api/worklist/managed-queries
Lists managed worklist queries with their schedule and refresh state (last refresh, success and failure times, last error, refresh and response counts). See Worklist Pre-Fetch.
GET /api/worklist/managed-queries/{id}
Returns one managed query. 404 if not found.
POST /api/worklist/managed-queries/{id}/refresh 🔒
Refreshes a managed query now and returns { "refreshed": true, "id": "..." }. Errors: 404 unknown query, 503 scheduler not running or refresh cancelled, 504 timeout, 502 upstream failure.
Prefetch
GET /api/prefetch/status
Returns whether prefetch is enabled and running, its startup state, rule count, concurrency, queue size and depth, active workers, last activity and error, counters (enqueued, dropped, started, completed, failed and skipped reasons) and warnings.
GET /api/prefetch/rules
Returns a summary of each configured prefetch rule.
GET /api/prefetch/activity 🔒
Returns recent prefetch activity entries, including patient ID and StudyInstanceUID. Query parameter limit (default 25).
Query/Retrieve 🔒
Availability
The Query/Retrieve endpoints are available after 4.9.0 and are not in a released version yet.
These endpoints let an application search a PACS and retrieve a study through Capacitor to any configured Storage destination, either a DICOM peer or a local/shared folder. All of them require credentials (they carry PHI).
Enable retrieval jobs
Set retrievalEnabled: true in config.yml and restart the service before submitting jobs. The default is false; CAPACITOR_RETRIEVAL_ENABLED=true or --config.retrievalEnabled=True can override it. Study search remains available with retrieval disabled.
| Mode at startup | Runtime behavior |
|---|---|
| Disabled, no saved receipts | No retrieval tracker, worker, or retention timer is installed. A fresh installation creates no retrieval journal. Ordinary cache rebuild and delivery use the normal path. |
| Disabled, saved receipts | Recovery-only mode restores ownership and marks unfinished jobs interrupted. It has no retrieval worker; retained history remains queryable and leftovers stay blocked. New submissions return HTTP 503 RETRIEVAL_DISABLED. |
| Enabled | Jobs are accepted subject to queue bounds. The idle worker waits for a signal, and ordinary arrivals consult no journal when no job is running. |
After retention removes the last saved receipts, restart to leave recovery-only mode and remove its tracker and timer.
With no coordinator installed, retrieval status/list/cancel also return HTTP 503 RETRIEVAL_DISABLED when the switch is off, or RETRIEVAL_UNAVAILABLE when it is on but initialization failed. The switch does not disable ordinary DICOM Q/R, prefetch, or file-backed Storage nodes. Do not delete an old journal to bypass recovery: its receipts protect cached leftovers from untracked delivery.
Setup
- Define the PACS as a
QueryRetrievenode innodes.yml. - Define a destination with
NodeRole: Storage. UseHostName/Portfor a DICOM peer, orExportPathfor a file-backed destination (see nodes). Register the destination's prefixed AE title at the PACS, pointing at Capacitor's host and Store SCP port. For example,DCP_ARCHIVEreceives into Capacitor when the destination AE isARCHIVEandaeTitlePrefixisDCP_. Capacitor applies its processing rules before delivering to the configured destination. - Optionally set
RequireDeliveryScope: trueon a destination dedicated to tracked deliveries. This refuses unmatched arrivals and rejects untracked routed/recovered files. Leave it false when the node also accepts ordinary C-STORE, routing, Lua or prefetch deliveries.
yaml
- AeTitle: PACS
HostName: 10.0.0.5
Port: 104
NodeRole: QueryRetrieve
- AeTitle: STUDY_EXPORT
HostName: localhost # placeholder; no outbound connection is made
Port: 104
NodeRole: Storage
ExportPath: /mnt/study-export # scopedOutput=true adds a job directory
RequireDeliveryScope: true # refuse anything a job is not waiting for
ProcessDelay: 0For a network destination, omit ExportPath and set HostName/Port to the receiving DICOM peer. For example, a Storage node ARCHIVE at 10.0.0.20:104 receives the prepared images by C-STORE. The PACS still sends to Capacitor's prefixed AE, not directly to that peer.
Retrieved instances flow through the normal preparation pipeline (routing, Lua, mutations). Conditions on the destination AE title in routings.yml or lua.yml apply before disk or network delivery. With RequireDeliveryScope: true, unmatched arrivals are refused at C-STORE with status 0124. Without it, unmatched arrivals follow ordinary delivery; on disk they use the root layout.
Bounds in config.yml: retrievalMaxQueued (default 20), retrievalTimeoutMinutes (default 30, maximum wall-clock time for C-MOVE plus delivery), and retrievalRetentionHours (default 24, finished history retained from submission). Expired history does not delete output files or destination data. A restart marks unfinished jobs interrupted; submit a new job to retry. One retrieval runs at a time, with further requests queued. Each has independent tracking; a separate output folder is optional. Cache rebuild checks retained receipt names in memory and restores only matching files. Settlement rereads receipts only when a job changes. Retention checks filenames from expired jobs instead of scanning unrelated cached files; retained-history size still contributes to memory and maintenance cost. History is kept beyond the retention window while corresponding files remain in the cache, preserving their ownership through restart and retry. If an existing retrieval journal cannot be recovered, startup stops rather than sending those files as ordinary traffic. On a fresh installation, failure to create the journal disables HTTP retrieval while ordinary routing remains available (HTTP 503 RETRIEVAL_UNAVAILABLE). A file whose ownership cannot be restored is quarantined with a blocked scope; retrying it does not authorize delivery.
POST /api/query-retrieve/search 🔒
Synchronous study-level C-FIND against a configured QueryRetrieve node. At least one non-wildcard criterion is required.
json
{
"node": "PACS",
"patientId": "MRN123",
"patientName": "DOE*",
"patientBirthDate": "19800102",
"studyDate": "20260101",
"maxResults": 100,
"timeoutSeconds": 30
}Response data: { "studies": [ { "studyInstanceUid", "patientId", "patientName", "patientBirthDate", "studyDate", "studyTime", "studyDescription", "accessionNumber", "modalities": [], "numberOfInstances", "numberOfSeries" } ], "truncated": false }. Cancellation: aborting the HTTP request aborts the DICOM association. Errors: 400 invalid criteria, 404 NODE_NOT_FOUND, 429 SEARCH_BUSY, 502 QUERY_FAILED, 504 QUERY_TIMEOUT.
POST /api/query-retrieve/retrievals 🔒
Starts an asynchronous retrieval of one study to a configured Storage destination and returns immediately.
json
{ "node": "PACS", "studyInstanceUid": "2.25.30334894575057188366172541327372290954", "destination": "STUDY_EXPORT", "scopedOutput": true, "clientRequestId": "request-7f3a" }destinationis required and names a configured Storage AE title. A network example is{ "node": "PACS", "destination": "ARCHIVE", "studyInstanceUid": "1.2.3" }.scopedOutputdefaults to false. For file-backed destinations, true writes beneath a job UUID directory with_manifest.json; false uses the node's normal root layout and has no manifest. Network destinations require false. Tracking and completion checks apply in every case.clientRequestIdis optional. Re-posting the same id with the same body returns the existing job (200); a different body under a reused id is409 CLIENT_REQUEST_CONFLICT.- Returns
202 Acceptedwith aLocationheader for the status URL and the status body below. - Errors:
400invalid UID or node,404 NODE_NOT_FOUND,429 RETRIEVAL_QUEUE_FULL,503 EXPORT_UNAVAILABLE/RETRIEVAL_UNAVAILABLE.
GET /api/query-retrieve/retrievals/{id} 🔒
json
{
"id": "6d0b1c0a-...",
"state": "complete",
"ready": true,
"correlation": "study",
"node": "PACS",
"destination": "STUDY_EXPORT",
"scopedOutput": true,
"studyInstanceUid": "2.25.30334894575057188366172541327372290954",
"outputDirectory": "6d0b1c0a-...",
"upstream": { "completed": 412, "failed": 0, "warning": 0, "remaining": 0, "status": "Success", "terminalResponseReceived": true, "countsPresent": true },
"instances": { "received": 412, "delivered": 412, "warning": 0, "filtered": 0, "failed": 0, "duplicate": 0, "pending": 0 },
"files": [ "1.2.840.../1.2.840.../1.2.840....dcm" ],
"error": null,
"createdAt": "...", "startedAt": "...", "completedAt": "...", "updatedAt": "..."
}For scopedOutput: true, outputDirectory is relative to the destination's ExportPath, and each files entry is relative to that directory. The same status is written atomically as _manifest.json at every terminal state. For unscoped disk output, outputDirectory is null and files entries are relative to ExportPath. For network delivery, files is empty and there is no output directory or manifest. instances.delivered counts successful writes or actual successful C-STORE acknowledgements. A missing C-STORE response is never counted as delivered. instances.duplicate counts only inbound copies discarded before preparation. A destination duplicate refusal counts in instances.warning, with reason duplicate_at_destination; it is not an inbound duplicate or confirmed delivery. Unscoped disk output can overwrite earlier files at the same UID paths. Use scopedOutput: true when each request needs its own retained output directory. A network acknowledgement is not a DICOM storage commitment or a guarantee of long-term archival retention.
States: queued, moving (C-MOVE in progress), finalizing (terminal C-MOVE response received, instances still awaiting delivery outcomes), then one of complete, completeFiltered, partial, failed, cancelled, interrupted.
ready is true only for complete and completeFiltered. It means all of the following were proven, not inferred:
- The PACS returned a terminal C-MOVE response with status Success,
remaining = 0, and no failed or warning sub-operations. - Every C-STORE Capacitor acknowledged on the destination AE for this study was associated with this job before it entered the pipeline.
- Every associated instance reached a final outcome: delivered, or intentionally dropped by a configured filter (
completeFiltered), with no delivery failures or warnings and nothing pending. - The number of distinct delivered/filtered instances is at least the PACS's completed count, and at least one. The PACS must supply the completed sub-operation count (
upstream.countsPresent: true); an omitted count producespartialwithmissing_counts, even if files were received.
Anything else is ready: false with error.code explaining why: missing_terminal, upstream_<status>, upstream_remaining, upstream_suboperations, missing_counts, delivery_failed, delivery_warning, duplicate_at_destination, count_mismatch, no_instances, timeout, manifest_write_failed, cancelled, service_restart, node_missing. A partial job's completed deliveries are retained but must not be treated as a complete study. When scoped disk output is requested, ready: true also requires successful publication of _manifest.json.
correlation records how instances were matched to the job. Matching is by destination AE and Study Instance UID (one retrieval job is active at a time). originator means the PACS populated Move Originator AE Title on its C-STOREs and instances naming another originator are refused; study means it did not. In neither mode does Capacitor assert exact request attribution: a job may additionally include late or retransmitted instances of the same study from a preceding cancelled or timed-out job. Content completeness (the four points above) holds regardless. The sender AE of every instance is recorded in the job journal but not restricted in this version.
GET /api/query-retrieve/retrievals?state=&limit= 🔒
Lists jobs, newest first (limit 1–500, default 50).
POST /api/query-retrieve/retrievals/{id}/cancel 🔒
Idempotent. For an unfinished job, marks it cancelled, stops new tracked sends and requests an abort of the C-MOVE and any active destination association. Late responses never make it ready. Data already accepted by a destination cannot be recalled. With RequireDeliveryScope: true, later arrivals with no active matching job are refused; otherwise they follow ordinary delivery (the root layout on disk). Files already written stay in place; ready remains false. Cancelling an already terminal job returns its existing result.
Limitations. One study per job (submit one job per study). Derived copies created by routing or Lua are not part of the job: they are ordinary untracked deliveries, using the root layout on disk. Destinations with RequireDeliveryScope reject them. Cancellation is an association abort, not a DICOM C-CANCEL. Capacitor does not manage retention of delivered data.
If a network destination refuses a repeated SOP UID with DuplicateSOPInstance, the job stays partial with duplicate_at_destination: the existing instance might differ from the prepared output, so presence alone does not confirm this delivery. This also applies after a lost acknowledgement followed by a retry. Destination overwrite policy determines whether a repeat is accepted. Duplicate-only warnings use duplicate_at_destination; mixed or other warnings use delivery_warning, with both counts in the error message.
Backward-Compatible Endpoints
These endpoints existed before the management API and retain their original response shape (no envelope).
GET /api/queue/stats
json
{ "total": 155, "byState": { "new": 12, "prepared": 130 }, "checkedOut": 3 }GET /api/queue/health
json
{ "status": "ok", "timestamp": "2026-03-22T10:00:00Z" }GET /api/queue/delivery
Returns delivery counters without an envelope.
json
{ "waiting": 127, "checkedOut": 3, "sending": 3, "attention": 13, "success": 1200, "failed": 4, "timedOut": 1, "stallAborts": 0, "abandonedSends": 0, "supervisedRespawns": 0, "networkExhaustions": 0 }waiting counts checked-in prepared items; attention is failed plus rejected. success through networkExhaustions are totals across Storage nodes since the service started. checkedOut and the counters from success onward are available after 4.9.0 (unreleased).
🔒 = requires credentials: the capacitor_session service-password cookie or Authorization: Bearer <token>