Statements
Download statement
https://api.firstleeward.com/v0/statements/:id/downloadServes 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 · headerrequiredAPI key as Bearer token, e.g. Bearer YOUR_API_KEY
Headers
Leeward-Versionenum<string>requiredAPI version (YYYY-MM-DD). Available option: 2026-09-18
Path Parameters
idstring<uuid>requiredStatement ID
Response
200Response for status 200
urlstring<uri>requiredShort-lived URL serving the file directly. Fetch it without authentication headers.
expiresAtstringrequiredISO 8601 timestamp after which the URL stops working
302Response for status 302
urlstring<uri>requiredShort-lived URL serving the file directly. Fetch it without authentication headers.
expiresAtstringrequiredISO 8601 timestamp after which the URL stops working
404Statement not found
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired409Statement has no file to download in its current status
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired