Skip to main content
GET
/
outputs
/
{output_id}
/
files
/
{role}
Download an output package file
curl --request GET \
  --url https://api.app.lastaccountingcompany.com/portal/outputs/{output_id}/files/{role} \
  --header 'Authorization: Bearer <token>'
{
  "error": "<string>",
  "detail": "<string>"
}

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

output_id
string
required
role
enum<string>
required
Available options:
excel,
pdf,
json,
instructions

Query Parameters

customer_id
string

Target company. Optional — API keys are pinned to one company, and single-company sessions default to it.

Response

File bytes.