get
https://api.lodgestory.com/api/wp-crm/reports///download
Get a presigned download URL for a completed report. The URL is a temporary S3 presigned link valid for a limited time.
Required steps before calling:
- Obtain a JWT via
POST /api/wp-crm/token - Request a report via
POST /api/wp-crm/reports/:organisationId - Poll
GET /api/wp-crm/reports/:organisationIduntil status isCOMPLETED - Call this endpoint with the
reportIdto get the download URL
Security:
- The
organisationIdin the URL path must match the organisation your JWT was issued for. The token is cryptographically bound to a specific organisation — requests targeting a different organisation will fail with 401 Unauthorized. - Only users with
CRM_ADMINorACCOUNT_OWNERrole in the organisation can download reports. Other roles will receive a 403 Forbidden.
Behavior:
- If the report is completed, returns a presigned S3 URL to download the CSV file.
- If the report is still processing, returns HTTP 202 with the current status.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
202Report is still processing
401Unauthorized — invalid/expired JWT or organisation ID does not match the token
403Forbidden — user does not have CRM_ADMIN or ACCOUNT_OWNER role
