Skip to main content
GET
/
api
/
v1
/
documents
/
{id}
Get a document by ID
curl --request GET \
  --url https://app.sajn.se/api/v1/documents/{id} \
  --header 'authorization: <authorization>'
{
  "id": "<string>",
  "name": "<string>",
  "status": "<string>",
  "createdAt": "<unknown>",
  "updatedAt": "<unknown>",
  "signers": [
    {
      "id": "<string>",
      "documentId": "<string>",
      "name": "<string>",
      "signedAt": "<string>",
      "email": "jsmith@example.com",
      "phone": "<string>",
      "companyName": "<string>",
      "companyRole": "<string>",
      "companyOrgNumber": "<string>",
      "externalId": "<string>",
      "companyId": "<string>",
      "ssn": "<string>",
      "country": "<string>",
      "signingOrder": 123
    }
  ],
  "parties": [
    {
      "id": "<string>",
      "documentId": "<string>",
      "name": "<string>",
      "signedAt": "<string>",
      "email": "jsmith@example.com",
      "phone": "<string>",
      "companyName": "<string>",
      "companyRole": "<string>",
      "companyOrgNumber": "<string>",
      "externalId": "<string>",
      "companyId": "<string>",
      "ssn": "<string>",
      "country": "<string>",
      "signingOrder": 123
    }
  ],
  "externalId": "<string>",
  "expiresAt": "<string>",
  "documentMeta": {
    "subject": "<string>",
    "message": "<string>",
    "forceReadFullDocument": true,
    "showChatToSigners": true,
    "value": "<string>",
    "redirectUrl": "<string>",
    "redirectEnabled": true
  },
  "completedAt": "<string>",
  "tags": [
    {
      "id": "<string>",
      "name": "<string>",
      "color": "<string>"
    }
  ],
  "customFields": [
    {
      "id": "<string>",
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "fields": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.sajn.se/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string
required

Bearer token for API authentication

Path Parameters

id
string
required

Response

200

id
string
required

Unique document identifier

name
string
required

Document name/title

status
string
required

Document status: DRAFT, SENDING, PENDING, COMPLETED, EXPIRED, CANCELLED, or IMPORTED

createdAt
any
required

Date and time when the document was created

updatedAt
any
required

Date and time when the document was last updated

signers
object[]
required

[DEPRECATED — use parties instead, will be removed in API v2] Array of document signers. Same content as parties.

parties
object[]
required

Array of document parties (signers and other participants).

externalId
string | null

Your external reference ID for this document

expiresAt
string | null

Date and time when the document expires

documentMeta
object

Document metadata including subject, message, signing order, etc.

completedAt
string | null

Date and time when all signers completed signing

tags
object[]
customFields
object[]
fields
string[]