Create Packet
POST
/v1/packets
const url = 'https://api.deskew.dev/v1/packets';const form = new FormData();form.append('files', 'binary');form.append('uploads', 'example');form.append('packet', 'example');form.append('assignments', 'example');form.append('webhook_url', '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/packets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form files=binary \ --form uploads=example \ --form packet=example \ --form assignments=example \ --form webhook_url=exampleSubmit several documents (or one zip) as a packet. Always runs in the background.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typemultipart/form-data
Body_create_packet_v1_packets_post
object
files
Files
Any of:
Array<string>
null
uploads
Uploads
Any of:
Array<string>
null
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Create Packet V1 Packets 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": {} } ]}