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
| Step | Endpoint |
|---|---|
| 1. Get a token | POST /auth/token |
| 2. Create an order | POST /new-order, which returns the order ID used in every later call |
| 3. Upload the study | GET /upload/single-put (under 5 MB) or POST /upload/multipart/* (5 MB and up) |
| 4. Check status | GET /status, until the order reaches a final status |
| 5. Download the report | GET /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 metadataGET /list-orders: list your ordersPATCH /cancel-order: cancel an order in progressPOST /new-batch: group orders for an aggregated reportPATCH /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.
| Environment | Base URL | Use |
|---|---|---|
| Production | https://api.neuropacs.com/v1 | Live clinical data |
| Sandbox | https://d1dl1uoy9jq97u.cloudfront.net/v1 | Integration 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
.bvaland.bvecfiles. 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
| Status | Final | Meaning |
|---|---|---|
RECEIVED | No | Upload received |
QUEUED | No | Waiting to be processed |
PENDING | No | Pending |
ELIGIBILITY_CHECK_RUNNING | No | Quality control in progress |
QC_PASSED | No | Passed quality control |
QC_FAILED | Yes, unless bypassed | Failed quality control; a bypass can be requested |
QC_BYPASS | No | QC failure bypassed by the user |
PREPROCESSING | No | Processing |
PREPROCESSING_FAILED | Yes | Processing failed |
ANALYSIS_RUNNING | No | Analysis running |
IN_REVIEW | No | Waiting on a manual review |
DELIVERED | Yes | Results ready |
FAILED | Yes | Order failed |
CANCELLED | Yes | Cancelled by the user |
EXPIRED | Yes | Expired 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
429and5xxresponses with exponential backoff. On401, get a new token and retry once. Don't retry other4xxerrors unchanged.
Limits and Versioning
| Limit | Value |
|---|---|
| Request rate | 2,000 per IP address/minute |
| Requests per endpoint | 600 per minute |
| Maximum study size | 10 GB |
| Concurrent uploads | 100 |
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 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. 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 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 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. 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.Upload Reliability and Stricter Upload Checks
file_name request field is still accepted but is no longer used, so existing integrations and installed agents keep working without changes./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./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.Custom Domain and Compressed Responses
api.neuropacs.com with a TLS 1.2 minimum, can send compressed responses, and adds standard security headers to every response.
api.neuropacs.com. Connections to it require TLS 1.2 or later.Accept-Encoding header for gzip or Brotli can now receive compressed JSON responses. API responses are still never cached.Strict-Transport-Security and X-Content-Type-Options: nosniff.Agent Sign-In Fix
localhost.
localhost are no longer rejected.Support Tickets, Delivery Tracking and QC Bypass Changes
/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.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.POST /v1/agent/jobs to record processing jobs the agent runs locally.QC_FAILED.Product Report Labeling, Upload De-identification and Token Validation Updates
metadata.association_fields, for matching results to the patient, study and order.
Last updated: November 10, 2026