VaultUpload a document to a Vault

Upload a document to a Vault

Uploads a document to a Vault, optionally forcing the document type. Use v3 POST /v3/documents for new integrations.

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/vaults/example_string/documents" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  --form file=example_string \
  --form documentType=employment-agreement
{}
POST
/v1/vaults/{vaultId}/documents
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

Content-Typestring
Required

The media type of the request body

Options: multipart/form-data
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Authentication token required.

Path Parameters

Headers

Authorizationstring
Example:
Bearer <ACCESS_TOKEN>

Body

multipart/form-data
documentTypestring
Example:
employment-agreement

Responses

Successful response