List document files
Lists the files of a document that are ready to download, each with a pre-signed URL that works for 15 minutes.
ORIGINAL: the unsigned source document, after the document is sent and sajn has generated the PDF. It's ready whendocument.sentfires. For a QES document, and for some documents where a party picks products, sajn generates it after the parties have filled in their fields. A draft has noORIGINAL.SIGNED: the signed and sealed copy, after the document is completed and sealed.JOURNAL: the signing journal (audit trail), after the document is completed.
A file that isn't ready yet isn't listed. Every URL in the response counts as a download in the document's audit trail.
AuthorizationBearer <token>API key, e.g. Authorization: Bearer sajn_svc_.... Not scope-limited: acts with its owner's workspace role.
id*stringThe document ID.
Sajn-Version?stringAPI version for this request. Without it, the request uses the organization's default version; an organization without a default is pinned to the latest version by its first request.
"2026-09""2026-10"Sajn-Workspace?stringID of the workspace this request acts in, from GET /api/v1/workspaces. Without it, an API key acts in its default workspace. The token's user must be a member of the workspace; an OAuth token only accepts the workspace it was granted for. A workspace that doesn't exist or can't be reached returns 403 WORKSPACE_ACCESS_DENIED.
200
application/json- response
data*array<>hasMore*falseAlways false: the list returns every item in one response.
falsefalsenextCursor*nullAlways null: the list returns every item in one response.
nullcurl -X GET 'https://app.sajn.se/api/v1/documents/cm4k2x9p10003abcd1234efgh/files'{ "data": [ { "type": "ORIGINAL", "url": "https://files.sajn.se/files/anstallningsavtal-kai-lindqvist.pdf", "expiresAt": "2026-10-28T22:00:00.000Z" } ], "hasMore": false, "nextCursor": null}Was this page helpful?