Add tags to a file
Add one or more tags to a file without affecting existing tags.
Behavior:
- Adds new tags to the document while preserving existing ones
- New tags are marked as manually assigned (
auto_assigned=False) - Duplicate tags are ignored (no error if tag already exists on document)
Validation:
- Returns 400 if tag IDs are invalid or don’t belong to user’s company
- Returns 403 if user doesn’t have permission to edit the document
- Returns 404 if document doesn’t exist
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Request serializer for adding tags to a file.
List of tag IDs to add to the file
1Response
Tags added successfully
Filename of the document
Workspace the document belongs to
Document summaries (all languages)
File extension of the document
Creation date of the resource
Total number of pages
List of tags associated with the document
User who created the file. Null when the file was created by the system.
Upload session UUID associated with this document
TLSH hash for duplicate detection.
Facet content types with nested attribute values. Excludable via ?exclude=content_types.
255pending- Pendingpending_conversion- Pending Conversionconverting- Convertingparsing- Parsingparsing_failed- Parsing Failedembedding- Embeddingembedding_failed- Embedding Failedembedded- Embeddedparsed- Parsedfail- Failupdating- Updating
pending, pending_conversion, converting, parsing, parsing_failed, embedding, embedding_failed, embedded, parsed, fail, updating pending- Pendingprocessing- Processingembedded- Embeddedfail- Fail-- Not available
pending, processing, embedded, fail, - Size of the file in bytes.
Deprecated — use pages[] instead. Full text content of the document, derived from per-page text, as a single flat string. Only included when include_content=true query parameter is provided. Will be removed in a future release.
Per-page document text in the canonical { index, markdown } shape shared with /parse and /ocr. Only included when include_content=true. Intended replacement for the flat content string. For documents ingested before per-page text was stored, the full content is returned as a single page (index 1); empty only when there is no content at all.
Detailed error information. Only present when document processing has failed.
Parser/ingestion pipeline used for document processing (e.g., 'v2.1', 'v3.0').
External document metadata