POST
/
api
/
repositories
/
repository
/
{repository_id}
/
document

Authorizations

Authorization
string
header
required

Path Parameters

repository_id
integer
required

Body

multipart/form-data
file
string
required

Response

201 - application/json
chunk_count
integer
default:
0
required
document_id
integer
required
document_type
enum<string>
required
  • pdf - PDF
  • docx - Word
  • txt - Text
Available options:
pdf,
docx,
txt
error
string | null
required
name
string
required
Maximum length: 255
repository_id
integer
required
status
enum<string>
required
  • PENDING - Pending
  • UPLOADED - Uploaded
  • INDEXING - Indexing
  • COMPLETED - Completed
  • FAILED - Failed
Available options:
PENDING,
UPLOADED,
INDEXING,
COMPLETED,
FAILED