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>",
  "externalId": "<string>",
  "expiresAt": "<any>",
  "name": "<string>",
  "status": "<string>",
  "documentMeta": {
    "subject": "<string>",
    "message": "<string>",
    "signingOrder": "PARALLEL",
    "defaultSignatureType": "DRAWING",
    "distributionMethod": "EMAIL",
    "forceReadFullDocument": true,
    "showCommentsToSigners": true,
    "preferredLanguage": "sv",
    "validFrom": "<any>",
    "validTo": "<any>",
    "value": "<string>"
  },
  "createdAt": "<any>",
  "updatedAt": "<any>",
  "completedAt": "<any>",
  "signers": [
    {
      "id": "<string>",
      "documentId": "<string>",
      "email": "jsmith@example.com",
      "name": "<string>",
      "phone": "<string>",
      "companyName": "<string>",
      "companyRole": "<string>",
      "companyOrgNumber": "<string>",
      "externalId": "<string>",
      "companyId": "<string>",
      "ssn": "<string>",
      "role": "SIGNER",
      "signingOrder": 123,
      "token": "<string>",
      "signedAt": "<any>",
      "readStatus": "NOT_OPENED",
      "signingStatus": "NOT_SIGNED",
      "signingUrl": "<string>"
    }
  ],
  "tags": [
    {
      "id": "<string>",
      "name": "<string>",
      "color": "<string>"
    }
  ],
  "customFields": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "TEXT",
      "value": "<string>"
    }
  ]
}

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
externalId
string | null

Your external reference ID for this document

expiresAt
any

Date and time when the document expires

documentMeta
object | null

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

completedAt
any

Date and time when all signers completed signing

tags
object[]
customFields
object[]
I