POST
/
api
/
repositories
/
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
Maximum length: 255
document_type
enum<string>
required
  • pdf - PDF
  • docx - Word
  • txt - Text
Available options:
pdf,
docx,
txt
status
enum<string>
required
  • PENDING - Pending
  • UPLOADED - Uploaded
  • INDEXING - Indexing
  • COMPLETED - Completed
  • FAILED - Failed
Available options:
PENDING,
UPLOADED,
INDEXING,
COMPLETED,
FAILED
error
string | null
required
chunk_count
integer
default: 0required