For the complete documentation index, see llms.txt. This page is also available as Markdown.

Files

List Files

get
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
project_idintegerRequired
Responses
200

Successful Response

application/json
project_idintegerRequired
uploader_usernamestring · max: 255Required
filenamestring · max: 255Required
storage_pathstring · max: 512Required
file_typestring · max: 100 · nullableOptional
file_size_bytesinteger · nullableOptional
processing_statusstring · max: 50 · nullableOptionalDefault: uploaded
stagestring · max: 50 · nullableOptional
failure_reasonstring · nullableOptional
file_idintegerRequired
uploaded_atstring · date-timeRequired
updated_atstring · date-time · nullableOptional
get/api/v1/projects/{project_id}/files
GET /api/v1/projects/{project_id}/files HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "project_id": 1,
    "uploader_username": "text",
    "filename": "text",
    "storage_path": "text",
    "file_type": "text",
    "file_size_bytes": 1,
    "processing_status": "uploaded",
    "stage": "text",
    "failure_reason": "text",
    "file_id": 1,
    "uploaded_at": "2026-01-01T00:00:00.000Z",
    "updated_at": "2026-01-01T00:00:00.000Z",
    "profile": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  }
]

Upload Files

post
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
project_idintegerRequired
Body
filesstring · binary[]Required
Responses
200

Successful Response

application/json
project_idintegerRequired
uploader_usernamestring · max: 255Required
filenamestring · max: 255Required
storage_pathstring · max: 512Required
file_typestring · max: 100 · nullableOptional
file_size_bytesinteger · nullableOptional
processing_statusstring · max: 50 · nullableOptionalDefault: uploaded
stagestring · max: 50 · nullableOptional
failure_reasonstring · nullableOptional
file_idintegerRequired
uploaded_atstring · date-timeRequired
updated_atstring · date-time · nullableOptional
post/api/v1/projects/{project_id}/files
POST /api/v1/projects/{project_id}/files HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 20

{
  "files": [
    "binary"
  ]
}
[
  {
    "project_id": 1,
    "uploader_username": "text",
    "filename": "text",
    "storage_path": "text",
    "file_type": "text",
    "file_size_bytes": 1,
    "processing_status": "uploaded",
    "stage": "text",
    "failure_reason": "text",
    "file_id": 1,
    "uploaded_at": "2026-01-01T00:00:00.000Z",
    "updated_at": "2026-01-01T00:00:00.000Z",
    "profile": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  }
]

Get File Metadata

get
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
project_idintegerRequired
file_idintegerRequired
Responses
200

Successful Response

application/json
project_idintegerRequired
uploader_usernamestring · max: 255Required
filenamestring · max: 255Required
storage_pathstring · max: 512Required
file_typestring · max: 100 · nullableOptional
file_size_bytesinteger · nullableOptional
processing_statusstring · max: 50 · nullableOptionalDefault: uploaded
stagestring · max: 50 · nullableOptional
failure_reasonstring · nullableOptional
file_idintegerRequired
uploaded_atstring · date-timeRequired
updated_atstring · date-time · nullableOptional
get/api/v1/projects/{project_id}/files/{file_id}
GET /api/v1/projects/{project_id}/files/{file_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "project_id": 1,
  "uploader_username": "text",
  "filename": "text",
  "storage_path": "text",
  "file_type": "text",
  "file_size_bytes": 1,
  "processing_status": "uploaded",
  "stage": "text",
  "failure_reason": "text",
  "file_id": 1,
  "uploaded_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "profile": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

Update File Metadata

put
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
project_idintegerRequired
file_idintegerRequired
Body
project_idintegerRequired
uploader_usernamestring · max: 255Required
filenamestring · max: 255Required
storage_pathstring · max: 512Required
file_typestring · max: 100 · nullableOptional
file_size_bytesinteger · nullableOptional
processing_statusstring · max: 50 · nullableOptionalDefault: uploaded
stagestring · max: 50 · nullableOptional
failure_reasonstring · nullableOptional
Responses
200

Successful Response

application/json
project_idintegerRequired
uploader_usernamestring · max: 255Required
filenamestring · max: 255Required
storage_pathstring · max: 512Required
file_typestring · max: 100 · nullableOptional
file_size_bytesinteger · nullableOptional
processing_statusstring · max: 50 · nullableOptionalDefault: uploaded
stagestring · max: 50 · nullableOptional
failure_reasonstring · nullableOptional
file_idintegerRequired
uploaded_atstring · date-timeRequired
updated_atstring · date-time · nullableOptional
put/api/v1/projects/{project_id}/files/{file_id}
PUT /api/v1/projects/{project_id}/files/{file_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 192

{
  "project_id": 1,
  "uploader_username": "text",
  "filename": "text",
  "storage_path": "text",
  "file_type": "text",
  "file_size_bytes": 1,
  "processing_status": "uploaded",
  "stage": "text",
  "failure_reason": "text"
}
{
  "project_id": 1,
  "uploader_username": "text",
  "filename": "text",
  "storage_path": "text",
  "file_type": "text",
  "file_size_bytes": 1,
  "processing_status": "uploaded",
  "stage": "text",
  "failure_reason": "text",
  "file_id": 1,
  "uploaded_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "profile": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

Delete File

delete
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
project_idintegerRequired
file_idintegerRequired
Responses
200

Successful Response

application/json
anyOptional
delete/api/v1/projects/{project_id}/files/{file_id}
DELETE /api/v1/projects/{project_id}/files/{file_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Retry File Processing

post

Re-run ingestion for a file stuck in 'failed' status (NCP-3810).

force=true also accepts 'completed' files, re-running profiling and re-indexing onto the current ingestion scheme (old chunks are replaced).

Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
project_idintegerRequired
file_idintegerRequired
Query parameters
forcebooleanOptionalDefault: false
Responses
200

Successful Response

application/json
project_idintegerRequired
uploader_usernamestring · max: 255Required
filenamestring · max: 255Required
storage_pathstring · max: 512Required
file_typestring · max: 100 · nullableOptional
file_size_bytesinteger · nullableOptional
processing_statusstring · max: 50 · nullableOptionalDefault: uploaded
stagestring · max: 50 · nullableOptional
failure_reasonstring · nullableOptional
file_idintegerRequired
uploaded_atstring · date-timeRequired
updated_atstring · date-time · nullableOptional
post/api/v1/projects/{project_id}/files/{file_id}/retry
POST /api/v1/projects/{project_id}/files/{file_id}/retry HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "project_id": 1,
  "uploader_username": "text",
  "filename": "text",
  "storage_path": "text",
  "file_type": "text",
  "file_size_bytes": 1,
  "processing_status": "uploaded",
  "stage": "text",
  "failure_reason": "text",
  "file_id": 1,
  "uploaded_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "profile": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}

Download File

get
Authorizations
AuthorizationstringRequired

Enter your JWT token (without 'Bearer ' prefix)

Path parameters
project_idintegerRequired
file_idintegerRequired
Responses
200

Successful Response

No content

get/api/v1/projects/{project_id}/files/{file_id}/download
GET /api/v1/projects/{project_id}/files/{file_id}/download HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated