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
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.
header
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
id*string200
application/json- response
links*array<>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?