|
1
|
# Mindee |
|
2
|
|
|
3
|
Proxy requests to Mindee via Replit-managed billing. |
|
4
|
|
|
5
|
## Callback |
|
6
|
|
|
7
|
Use `externalApi__mindee` in `code_execution`. |
|
8
|
|
|
9
|
## Allowed operations |
|
10
|
|
|
11
|
- `POST` `/v2/products/:product(extraction|ocr|classification|crop|split)/enqueue` - Mindee inference enqueue (extraction / ocr / classification / crop / split). Bills after polling the job and reading the processed page count. |
|
12
|
- `POST` `/v2/inferences/enqueue` - Deprecated Mindee extraction enqueue alias used by current SDKs. Bills after polling the job and reading the processed page count. |
|
13
|
- `GET` `/v2/jobs/:job_id` - Mindee job status polling. No charge — enqueue billing already settles the processed page count. |
|
14
|
- `GET` `/v2/products/:product(extraction|ocr|classification|crop|split)/results/:inference_id` - Mindee inference results retrieval (extraction / ocr / classification / crop / split). No charge — enqueue billing already settles the processed page count. |
|
15
|
- `GET` `/v2/inferences/:inference_id` - Deprecated Mindee extraction result alias used by current SDKs. No charge — enqueue billing already settles the processed page count. |
|
16
|
|
|
17
|
Authorization is handled automatically by Replit. Do not pass an `Authorization` header. |
|
18
|
|
|
19
|
## Quickstart |
|
20
|
|
|
21
|
1. Call the callback with a supported `path` and `method`. |
|
22
|
2. Put URL params in `query` and inspect `result.body`. |
|
23
|
|
|
24
|
## Example |
|
25
|
|
|
26
|
```javascript |
|
27
|
const result = await externalApi__mindee({ |
|
28
|
path: '/v2/products/:product(extraction|ocr|classification|crop|split)/enqueue', |
|
29
|
method: 'POST', |
|
30
|
query: {}, |
|
31
|
}) |
|
32
|
|
|
33
|
console.log(result.status) |
|
34
|
console.log(result.body) |
|
35
|
``` |