Download a document file
You're viewing API version
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.GET
Get a download URL for a document.
Query Parameters:
fileType(ORIGINAL | SIGNED | JOURNAL, optional): Which file to download. Defaults to SIGNED.
For new integrations prefer GET /api/v1/documents/:id/download/:fileType, which requires the file type explicitly.
Response: Returns a pre-signed URL valid for 15 minutes. The URL provides secure access to the document file.
Status Requirements:
- SIGNED / JOURNAL: Document must be in COMPLETED status
- ORIGINAL: Available for all document statuses
Returns 404 if the requested file does not exist for this document.
header
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
id*stringDocument download response
application/json- response
Document download response
downloadUrl*stringPre-signed URL for downloading the document (valid for 1 hour)
Format
uricurl -X GET 'https://app.sajn.se/api/v1/documents/string/download' \ -H 'authorization: string'Example Response
{ "downloadUrl": "http://example.com"}Was this page helpful?