AI Chat

Start uploading a file in chunks, for clients behind a small request-size limit. Send the chunks in order, then complete.

Changed on
post/ai/conversations/{public_id}/attachment-uploads

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/conversations/{public_id}/attachment-uploads
  • Auth: HTTP bearer

Path parameters

public_idstring required

Conversation public id

Request body

mime_typestring nullable

Content type the browser reported, if any.

namestring required

File name as the user knows it; unsafe characters are replaced.

size_bytesinteger required

Size of the whole file in bytes.

Response

Upload opened

chunk_bytesinteger required

The most bytes one chunk may carry.

upload_idstring required

Opaque id to send every chunk and the completion to.

Changes