1 # LlamaIndex
2
3 Proxy requests to LlamaIndex via Replit-managed billing.
4
5 ## Callback
6
7 Use `externalApi__llamaindex` in `code_execution`.
8
9 ## Allowed operations
10
11 - `POST` `/api/v2/parse` - Parse a file via LlamaParse v2. Bills page count × tier rate after polling status to terminal, with an explicit layout/chart add-on surcharge when requested.
12 - `POST` `/api/v1/beta/files` - Upload a file for a later billable LlamaCloud job. No charge — upload stores file bytes but does not consume document processing credits. File list/read/delete and page asset endpoints are intentionally not allowlisted for global credentials.
13
14 Authorization is handled automatically by Replit. Do not pass an `Authorization` header.
15
16 ## Quickstart
17
18 1. Call the callback with a supported `path` and `method`.
19 2. Put URL params in `query` and inspect `result.body`.
20
21 ## Example
22
23 ```javascript
24 const result = await externalApi__llamaindex({
25 path: '/api/v2/parse',
26 method: 'POST',
27 query: {},
28 })
29
30 console.log(result.status)
31 console.log(result.body)
32 ```