AI Chat

One file of the chat's sandbox, for the viewer. Text is cut at 1 MiB; binary files come back without content.

Changed on
get/ai/conversations/{public_id}/sandbox/file

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}/sandbox/file
  • Auth: HTTP bearer

Path parameters

public_idstring required

Conversation public id

Query parameters

pathstring required

Absolute, or relative to the sandbox work directory.

Response

File content

binaryboolean required
contentstring nullable

The text, or its first [MAX_VIEW_BYTES] when truncated. None for a binary file.

pathstring required

Absolute path inside the sandbox.

sizeinteger required

Size in bytes of the whole file.

truncatedboolean required

Changes