Statements

Download statement

GEThttps://api.firstleeward.com/v0/statements/:id/download

Serves a GENERATED statement file. Responds 302 to a short-lived URL that serves the file directly, so a plain HTTP client that follows redirects downloads it in one call; fetch that URL without your API credentials. Send Accept: application/json to receive the URL and its expiry as a body instead. A statement that is PENDING or FAILED has no file and responds STATEMENT_NOT_READY.

Authorizations

Authorizationstring · headerrequired

API key as Bearer token, e.g. Bearer YOUR_API_KEY

Headers

Leeward-Versionenum<string>required

API version (YYYY-MM-DD). Available option: 2026-09-18

Path Parameters

idstring<uuid>required

Statement ID

Response

200Response for status 200
urlstring<uri>required

Short-lived URL serving the file directly. Fetch it without authentication headers.

expiresAtstringrequired

ISO 8601 timestamp after which the URL stops working

302Response for status 302
urlstring<uri>required

Short-lived URL serving the file directly. Fetch it without authentication headers.

expiresAtstringrequired

ISO 8601 timestamp after which the URL stops working

404Statement not found
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
409Statement has no file to download in its current status
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired