Code Interpreter
ApiFilesSessionsSession_idObjectsFileid

Get file metadata

GET
/sessions/{session_id}/objects/{fileId}

Returns one object's metadata without its bytes, used for freshness checks, so a caller can tell whether a previously uploaded bundle is still present before re-uploading it.

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/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/sessions/string/objects/string"
{  "lastModified": "2019-08-24T14:15:22Z",  "size": 0,  "etag": "string",  "contentType": "string"}