Common
GET
/common/folder/list

Lists the caller's folders of one kind, in one response: it is not paged. Send the kind as folderEntityId — ENVELOPE_TEMPLATES, DOCUMENT_SOLUTIONS, DATA_SOURCES or DOCUMENT_TEMPLATES. It is matched without regard to case and is mandatory: leaving it out is answered by the gateway with 404 NOT_FOUND, and an empty or unrecognized value is rejected with 400 MISSING_QUERY_PARAMETERS. Only folders created for that kind are returned.

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

folderEntityId*string

The kind of record the folders hold: ENVELOPE_TEMPLATES, DOCUMENT_SOLUTIONS, DATA_SOURCES or DOCUMENT_TEMPLATES. Matched without regard to case. Mandatory: a request without it matches no operation and is answered with 404 NOT_FOUND from the gateway, and an empty or unrecognized value is rejected with 400 MISSING_QUERY_PARAMETERS.

Value in

  • "ENVELOPE_TEMPLATES"
  • "DOCUMENT_SOLUTIONS"
  • "DATA_SOURCES"
  • "DOCUMENT_TEMPLATES"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/common/folder/list?folderEntityId=DATA_SOURCES"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "folders": [        {          "id": "92d62501-d227-4d9a-93b2-e904907bf981",          "name": "Q3 Financial Contracts",          "folderEntityId": "DATA_SOURCES"        },        {          "id": "9c4e2a7b-1d3f-4b6a-8e5c-7f0a1b2c3d4e",          "name": "Signed NDAs",          "folderEntityId": "DATA_SOURCES"        }      ]    }  },  "origin": "GET https://api.doctavian.com/v1/common/folder/list",  "dateTime": "2026-10-16T12:58:08.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "2b3c4d5e6f7a48919b2c3d4e5f607182"}
{  "error": {    "statusCode": 400,    "message": "Bad Request",    "innerErrors": [      {        "code": "MISSING_QUERY_PARAMETERS",        "message": "Required query parameters are missing or invalid.",        "userMessage": "Required query parameters are missing or invalid."      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/common/folder/list",  "dateTime": "2026-10-21T09:04:24.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "6d2a9c4e1b7f43a08e5c3d2b1a9f7e64"}
{  "error": {    "statusCode": 404,    "message": "Not Found",    "innerErrors": [      {        "code": "NOT_FOUND",        "message": "OperationNotFound",        "userMessage": "Unable to match incoming request to an operation."      }    ]  },  "origin": "",  "dateTime": "2026-10-16T10:44:12.000Z"}
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "GET_FOLDER_LIST_FAILED",        "message": "Failed to get folder list.",        "userMessage": "Something went wrong. Please try again or contact support.",        "eventId": "4c8e2a6d-0b3f-4917-9e5c-2a7d1f0b8e63"      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/common/folder/list",  "dateTime": "2026-10-16T12:58:06.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "0e5b9d3a7c1f42864a8e2c0b6d1f9a53"}