Extract a document
POST
/v1/extract
const url = 'https://api.deskew.dev/v1/extract';const form = new FormData();form.append('file', 'example');form.append('url', 'example');form.append('output', 'example');form.append('tables', 'example');form.append('bbox', 'example');form.append('handwriting', 'example');form.append('fields', 'example');form.append('images', 'example');form.append('language', 'example');form.append('schema', 'example');form.append('quality', 'example');form.append('webhook_url', 'example');form.append('mode', 'example');form.append('pdf_password', 'example');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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=exampleAuthorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Body
Section titled “Request Body”Media typemultipart/form-data
Body_extract_v1_extract_post
object
Responses
Section titled “Responses”Synchronous result
Media typeapplication/json
Example generated
exampleQueued as a background job
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}