Skip to content

Download a report

GET /api/Subjects/{subjectId}/downloadBackgroundReport

Send your private API key in the X-Api-Key header. Keep it on your server.

Examples use illustrative values. Set FERRETLY_API_KEY in your server environment for JavaScript, Python, and C#. Replace sample IDs, URLs, and profile values before use.

Terminal window
curl --fail -sS -X GET "https://api.ferretly.com/api/Subjects/11111111-1111-4111-8111-111111111111/downloadBackgroundReport" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Accept: application/octet-stream" \
-o report.bin
NameInRequiredTypeDescription
subjectIdpathYesstring (uuid)

Success

  • application/octet-stream: string (binary)

The subject does not have a current background report, or it is being regenerated

Subject not found, or report file could not be located in Blob Storage

Save the response as a binary file. The filename and report availability are described in Results and reports.