ToolYour

ToolYour

API Docs

Extract text from file content (base64 JSON body)

POST
/api/v1/extract

Authorization

ApiKeyAuth
X-Api-Key<token>

API key created via POST /api/v1/api-keys (shown once at creation)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/extract" \  -H "Content-Type: application/json" \  -d '{    "contentBase64": "JVBERi0xLjQK...",    "mimeType": "application/pdf",    "filename": "document.pdf"  }'
{  "text": "string",  "metadata": {},  "segments": [    {      "index": 0,      "text": "string",      "charStart": 0,      "charEnd": 0    }  ],  "warnings": [    "string"  ]}
{  "message": "string",  "detail": "string",  "status": false,  "code": 0,  "error": "string"}
Empty
{  "message": "string",  "detail": "string",  "status": false,  "code": 0,  "error": "string"}
Empty
Empty