Get the file of a report section
/care/v1/report/{report_id}/section/{section_id}/file/get/documentreport:readBAA requiredReturns a link to the file of an image or pdf section of a report (the sections with
has_file: true). The link works for a short time only: fetch the file at once and do not
store the link. Ask again when you need the file again.
Answers 404 for a report your company has no access to, a section the specialist did not
share, and a section without a file; 409 connection_not_active when the patient's connection
with your company was revoked; 403 connection_scope_not_granted when the patient does not
share reports.
Needs the report:read scope.
Path parameters
report_idstringrequiredThe ID of the report.
Min length 1 · Max length 200 · Pattern ^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$
section_idstringrequiredThe ID of the section whose file to read.
Min length 1 · Max length 200 · Pattern ^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$
Response 200
urlstringrequiredThe time-limited link to the file. It stops working after a short time: ask for a new one when you need the file again.
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
403 | connection_scope_not_granted | The connection does not hold the care.reports scope. |
403 | scope_not_granted | This API key does not have the report:read scope. |
404 | not_found | The requested resource was not found. |
409 | connection_not_active | The connection is not active. |
422 | validation_error | path.report_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$' |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |