Skip to content

Extract a document

POST
/v1/extract
curl --request POST \
--url https://api.deskew.dev/v1/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=example \
--form url=example \
--form output=example \
--form tables=example \
--form bbox=example \
--form handwriting=example \
--form fields=example \
--form images=example \
--form language=example \
--form schema=example \
--form quality=example \
--form webhook_url=example \
--form mode=example \
--form pdf_password=example
Idempotency-Key
Idempotency-Key
Any of:
string
Media typemultipart/form-data
Body_extract_v1_extract_post
object
file
File
Any of:
string
url
Url
Any of:
string
output
Output
Any of:
string
tables
Tables
Any of:
string
bbox
Bbox
Any of:
string
handwriting
Handwriting
Any of:
string
fields
Fields
Any of:
string
images
Images
Any of:
string
language
Language
Any of:
string
schema
Schema
Any of:
string
quality
Quality
Any of:
string
webhook_url
Webhook Url
Any of:
string
mode
Mode
Any of:
string
pdf_password
Pdf Password
Any of:
string

Synchronous result

Media typeapplication/json

Example generated

example

Queued as a background job

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}