Skip to main content
RiskProfile Documents

Download an attached document

Streams original file bytes. Requires download permission and current-team ownership. The media must belong to the specified RiskProfile documents collection. Use the URL returned by the upload response with the same bearer token.

GET
/api/risk-profiles/{riskProfile}/documents/{media}/download
Authorizationstringheaderrequired

Laravel Sanctum API token.

riskProfileintegerrequired

RiskProfile ID.

Example: 123
mediaintegerrequired

Attached document media ID.

Example: 456

Response

application/pdf

Original file bytes with stored MIME type.

Content-Dispositionstringheader

Inline disposition with filename.

bodystring