Suggest Extractor
POST
/v1/extractors/suggest
const url = 'https://api.deskew.dev/v1/extractors/suggest';const form = new FormData();form.append('file', 'binary');form.append('url', 'example');form.append('upload', 'example');form.append('job_id', '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/extractors/suggest \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=binary \ --form url=example \ --form upload=example \ --form job_id=exampleUpload one sample (or name a completed job) and get a proposed definition to start from. Costs the parse credits of the document plus 10 credits for the proposal.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Suggest Extractor V1 Extractors Suggest Post
object
key
additional properties
any
Example generated
{}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": {} } ]}