Skip to Content

List document fields

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

List the content blocks of a document in position order, with full type-specific metadata.

For PDF fields, fieldMeta.placedFields holds the boxes placed on the PDF pages (signature and initials marks, signer inputs, fixed text) with their page and coordinates, and fieldMeta.formFields holds form fields extracted from the PDF itself. See the field placement guide for the coordinate model.

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
fields*array<>

Fields in position order

Example Request
curl -X GET 'https://app.sajn.se/api/v1/documents/string/fields' \  -H 'authorization: string'
Example Response
{  "fields": [    {      "id": "string",      "documentId": "string",      "templateId": "string",      "type": "TEXT",      "position": 0,      "fieldMeta": {        "type": "TEXT",        "content": "string",        "locked": true,        "sectionStyle": {          "background": "none",          "padding": "none",          "bleed": true,          "border": true        },        "visibilityRule": {          "customInputId": "string",          "equals": "string",          "mode": "SHOW_WHEN"        },        "hidden": true      },      "createdAt": null,      "updatedAt": null    }  ]}

Was this page helpful?