Platform setup · Guide
Give another system access to reports (API)
In the «System Settings» you create a key in the «API access» card that lets GIS, Power BI, a ticket tool or Microsoft 365 flows read reports. You choose an account and an expiry, and can pause, extend or revoke the key at any time.
Last reviewed:
On this page
Goal
Give another system controlled read access to your platform's reports and keep every key under control.
Before you start
- You are signed in as an administrator.
- Power Local has switched on API access for your platform; otherwise the card is missing (see Troubleshooting).
- There is an account for the integration that may at least see reports and has signed in once. Best create a dedicated account with as few rights as possible.
Steps
Open the «API access» card
Under «Admin Settings» (the administration section of the sidebar) open the «System Settings» (the settings for the whole platform) and, in the «API access» card («Manage integration credentials»), the dialog. It has two tabs: «Keys» lists every key, newest first, with the filters «All», «Active», «Paused» and «Ended». To add one, switch to «Create».
Choose a name and an account
At «Name» enter what the key is for, for example «GIS export». At «Acts as» pick the account with «Search accounts»: the key may do exactly what that account may. The choice offers active accounts that may see reports. A new account appears only after it has signed in once.
Set the rights and the validity
Under «May», «Read reports» is always included. With «also create internal reports» you additionally let the other system create internal reports; that works only if the chosen account may create reports. «Validity in days (1 to 90)» starts at 30; choose as short as operations allow. Then choose «Create credential».
Open image
Example view with test data: «API-Zugriff» (API access), tab «Erstellen» (Create). An account is chosen under «Handelt als» (acts as); the list «Darf» (may) shows «Meldungen lesen» (read reports) ticked and greyed (always included) and three unticked rights, including «Webhooks selbst anlegen» (create webhooks themselves). Secure the secret key
The dialog «Save the secret now» shows the key only now. Choose «Copy» and put it in the other system's secret store. Never write it in emails, tickets, chats or addresses. Only then choose «Saved, continue». If you close the dialog without copying, the platform asks first; the key can never be shown again later.
Connect the other system
The system sends the key with every request in the header «Authorization: Bearer» followed by the key, to your platform's address with the path /api/v1/reports. It can read a list (up to 100 reports per call, with a cursor for the next page) or one report by its ID, and it can create internal reports. Every request checks the account's current rights, and 120 requests per minute are possible per key.
Pause, extend or end a key
In «Keys» every key shows only the one button you reach for first (for an active key «Webhooks», for a paused one «Resume»); all other actions are behind «…» («More actions»). «Pause» stops it at once, «Resume» makes the same key work again, and the other system changes nothing. «Extend» sets a new validity of 1 to 90 days from now, the key stays the same; this also works up to 30 days after it expired. «Revoke» (shown in red) ends it for good, and the platform asks first. In its last seven days the key shows «Expires soon».
Open image
Example view with test data: in the «Zugänge» (Keys) tab the active key «Dialog-Probe» shows the «Webhooks» button and the open «…» menu with «Pausieren» (pause), «Verlängern» (extend) and «Widerrufen» (revoke, in red). Tidy up ended keys
Ended keys stay in the list until you delete them. «Delete» (shown in red; for a revoked key the button itself, for an expired one behind «…», «More actions») removes a revoked or expired key from the list after a question; the audit log keeps creation, revocation and deletion for its retention period. A key that expired more than 30 days ago can only be deleted; create a new one then.
Check the result
The other system reads reports with its own key that may do only what its account may, and you can pause, extend or revoke it at any time.
If something goes wrong
- The «API access» card is missing.
- The card appears only when Power Local has switched on API access for your platform. Ask Power Local for it.
- The other system gets the answer 401.
- The key is paused, revoked or expired, was copied wrongly, or the chosen account's password was changed or reset, which ends all that account's keys. Check the state in «Keys». Resume or extend the key, or create a new one and enter it in the other system.
- No account can be picked at «Acts as».
- Only active accounts that may see reports are offered. A new account must first have signed in once; otherwise check its rights.
- The checkbox «also create internal reports» is greyed out.
- The chosen account may not create reports. Give the account that right or pick another account.
Common questions
Can I look at the key again later?
No. The key is shown only when it is created. If it is lost, create a new one and revoke the old one.
What can a key do?
Exactly what the chosen account may: read reports and, if you allowed it and the account may, create internal reports. Every request checks the account's current rights.
What happens if someone changes the chosen account's password?
A password change or reset ends all keys of that account. Create a new key afterwards.
Can the API do more, for example change a status or notify us?
Today it reads reports and creates internal reports. Further access, such as notices to Teams or Power Automate, status changes from a ticket system or reading inventory objects, is set up by Power Local on request for your needs. Get in touch with what you want to connect; we make it possible.