get
https://api.lodgestory.com/api/wp-crm/reports/
Get a paginated list of reports for your organisation. Use this to poll report generation status after requesting a report.
Required steps before calling:
- Obtain a JWT via
POST /api/wp-crm/token
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 list reports. Other roles will receive a 403 Forbidden.
Report statuses:
| Status | Meaning |
|---|---|
PENDING | Report is queued for generation |
PROCESSING | Report is currently being generated |
COMPLETED | Report is ready — use the download endpoint |
FAILED | Report generation failed |
Pagination: Use page and limit query parameters. Defaults to page 1, 10 items per page.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
401Unauthorized — invalid/expired JWT or organisation ID does not match the token
403Forbidden — user does not have CRM_ADMIN or ACCOUNT_OWNER role
