Code Interpreter
ApiFilesUploadBatch

Upload files as one batch

POST
/upload/batch

Same contract as /upload, tuned for writing many files into a single storage session in one request, the shape skill bundles use.

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

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/upload/batch"
{  "message": "success",  "storage_session_id": "string",  "files": [    {      "name": "string",      "id": "string",      "storage_session_id": "string",      "size": 0,      "lastModified": "2019-08-24T14:15:22Z",      "etag": "string",      "contentType": "string",      "metadata": {        "content-type": "string",        "original-filename": "string"      }    }  ]}