Files

Upload one file for the current API key user without KB insertion.

Uses the current API key's permissions. Check GET /capabilities for availability. Send multipart/form-data with field file. This stores an owned file without KB insertion. The response may include asynchronous processing metadata. skip_existing is not supported.

curl 'https://api.textcortex.com/v1/api-platform/files' \
  -H 'Authorization: Bearer <API_KEY>' \
  -F 'file=@Contract.pdf'

Let your HTTP client set the multipart boundary. Keep the returned id as file_id; insert it into a KB separately. A 201 confirms upload acceptance, not searchable indexing. Oversized uploads return 413; limits can depend on the deployment and file processing path.

post/api-platform/files

Request

  • Base URL
    https://api.textcortex.com/v1
  • Auth
    HTTP bearer

Query parameters

string
OR
unknown

Request body multipart/form-data

filestring binary required

Response

Successful response

asyncobject

Optional asynchronous upload-processing metadata.

channelstring nullable
created_atstring date-time nullable
idstring required
is_ownerboolean
mime_typestring nullable
namestring nullable
object'file' required
original_filenamestring nullable
sha256string nullable
sizeinteger

File size in bytes.

updated_atstring date-time nullable
uristring nullable
visibilitystring nullable

Changes