ExportsExport vault documents as CSVpost

Export vault documents as CSV

Exports selected documents, or all documents in a Vault, as CSV. Optional headers control which columns are included.

curl -X POST "https://api.textmine.com/v3/vaults/123/exports/csv" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (`tm_<key>`)" \
  -d '{
  "documentIds": [
    67890,
    67891
  ],
  "headers": [
    "name",
    "status",
    "Governing law"
  ]
}'
{}
POST
/v3/vaults/{vaultId}/exports/csv
POST
Base URLstring

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

Bearer Token (`tm_<key>`)
Bearer Tokenstring
Required

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.
path
vaultIdinteger
Required

Vault ID.

Format: int64
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (tm_<key>). Use Authorization: Bearer tm_<key> for API-key access to /v3/** endpoints. V3 also accepts Auth0 JWT and HTTP Basic for user-session contexts.

Path Parameters

Body

application/json

Responses

CSV export.