Custom queryCreate a custom question for a document

Create a custom question for a document

Creates a custom extraction question for a Vault document.

Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists.

curl -X POST "https://api.textmine.com/v1/vault/example_string/document/example_string/custom-question" \
  -H "Content-Type: */*" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '""{\
    \\"questions\\": [\
                {\
           \\"label\\":\\"test\\",\
            \\"question\\":\\"test\\",\
            \\"description\\":\\"\\",\
            \\"mustProcessed\\": false,\
            \\"validated\\": false\
        }\
    ]\
}""'
{}
POST
/v1/vault/{vaultId}/document/{documentId}/custom-question
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Bearer token - just enter the token, "Bearer" prefix will be added automatically

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Authentication token required.

Path Parameters

Headers

Content-Typestring
Example:
application/json
Authorizationstring
Example:
Bearer <ACCESS_TOKEN>

Body

*/*

Responses

Successful response