Documents

Option Value List

Markdown for LLMs
GET
/documents/option/{entityType}/{entityId}/list

Returns every option value set on one document solution configuration.

This operation does not page. It returns the entity's complete set of option values in one response, and the pagination object it carries describes that single response rather than a position in a longer result: count, pageSize and totalCount are all the same number, and there is never a next page. top and skip are not accepted.

Each option value names the option it sets twice: by optionDefinitionId, the id of its entry in documents-option-definition-list, and by effectiveKey, that definition's key. The same options appear on a document solution configuration as the optionValues map, keyed by that same optionDefinitionId.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

entityType*"DocumentSolutionConfiguration"

Type of the record the option values belong to. Must be DocumentSolutionConfiguration — options are set only on document solution configurations. Case-sensitive, and sent exactly as spelled here.

Value in

  • "DocumentSolutionConfiguration"
entityId*string

Id of the document solution configuration whose option values are returned — the id returned by documents-configuration-create.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/documents/option/DocumentSolutionConfiguration/7d33384a-1ff2-4d15-8fe0-2247e455ecd7/list"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "optionValues": [        {          "id": "e12c49cf-c899-4f6e-bffd-9cecfbf384ef",          "entityType": "DocumentSolutionConfiguration",          "entityId": "7d33384a-1ff2-4d15-8fe0-2247e455ecd7",          "optionDefinitionId": "8d254f60-aa38-4509-87de-74fa14702764",          "value": "150",          "effectiveKey": "pdf_image_dpi",          "effectiveGroup": "pdf",          "systemType": "number",          "createdDate": "2026-09-28T09:14:22.000Z",          "lastModifiedDate": "2026-09-28T09:14:22.000Z"        },        {          "id": "3c7f0b91-2d84-4e6a-9f15-6b0c8e2a4d73",          "entityType": "DocumentSolutionConfiguration",          "entityId": "7d33384a-1ff2-4d15-8fe0-2247e455ecd7",          "optionDefinitionId": "fd4d6425-a871-4bcd-8f16-a088146bd924",          "value": "PdfA2b",          "effectiveKey": "pdf_compliance",          "effectiveGroup": "pdf",          "systemType": "list",          "createdDate": "2026-09-28T09:14:22.000Z",          "lastModifiedDate": "2026-09-28T09:14:22.000Z"        }      ],      "pagination": {        "currentPage": 1,        "count": 2,        "pageSize": 2,        "totalCount": 2,        "hasNext": false,        "hasPrevious": false      }    }  },  "origin": "GET https://api.doctavian.com/v1/documents/option/{entityType}/{entityId}/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/{entityType}/{entityId}/list",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}
Empty
{  "error": {    "statusCode": 500,    "message": "An unexpected error occurred.",    "innerErrors": [      {        "code": "GET_OPTION_VALUE_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/{entityType}/{entityId}/list",  "dateTime": "2026-09-28T09:14:22.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "e9954e98a24941278d6742af639eddde"}