Skip to main content
POST
Upload documents

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_....

Body

multipart/form-data
files
file[]
required

The file parts. Repeat the files part per file.

customer_id
string

Target company. Optional for API keys.

message
string

Free-text note for the accounting agent.

submission_id
string

Client-chosen id grouping the files into one submission.

dump_kind
enum<string>

What kind of documents these are.

Available options:
receipt,
invoice,
contract
source
string
default:portal

Upload source label.

Response

Upload result.

Result of a document upload, including per-file outcomes.