Skip to Content
Document content

List the fillable values on a document

GET
/api/v1/documents/{id}/field-values

Lists every value that the sender or a party can fill in on a document, addressed by one key each. The list covers FORM subfields, form fields that are part of an uploaded PDF (AcroForm fields), and input boxes placed on a PDF.

The values are in data. To fill in values, send the keys to PATCH /api/v1/documents/{id}/field-values.

Authorization

headerAuthorizationBearer <token>

API key, e.g. Authorization: Bearer sajn_svc_.... Not scope-limited: acts with its owner's workspace role.

Path Parameters

id*string

The document ID.

Query Parameters

onlyEmpty?boolean

If true, returns only the values that are empty.

Header Parameters

Sajn-Version?string

API version for this request. Without it, the request uses the organization's default version; an organization without a default is pinned to the latest version by its first request.

Value in"2026-09""2026-10"
Sajn-Workspace?string

ID of the workspace this request acts in, from GET /api/v1/workspaces. Without it, an API key acts in its default workspace. The token's user must be a member of the workspace; an OAuth token only accepts the workspace it was granted for. A workspace that doesn't exist or can't be reached returns 403 WORKSPACE_ACCESS_DENIED.

Response Body

200

application/json
  1. response
data*array<>
hasMore*false

Always false: the list returns every item in one response.

Defaultfalse
Value infalse
nextCursor*null

Always null: the list returns every item in one response.

Defaultnull
Example Request
curl -X GET 'https://app.sajn.se/api/v1/documents/cm4k2x9p10003abcd1234efgh/field-values'
Example Response
{  "data": [    {      "key": "startdatum",      "label": "Startdatum",      "kind": "FORM",      "fieldId": "cm4k2x9p10009abcd1234efgh",      "type": "Anställningsavtal – Kai Lindqvist",      "required": true,      "options": [        "Heltid"      ],      "value": "540000",      "filledBy": "SENDER",      "partyId": "cm4k2x9p10004abcd1234efgh"    }  ],  "hasMore": false,  "nextCursor": null}

Was this page helpful?