POST https://openapi.dataeyes.ai/v1/document/parse| Mode | Content-Type | Description |
|---|---|---|
| File upload | multipart/form-data | Upload a PDF file directly |
| Document URL | application/json | Pass a public link to a PDF file |
| Parameter | Type | Required | Description |
|---|---|---|---|
file | file | Yes | The PDF file to parse |
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | PDF file URL. Only http / https are supported |
timeout | integer | No | Timeout in seconds |
{
"code": 0,
"data": {
"metadata": {
"url": "https://example.com/report.pdf",
"title": "report",
"statusCode": 200,
"contentType": "application/pdf",
"cached": 0
},
"html": "",
"markdown": "# Report title\n\nBody text..."
},
"message": "success"
}data.markdown.| Error | Cause |
|---|---|
40001 parameters err | Neither file nor url was provided |
40003 Invalid protocol | The URL is not http / https |
32002 Request timeout | The document is large and parsing timed out. Increase timeout and retry |