ATHENA PROD
Download document
Download document in Athena Prod
POSThttps://api.ontross.com/api/integrations/athena-prod/download-document
Request Fields
input.org_id
integer
requiredOrg id
Example
25910input.department_id
integer
requiredDepartment id
Example
3input.patient_id
integer
requiredPatient id
Example
596input.document_id
string
requiredSource identifiers remain strings.
Example
"61248"auth_id
string
requiredSaved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"Output Fields
document_id
string
Source identifiers remain strings.
patient_id
string
Source identifiers remain strings.
filename
string
Filename
content_type
string
Content type
size_bytes
integer
Size bytes
sha256
string
Sha256
content_base64
string
Original bytes, maximum 50 MiB before encoding. Returned to the authorized caller and redacted from persisted run output.
Code
curl --request POST \
--url https://api.ontross.com/api/integrations/athena-prod/download-document \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"org_id":25910,"department_id":3,"patient_id":596,"document_id":"61248"},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"org_id": 25910,
"department_id": 3,
"patient_id": 596,
"document_id": "61248"
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"document_id": "string",
"patient_id": "string",
"filename": "string",
"content_type": "string",
"size_bytes": 0,
"sha256": "string",
"content_base64": "string"
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}