Reports API
If you need an external system (accounting software, a BI/analytics tool, a custom integration) to pull your report data automatically instead of opening it manually on screen, you can enable the Reports API. It returns the same data as any of the system's existing reports (the same ones under the Reports section) as JSON, through a dedicated user that never logs into the control panel.
Note
This is a technical feature — the sections below are for whoever does the setup (the account admin) and whoever consumes the resulting key (the developer integrating with your data).
1. Enabling it
The Reports API is enabled per account (tenant) by ASAS's own administration (Super Admin), and is off by default. Contact the ASAS team to have it enabled for your account.
2. Creating an API user
Once enabled, a new option appears when adding or editing any user.
Go to Branches, Users & Security → Users → Create.

- API User: turn this on to make the account dedicated to the API only. Once enabled:
- The Password, Branches, Current Branch, and Require Two-Factor Authentication fields disappear — none of them are relevant, since this user can never log into the control panel at all.
- The system generates a random, unusable password automatically.
- Role: pick the role(s) that carry the report permissions you want this user to be able to call (the same roles used in Users, Roles & Permissions) — there's no separate report picker; access is exactly whatever "View" permissions the assigned role(s) grant.
Save the user.
3. Issuing an API token
After saving, a "Generate API Token" button appears at the top of the edit screen (only for users with "API User" enabled).

Click it, then confirm the warning — note: any previous token for this user stops working immediately once a new one is issued.

The token is shown once, in a popup notification:

Copy it immediately and hand it to whoever will use it (the developer/external system) securely. It will not be shown again — if you lose it, repeat the same step to issue a new one (which invalidates the old one).
4. Usage (for developers)
Authenticate with a standard bearer token:
Authorization: Bearer <token>
Accept: application/jsonList the reports available to this token:
curl -s \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" \
"https://your-domain.tld/api/v1/{tenant}/reports"Fetch a specific report's data (paginated):
curl -s \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" \
"https://your-domain.tld/api/v1/{tenant}/reports/warehouse_stock_report?per_page=50&page=1"{tenant}is your account's domain (the same slug shown in your control panel's URL).per_page/page: pagination (default 25 per page, max 200).- Any other parameter is forwarded as-is to the report's own filters. You don't need to guess these field names — every report returns a
filtersarray in its response (both in the report list and in the report's own data), describing its actual filter fields' names and types, read straight off that report's form in the code — so it can never go stale or drift out of sync:jsonCommon"filters": [ { "key": "warehouse_id", "type": "Select" }, { "key": "category_id", "type": "Select" }, { "key": "show_default_unit", "type": "Toggle" } ]typevalues:Select(pass the option's ID),Toggle(1/0),DateRangePicker(always nameddate_range, format"d/m/Y - d/m/Y"),DatePicker(always namedas_of_date, format"Y-m-d"). - Cost/purchase-price/selling-price columns are automatically dropped from the result if this user doesn't have profit-viewing permission — exactly the same logic as the UI.
Notes
- An API user can never log into any control panel (neither the app nor the admin panel), no matter what — this is intentional, not a bug.
- To revoke access: issue a new token (immediately invalidates the old one), deactivate the user (Active = off), or edit their roles to remove report permissions.
- See also Users, Roles & Permissions to manage the roles/permissions that govern API users' access.