Skip to Content

List document links

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

List a document's links to other documents, in both directions.

Link types: AMENDS, REPLACES, RENEWS, RELATES_TO — the from-document acts on the to-document.

Direction: FROM means this document is the acting end of the link; TO means another document links to it.

Links whose other end you don't have access to are omitted. A trashed target is returned with target: null.

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

200

application/json
  1. response
links*array<>
Example Request
curl -X GET 'https://app.sajn.se/api/v1/documents/string/links' \  -H 'authorization: string'
Example Response
{  "links": [    {      "id": "string",      "linkType": "AMENDS",      "direction": "FROM",      "origin": "string",      "createdAt": null,      "target": {        "id": "string",        "name": "string",        "status": "DRAFT",        "workspaceId": "string"      }    }  ]}

Was this page helpful?