Folder Create
Markdown for LLMsCreates a folder for the caller, to file one kind of record in: envelope templates, document solutions, data sources or document templates. The body is { "folder": { "name", "folderEntityId" }, "externalContext" }, both mandatory.
folderEntityId says what the folder holds — ENVELOPE_TEMPLATES, DOCUMENT_SOLUTIONS, DATA_SOURCES or DOCUMENT_TEMPLATES, matched without regard to case and read back in capitals — and cannot be changed later. A missing or unrecognized value is rejected with 400 INVALID_FOLDER_ENTITY.
File a record in the folder with that record's move operation — signatures-template-move, documents-template-move, documents-data-source-move or documents-solution-move — passing the folder's id as folderId. Folders belong to the caller alone. The response returns only the new folder's id.
A name the caller already uses for a folder of the same kind fails with 500 DATABASE_ERROR.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Request Body
application/json
Mandatory, as FolderCreateRequest.
TypeScript Definitions
Use the request body type in TypeScript.
Request body for common-folder-create: the folder's name and the folderEntityId that says what it holds.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/common/folder/create" \ -H "Content-Type: application/json" \ -d '{ "folder": { "name": "Q3 Financial Contracts", "folderEntityId": "DATA_SOURCES" }, "externalContext": { "id": "12345" } }'{ "result": { "statusCode": 201, "message": "Created", "data": { "folder": { "id": "92d62501-d227-4d9a-93b2-e904907bf981" } } }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/common/folder/create", "dateTime": "2026-10-16T12:58:00.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "8e1d4c2b9a7f4e6d8c3b2a1f0e9d8c7b"}{ "error": { "statusCode": 400, "message": "Bad Request", "innerErrors": [ { "code": "FOLDER_NAME_REQUIRED", "message": "Folder name is required.", "userMessage": "Folder name is required." } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/common/folder/create", "dateTime": "2026-10-16T12:58:04.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "5b1e9c3a7d2f48606e4a0b8c2d9f1e37"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "DATABASE_ERROR", "message": "A database error occurred during function execution.", "userMessage": "Something went wrong while processing your request. Please try again or contact support.", "eventId": "2e7b4d9a-1c6f-4085-b3a2-9f0e8d1c6b54" } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/common/folder/create", "dateTime": "2026-10-16T12:58:06.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "a3f7c1e95b2d4084b6e0d9c2f1a8e735"}