Skip to main content
GET
/
api
/
v1
/
fill
/
{request_id}
Form Filling Result Check
curl --request GET \
  --url https://www.datalab.to/api/v1/fill/{request_id} \
  --header 'X-API-Key: <api-key>'
{
  "status": "<string>",
  "success": true,
  "error": "<string>",
  "output_format": "<string>",
  "output_base64": "<string>",
  "fields_filled": [
    "<string>"
  ],
  "fields_not_found": [
    "<string>"
  ],
  "runtime": 123,
  "page_count": 123,
  "cost_breakdown": {},
  "versions": {}
}

Authorizations

X-API-Key
string
header
required

Path Parameters

request_id
string
required

Cookies

access_token
string

Response

Successful Response

status
string
required

The status of the request. Should be 'complete' when the request is done.

success
boolean | null

Whether form filling succeeded.

error
string | null

Error message if form filling failed.

output_format
string | null

Output format: 'pdf' or 'png'.

output_base64
string | null

Base64-encoded filled form (PDF or PNG).

fields_filled
string[] | null

List of field keys that were successfully filled.

fields_not_found
string[] | null

List of field keys that couldn't be matched to form fields.

runtime
number | null

Processing time in seconds.

page_count
integer | null

Number of pages processed.

cost_breakdown
Cost Breakdown · object

A dictionary of the cost breakdown of this request.

versions

A dictionary of the versions of the libraries used in the request.