Skip to main content
POST
Ask Björn to prefill a draft from a document

Authorizations

Authorization
string
header
required

Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....

Path Parameters

invoice_id
string
required

Body

multipart/form-data
files
file
required

One PDF or image of the contract or invoice.

customer_id
string

Target company. Optional for API keys.

submission_id
string

Client-chosen key to deduplicate retries.

Response

Document stored; Björn was asked to prefill the draft.

customer_id
string
draft_id
string
document_id
string
event_id
string