Code Interpreter
ApiFilesDownloadSession_idFileid

Download a file

GET
/download/{session_id}/{fileId}

Streams the file's bytes. Rate limited to 60 downloads per minute by default.

Authorization

BearerAuth
AuthorizationBearer <token>

EdDSA (Ed25519) JWT minted by LibreChat. Required unless the service runs with LOCAL_MODE=true or CODEAPI_AUTH_PROVIDER=none.

In: header

Path Parameters

session_id*string
fileId*string

Response Body

application/octet-stream

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/download/string/string"
Empty