Skip to main content

REST API

Build Neuropacs analysis into your own software with a simple, OAuth2-secured REST API.

The REST API lets your applications create orders, upload imaging straight to secure cloud storage, track progress, and download results over standard HTTPS. It works with any HTTP client and is firewall-friendly.

Standard HTTPS

Plain REST calls from any language or HTTP client. No special software.

Secure by default

Short-lived OAuth2 tokens, role-based access, and time-limited presigned upload URLs.

Built for large studies

Multipart uploads handle studies up to 10 GB, with chunks sent in parallel.

Results your way

Human-readable PDF and PNG, or machine-readable JSON, XML, and text.

Batch reporting

Group related orders and get one aggregated report for the batch.

Sandbox included

Test your integration end to end with non-PHI data before going live.

How It Works​

StepEndpoint
1. Get a tokenPOST /auth/token
2. Create an orderPOST /new-order, which returns the order ID used in every later call
3. Upload the studyGET /upload/single-put (under 5 MB) or POST /upload/multipart/* (5 MB and up)
4. Check statusGET /status, until the order reaches a final status
5. Download the reportGET /results, or GET /failure-report if processing failed

Finishing the upload starts processing automatically. Also available:

  • PATCH /add-metadata: add or correct an order's metadata
  • GET /list-orders: list your orders
  • PATCH /cancel-order: cancel an order in progress
  • POST /new-batch: group orders for an aggregated report
  • PATCH /qc-bypass: request a QC bypass for an order that failed QC
  • /support/tickets: open and follow support requests

Getting Started​

1. Request access. API access is set up per organization. Contact support@neuropacs.com to receive credentials for a service account or a named user. You can rotate credentials yourself in the Web Portal.

2. Pick an environment. All paths are relative to the base URL.

EnvironmentBase URLUse
Productionhttps://api.neuropacs.com/v1Live clinical data
Sandboxhttps://d1dl1uoy9jq97u.cloudfront.net/v1Integration testing with non-PHI data

Production connections require TLS 1.2 or later. The previous production address, https://d1nxuh43hp41jj.cloudfront.net/v1, keeps working, so existing integrations don't need changes.

3. Authenticate. Exchange your client credentials for a Bearer token, valid for one hour, and send it in the Authorization header of every call. GET /test-token checks a token without side effects.

curl -X POST "$BASE_URL/auth/token" \
-u "$CLIENT_ID:$CLIENT_SECRET" \
-d "grant_type=client_credentials"

Uploads and Metadata​

  • Accepted files: Individual DICOM files, or a ZIP archive of a DICOM study or of NIfTI data with its .bval and .bvec files. Imaging must meet the Technical Specifications.
  • Multipart uploads: 5–100 MB chunks (10 MB recommended), up to 100 chunks, uploaded in parallel.
  • Presigned URLs: Expire after one hour and need no token. Anyone holding one can upload to it, so never log or share them.
  • Metadata: Supply it through the API, in DICOM tags, or in a JSON sidecar. Values sent through the API take precedence.

Status and Results​

Check status about every 5 minutes. Processing typically takes 2–3 hours, and each order ends in a final status such as DELIVERED, FAILED, or QC_FAILED.

All status values
StatusFinalMeaning
RECEIVEDNoUpload received
QUEUEDNoWaiting to be processed
PENDINGNoPending
ELIGIBILITY_CHECK_RUNNINGNoQuality control in progress
QC_PASSEDNoPassed quality control
QC_FAILEDYes, unless bypassedFailed quality control; a bypass can be requested
QC_BYPASSNoQC failure bypassed by the user
PREPROCESSINGNoProcessing
PREPROCESSING_FAILEDYesProcessing failed
ANALYSIS_RUNNINGNoAnalysis running
IN_REVIEWNoWaiting on a manual review
DELIVEREDYesResults ready
FAILEDYesOrder failed
CANCELLEDYesCancelled by the user
EXPIREDYesExpired and can no longer be retrieved

Report types: PDF, PNG, JSON, XML, and TXT. Any of them can be embedded in DICOM Encapsulated PDF, DICOM SR, HL7v2, or HL7 FHIR for your downstream systems.

Batches: Create a batch with POST /new-batch, attach orders that use the same products with PATCH /associate-order-to-batch, and download the aggregated report with GET /report. Keep the batch ID; it's the only way to retrieve that report.

Good Practices​

  • Reuse each token until shortly before it expires, and never put credentials or tokens in client-side code.
  • Use the order ID rather than the Study Instance UID when you have it. It always identifies exactly one order.
  • Abort multipart uploads you can't finish (POST /upload/multipart/abort), so no order is left waiting.
  • Retry 429 and 5xx responses with exponential backoff. On 401, get a new token and retry once. Don't retry other 4xx errors unchanged.

Limits and Versioning​

LimitValue
Request rate2,000 per IP address/minute
Requests per endpoint600 per minute
Maximum study size10 GB
Concurrent uploads100

The API version is part of the path (/v1). New endpoints and optional fields can appear within a version, so integrations should ignore fields they don't recognize. Breaking changes ship as a new version, with at least 30 days' notice through the X-API-Deprecation-Warning response header. A retired version returns 410 Gone.

Security​

  • Scoped, short-lived OAuth2 Bearer tokens and role-based access control
  • Write-only presigned URLs, each limited to a single object
  • Encryption in transit and at rest
  • Audit logs of URL issuance and upload events

See Security & Regulatory Compliance for details.

Ready to build?

Contact support@neuropacs.com for API credentials and the OpenAPI specification, which documents every endpoint's parameters and responses.

Release History​

Showing 1–5 of 7 releases

Upload Reliability and Stricter Upload Checks

v1.2.3
Release

The Neuropacs REST API now accepts non-English file names, handles repeated upload completions and late cancellations gracefully, and checks more strictly that each multipart upload belongs to your order.

The Neuropacs REST API now accepts non-English file names, handles repeated upload completions and late cancellations gracefully, and checks more strictly that each multipart upload belongs to your order.

  • Uploads whose ZIP file or folder name contains accented or other non-English characters no longer fail when they start. The file_name request field is still accepted but is no longer used, so existing integrations and installed agents keep working without changes.
  • Calling /v1/upload/multipart/complete again for an upload that already finished now returns success instead of an error, so it's safe to retry that call after a network failure.
  • Calling /v1/upload/multipart/abort for an upload that already completed now returns 200 with already_completed: true and success: false, instead of a server error.
  • /v1/upload/multipart/presigned-urls, /complete and /abort now return 403 Forbidden if the upload doesn't belong to one of your orders.
  • Part URLs and upload completion are only available while the order is still waiting for data. You can abort an upload whatever the order's status, so leftover parts of a cancelled or failed order can still be discarded.

Custom Domain and Compressed Responses

v1.2.2
Release

The Neuropacs REST API can now be reached on api.neuropacs.com with a TLS 1.2 minimum, can send compressed responses, and adds standard security headers to every response.

The Neuropacs REST API can now be reached on api.neuropacs.com with a TLS 1.2 minimum, can send compressed responses, and adds standard security headers to every response.

  • The API can now be served on api.neuropacs.com. Connections to it require TLS 1.2 or later.
  • The current API address keeps working, so installed agents, existing integrations and site firewall allowlists don't need changes.
  • Clients that send an Accept-Encoding header for gzip or Brotli can now receive compressed JSON responses. API responses are still never cached.
  • Every response now includes standard security headers, including Strict-Transport-Security and X-Content-Type-Options: nosniff.

Agent Sign-In Fix

v1.2.1
Release

The Neuropacs REST API no longer rejects agent sign-ins that use an IP address or localhost.

The Neuropacs REST API no longer rejects agent sign-ins that use an IP address or localhost.

  • Agent sign-in requests whose callback address uses an IP address or localhost are no longer rejected.
  • Existing integrations keep working without changes.

Support Tickets, Delivery Tracking and QC Bypass Changes

v1.2.0
Release

The Neuropacs REST API adds endpoints for support requests and for agent result delivery and processing records, adds optional status details, and limits QC bypass to orders that failed QC.

The Neuropacs REST API adds endpoints for support requests and for agent result delivery and processing records, adds optional status details, and limits QC bypass to orders that failed QC.

  • Added support request endpoints under /v1/support/tickets to open a request, view its thread, reply, and follow its status. Requesting a ticket you are not allowed to view returns 404.
  • PATCH /v1/qc-bypass now accepts a new bypass only for orders in QC_FAILED. Any other status returns 400 VALIDATION_ERROR and records nothing. A bypass can still be withdrawn before the QC verdict, and bypasses already recorded are still honored. This endpoint is now included in the API reference.
  • PATCH /v1/update-status accepts optional occurred_at, reason_code and stage fields. occurred_at cannot be later than the time the update is received.
  • Added POST /v1/agent/deliveries to record the delivery of each product's results to PACS/EHR destinations. A delivery report that arrives out of order never overwrites a newer one.
  • Added POST /v1/agent/jobs to record processing jobs the agent runs locally.
  • Agent heartbeats accept an optional error code, and orders created by an agent now record which agent created them.
  • Every new field is optional, so integrations that don't use them keep working without changes. The exception is QC bypass: integrations that created a bypass before the QC verdict must now wait until the order is in QC_FAILED.

Product Report Labeling, Upload De-identification and Token Validation Updates

v1.1.0
Release

The Neuropacs API now provides report labeling details in the products catalog, applies the on-premises agent's de-identification profile to cloud uploads, and strengthens access token validation.

The Neuropacs API now provides report labeling details in the products catalog, applies the on-premises agent's de-identification profile to cloud uploads, and strengthens access token validation.

  • The products API now returns each product's latest version, disclaimer and report category, along with a global report code system. Connected applications can use these to label and code delivered DICOM, HL7v2 and FHIR reports.
  • Orders can now include optional DICOM association fields, stored under metadata.association_fields, for matching results to the patient, study and order.
  • Cloud uploads now apply the same DICOM de-identification profile as the Neuropacs on-premises agent, so data is protected the same way however it is submitted.
  • JSON sidecar files are now de-identified before storage. Acquisition parameters needed for eligibility checks and analysis are kept.
  • Strengthened access token validation. Valid tokens issued by the platform work as before.
  • Single sign-on is supported through the web portal. API clients keep signing in with standard account credentials, and accounts linked to an identity provider can still use the API.

Last updated: November 10, 2026