Tross
DSN-ATLAS

Upload document

Attach one PDF to a patient and verify attachment metadata after upload.

POSThttps://api.ontross.com/api/integrations/dsn-atlas/upload-document

Upload a file

Send multipart/form-data with auth_id, input serialized as JSON text, and exactly one original file in files. Let your HTTP client set the Content-Type boundary. In Try it, select a connection, fill in the input fields and choose the file.

The file must be non-empty and no larger than 50 MiB. Use the provider’s input fields below to select the patient and document destination.

Request Fields
auth_id
string
required
Saved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
input.patient_id
integer
required
Numeric record identifier obtained from a scheduled appointment.
Example
1
input.file_category_id
integer
required
An attachment category ID configured by this practice.
Example
1
input.description
string
required
Human-readable label stored with the uploaded PDF attachment.
Example
"Insurance benefit summary for November 2026"
files
file
required
Exactly one original document file; send its bytes, not a path or base64 string.
Output Fields
attachment_id
integer
New document identifier returned by the upload response.
Example
936284
patient_id
integer
Requested person's numeric record identifier echoed after successful upload.
Example
784231
metadata_verified
boolean
Confirmation that attachment attributes matched and file content was present.
Example
true
Code
curl 'https://api.ontross.com/api/integrations/dsn-atlas/upload-document' \
  -H 'X-API-Key: YOUR_API_KEY' \
  --form-string 'auth_id=YOUR_AUTH_ID' \
  --form-string 'input={"patient_id":1,"file_category_id":1,"description":"Insurance benefit summary for November 2026"}' \
  -F 'files=@document.pdf;type=application/pdf'
input form field (JSON)
{
  "patient_id": 1,
  "file_category_id": 1,
  "description": "Insurance benefit summary for November 2026"
}
Response BODY
{
  "id": "string",
  "workflow_id": "string",
  "auth_id": "string",
  "status": "string",
  "input": {},
  "output": {
    "attachment_id": 936284,
    "patient_id": 784231,
    "metadata_verified": true
  },
  "files": null,
  "created_at": "2019-08-24T14:15:22Z",
  "started_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z"
}