Skip to main content
POST
/
api
/
v3
/
files
/
{file_id}
/
tags
curl --request POST \
  --url https://paradigm.lighton.ai/api/v3/files/{file_id}/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tags": [
    1
  ]
}
'
{
  "id": 123,
  "filename": "project_proposal.pdf",
  "workspace": {
    "id": 1,
    "name": "Engineering Team"
  },
  "summaries": [
    {
      "language": "en",
      "summary": "This document outlines Q4 initiatives..."
    }
  ],
  "title": "Q4 Project Proposal",
  "extension": "pdf",
  "status": "embedded",
  "status_vision": "embedded",
  "uploaded_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T11:45:00Z",
  "total_pages": 25,
  "tags": [
    {
      "id": 1,
      "name": "Compliance",
      "auto_assigned": false
    },
    {
      "id": 2,
      "name": "Legal",
      "auto_assigned": false
    }
  ],
  "signature": "T1A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7R8S9T0U1V2W3X4Y5Z6A7B8C9D0E1F2",
  "file_size": 2458624,
  "parser": "v3.0",
  "message": "Added 2 tag(s) to file (duplicates ignored)"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
integer
required

Body

Request serializer for adding tags to a file.

tags
integer[]
required

List of tag IDs to add to the file

Minimum array length: 1

Response

Tags added successfully

id
integer
required
filename
string
required

Filename of the document

workspace
object
required

Workspace the document belongs to

summaries
object[]
required

Document summaries (all languages)

extension
string
required

File extension of the document

uploaded_at
string<date-time>
required
updated_at
string<date-time>
required
total_pages
integer
required

Total number of pages

tags
object[]
required

List of tags associated with the document

upload_session_uuid
string<uuid> | null
required

Upload session UUID associated with this document

signature
string | null
required

TLSH hash for duplicate detection.

file_size
integer | null
required

Size of the file in bytes. Only present if file is available.

title
string | null
Maximum string length: 255
status
enum<string>
  • pending - Pending
  • parsing - Parsing
  • parsing_failed - Parsing Failed
  • embedding - Embedding
  • embedding_failed - Embedding Failed
  • embedded - Embedded
  • fail - Fail
  • updating - Updating
Available options:
pending,
parsing,
parsing_failed,
embedding,
embedding_failed,
embedded,
fail,
updating
status_vision
enum<string>
  • pending - Pending
  • processing - Processing
  • embedded - Embedded
  • fail - Fail
  • - - Not available
Available options:
pending,
processing,
embedded,
fail,
-
content
string | null

Full text content of the document. Only included when include_content=true query parameter is provided.

status_detail
string | null

Detailed error information. Only present when document processing has failed.

parser
string | null

Parser/ingestion pipeline used for document processing (e.g., 'v2.1', 'v3.0').