Skip to main content
POST
/
uploads
Upload documents
curl --request POST \
  --url https://api.app.lastaccountingcompany.com/portal/uploads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=<string>' \
  --form 'customer_id=<string>' \
  --form 'message=<string>' \
  --form 'submission_id=<string>' \
  --form source=portal
{}

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
string[]
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.