Documents

Option Definition List

Markdown for LLMs
GET
/documents/option/definition/list

Returns the option definitions: the catalogue of every configurable option, with its key, how it is typed, its default and — for a choice — the values it accepts.

This is the starting point for setting an option. List the definitions, pick one, and set it on a document solution configuration through options on documents-configuration-create or documents-configuration-update, naming the definition by its id and giving the value as a string — one of the value entries from allowedValues when the type is Select or List, or entered freely when it is not. Read the resulting option values back with documents-option-list, where each one names its option by effectiveKey, which is the definition's key.

Definitions are maintained by Doctavian: they are read-only and there is no operation to create or change one.

Options are set only on document solution configurations. optionGroup groups the definitions by output format and delivery target.

Page with top and skip, and read pagination inside result.data.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Query Parameters

top?integer

Maximum number of records to return — the page size. Optional; the server applies its own default when omitted.

skip?integer

How many records to skip before the page begins — the offset. Optional; defaults to 0. Combine with top to page: the third page of 25 is top=25&skip=50.

orderby?string

Sort clause as Column|DIRECTION with a literal pipe between the two, for example Name|DESC. DIRECTION is ASC or DESC. Optional.

filter?string

Filter clauses as a URL-encoded JSON array, each entry { key, column, type, condition, value }. Optional; omit it to return everything.

Decoded, one clause looks like [{"key":"Filter1","column":"Name","type":"string","condition":"CONTAINS","value":"Invoice"}]. Several clauses narrow the result further.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/documents/option/definition/list?top=25&skip=50&orderby=Name%7CDESC&filter=%255B%257B%2522key%2522%253A%2522Filter1%2522%252C%2522column%2522%253A%2522Name%2522%252C%2522type%2522%253A%2522string%2522%252C%2522condition%2522%253A%2522CONTAINS%2522%252C%2522value%2522%253A%2522Invoice%2522%257D%255D"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "optionDefinitions": [        {          "id": "fd4d6425-a871-4bcd-8f16-a088146bd924",          "lastModifiedUserId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",          "key": "pdf_compliance",          "label": "PDF Compliance Level",          "type": "List",          "defaultValue": "none",          "description": "Select the archival compliance standard.",          "optionGroup": "pdf",          "allowedValues": [            {              "id": "90f6739b-ddb6-43b1-9bcb-cad48053c89e",              "value": "none",              "label": "None",              "description": "No specific conformance"            },            {              "id": "8d9843ff-25ed-43de-8a30-aee35f2ef87d",              "value": "PdfA2a",              "label": "PDF/A-2a",              "description": "PDF/A-2a standard"            }          ],          "createdDate": "2026-09-28T09:14:22.000Z",          "lastModifiedDate": "2026-09-28T09:14:22.000Z"        }      ],      "pagination": {        "currentPage": 1,        "count": 1,        "pageSize": 50,        "totalCount": 32,        "hasNext": true,        "hasPrevious": false      }    }  },  "origin": "GET https://api.doctavian.com/v1/documents/option/definition/list",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}
{  "error": {    "statusCode": 401,    "message": "The request could not be authenticated.",    "innerErrors": [      {        "code": "UNAUTHORIZED",        "message": "The request could not be authenticated.",        "userMessage": "Your session has expired or is invalid. Please sign in again."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/option/definition/list",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}
{  "error": {    "statusCode": 500,    "message": "An unexpected error occurred.",    "innerErrors": [      {        "code": "GET_OPTION_DEFINITION_LIST_ERROR",        "message": "An unexpected error occurred.",        "userMessage": "Something went wrong. Please try again or contact support."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/documents/option/definition/list",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}