Skip to Content

Download a document file by type

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/{fileType}

Get a download URL for a specific file of a document. The file type is part of the path and is required.

Path Parameters:

  • fileType (ORIGINAL | SIGNED | JOURNAL): Which file to download.
    • ORIGINAL — the unsigned source document (available for all statuses).
    • SIGNED — the signed/sealed copy (document must be COMPLETED).
    • JOURNAL — the signing journal / audit trail (document must be COMPLETED).

Response: Returns a pre-signed URL valid for 15 minutes. The URL provides secure access to the document file.

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

Document ID

fileType*string

Which file to download: the unsigned ORIGINAL, the SIGNED/sealed copy, or the JOURNAL (audit trail).

Value in"ORIGINAL""SIGNED""JOURNAL"

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/ORIGINAL' \  -H 'authorization: string'
Example Response
{  "downloadUrl": "http://example.com"}

Was this page helpful?