Skip to Content

Get document approval status

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}/approval

Get the current approval status for a document. Returns the approval chain (approvers, ordered by stage), the overall status derived from it, and requester information.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string

Header Parameters

authorization*string

Bearer token for API authentication

Response Body

Document approval status

application/json
  1. response

Document approval status

id*string

Approval ID

documentId*string

Document ID

status*string

Overall approval status, derived from the chain: REJECTED if any step was rejected, PENDING if any step is still pending, otherwise APPROVED

Value in"PENDING""APPROVED""REJECTED"
autoSend*boolean

Whether the document is sent automatically once the chain fully approves

approvers*array<>

The ordered approval chain

requestedBy*

The user who submitted for approval

customMessage*|

Custom message for signing invitation

createdAt*unknown

When the approval was requested

Example Request
curl -X GET 'https://app.sajn.se/api/v1/documents/string/approval' \  -H 'authorization: string'
Example Response
{  "id": "string",  "documentId": "string",  "status": "PENDING",  "autoSend": true,  "approvers": [    {      "approverId": "string",      "name": "string",      "email": "string",      "order": 0,      "status": "PENDING",      "comment": "string",      "resolvedAt": null    }  ],  "requestedBy": {    "id": "string",    "firstName": "string",    "lastName": "string",    "email": "string"  },  "customMessage": "string",  "createdAt": null}

Was this page helpful?