Skip to main content
GET
/
api
/
v1
/
documents
/
{id}
/
approval
Get document approval status
curl --request GET \
  --url https://app.sajn.se/api/v1/documents/{id}/approval \
  --header 'authorization: <authorization>'
{
  "id": "<string>",
  "documentId": "<string>",
  "approver": {
    "id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>"
  },
  "requestedBy": {
    "id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>"
  },
  "resolvedBy": {
    "id": "<string>",
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>"
  },
  "comment": "<string>",
  "customMessage": "<string>",
  "createdAt": "<unknown>",
  "resolvedAt": "<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

Document approval status

Document approval status

id
string
required

Approval ID

documentId
string
required

Document ID

status
enum<string>
required

Approval status

Available options:
PENDING,
APPROVED,
REJECTED
approver
object
required

The designated approver

requestedBy
object
required

The user who submitted for approval

resolvedBy
object
required

A workspace member eligible to approve documents

comment
string | null
required

Comment from the approver

customMessage
string | null
required

Custom message for signing invitation

createdAt
any
required

When the approval was requested

resolvedAt
string | null
required

When the approval was resolved