Extract

Suggest an extraction schema

POST
/suggest-schema

Suggest an extraction JSON Schema from a tenant-owned succeeded parse result. Optional hint is capped at 500 characters. Definitive failures return schema_suggestion_failed.

Authorization

bearerAuth
AuthorizationBearer <token>

Existing Eigenpal API key presented as a bearer token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Suggest an extraction JSON Schema from a tenant-owned succeeded parse job. Optional hint is caller guidance capped at 500 characters.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/suggest-schema" \  -H "Authorization: Bearer $OPENPARSER_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "parse_job_id": "string"  }'
{  "name": "string",  "schema": {    "property1": null,    "property2": null  }}
{  "error": {    "code": "malformed_request",    "message": "multipart field `request` is not valid JSON",    "request_id": "req_01h2example",    "retryable": false  }}
{  "error": {    "code": "unauthorized",    "message": "invalid API key",    "request_id": "req_01h2example",    "retryable": false  }}
{  "error": {    "code": "forbidden",    "message": "API key lacks required scope",    "request_id": "req_01h2example",    "retryable": false  }}
{  "error": {    "code": "job_not_found",    "message": "job not found",    "request_id": "req_01h2example",    "retryable": false  }}

{  "error": {    "code": "unsupported_ocr_model",    "message": "unknown OCR model registry name",    "request_id": "req_01h2example",    "retryable": false,    "details": {      "ocr_model": "paddleocr-vl-9.9"    }  }}

{  "error": {    "code": "rate_limited",    "message": "request rate limit exceeded",    "request_id": "req_01h2example",    "retryable": true  }}

{  "error": {    "code": "source_upload_failed",    "message": "source upload failed",    "request_id": "req_01h2example",    "retryable": true  }}
{  "error": {    "code": "provider_indeterminate",    "message": "job outcome indeterminate",    "request_id": "req_01h2example",    "retryable": true  }}