Skip to Content

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
/api/v1/documents/{id}/download

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.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string

Query Parameters

Header Parameters

authorization*string

Bearer token for API authentication

Response Body

Document download response

application/json
  1. response

Document download response

downloadUrl*string

Pre-signed URL for downloading the document (valid for 1 hour)

Formaturi
Example Request
curl -X GET 'https://app.sajn.se/api/v1/documents/string/download' \  -H 'authorization: string'
Example Response
{  "downloadUrl": "http://example.com"}

Was this page helpful?