POST
/
v1
/
repository
/
{repository_id}
/
document

Authorizations

Authorization
string
headerrequired

Path Parameters

repository_id
integer
required

Body

multipart/form-data
file
string
required

Response

201 - application/json
repository_id
integer
required
document_id
integer
required
name
string
required
document_type
enum<string>
required
  • pdf - PDF
  • docx - Word
  • txt - Text
Available options:
pdf,
docx,
txt
status
enum<string>
required
  • PENDING - Pending
  • UPLOADED - Uploaded
  • PARSING - Parsing
  • CHUNKING - Chunking
  • WAITING_FOR_CHUNKS_COMPLETION - Waiting for chunks completion
  • PROCESSING - Processing
  • COMPLETED - Completed
  • FAILED - Failed
Available options:
PENDING,
UPLOADED,
PARSING,
CHUNKING,
WAITING_FOR_CHUNKS_COMPLETION,
PROCESSING,
COMPLETED,
FAILED
error
string | null
required
chunk_count
integer
default: 0required