Overview of the ParseX API.
With the ParseX API, you can perform document parsing & field extraction programmatically. All endpoints are served through the DashScope gateway.
All endpoints share the same service address, with the path prefix
All endpoints return a unified JSON structure.
After the official entry point is released, the submit endpoint returns a
Service address
/api/v2/apps/parse-x.
Protocol conventions
- All endpoints are accessed over HTTPS; HTTP is not supported.
- Request and response bodies are in JSON format with the UTF-8 charset.
- All endpoints use the
POSTmethod.
Authentication and request headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $DASHSCOPE_API_KEY; see Authentication for how to obtain it |
Content-Type | Yes | application/json |
Common response format
All endpoints return a unified JSON structure.
Success response:
Error response:
Async calling flow
After the official entry point is released, the submit endpoint returns a biz_id. The caller uses this ID to call the corresponding result endpoint until data.status is success or failed.
- Submit a parsing task: Submit a document or audio/video parsing task; returns a biz_id for async queries.
- Submit an extraction task: Submit a structured field extraction task based on a JSON Schema.
- Error codes: View the error response format and public error codes.