API keys
API keys let other systems (an ERP, BI, your own app) call the Inspections API. A key is not a person: it reaches only your company’s data, only with the permissions you choose. It can never reach the customer portal or user management endpoints.
You manage keys on the Integrations → API keys screen. The screen needs the “Manage API Keys” permission; without it, it says “Managing API keys needs the “Manage API Keys” permission.”
The key list
Section titled “The key list”| Column | Meaning |
|---|---|
| Name | The name you gave the key. |
| Prefix | The visible part of the key; records and logs identify the key by it. |
| Permissions | How many permissions were given (“3 permissions”). |
| Expires | The date the key stops being valid. |
| Last used | The time of the last request, or Never. |
| Status | Active, Expired or Revoked. |
Generating a key
Section titled “Generating a key”- Click New key. The New API key window opens.
- Name: type a name describing the system that will use the key, for example
ERP integration(at most 100 characters). - Valid for: 30, 90 (default), 180, 365 or 730 days.
- Permissions: choose what the key can do (table below). You must choose at least one permission.
- Click Create.
- In the Your key is ready window, take the key with Copy and keep it somewhere safe. Then click I copied it, close.
Permissions
Section titled “Permissions”| Group | Permission | What it opens |
|---|---|---|
| Inspections | View inspections | The inspection list and detail. |
| Inspections | View all inspections | The whole company’s inspections. Because the key is a member of no team or location, the list comes back empty without this permission. |
| Findings | View findings | The finding list. |
| Corrective actions | View corrective actions | The corrective action list and detail. |
| Corrective actions | Manage corrective actions (due date, owner) | Changing the due date or owner (applied at once). |
| Corrective actions | Verify or send back corrective actions | Verifying and closing a corrective action, or sending it back to its owner. |
| Reports | Download reports | A published inspection report. |
| Analytics and visitor feedback | View analytics and visitor votes | The visitor feedback list. |
| Locations | View locations | All locations. To give this permission you must have the permission to manage locations. |
You can give only permissions you have yourself. A permission of a module switched off for your organization cannot be given.
Using the key
Section titled “Using the key”Send this header with every request:
Authorization: ApiKey <key>The key carries your company itself; no separate company header is needed. Details and examples: REST API.
Revoking a key
Section titled “Revoking a key”- In the list, click Revoke on the key’s row.
- In the “Revoke the key: {name}” window, click Revoke again.
Every later request with this key is refused. Revoking cannot be undone; generate a new key if needed. An expired key is also refused automatically; before it expires, generate a new one, switch your system to it, then revoke the old one.
Record
Section titled “Record”Actions made with a key show in the audit trail as “API key {prefix} ({name})”; the inspection’s timeline shows the key’s name and prefix. No action is written in a person’s name.
Error messages
Section titled “Error messages”| Message | Cause |
|---|---|
| “Enter a name (at most 100 characters).” | The name is empty or too long. |
| “Choose at least one permission.” | No permission was chosen. |
| “The key could not be created.” | The server refused the request; for example a permission you do not have was chosen. |
| “The API key was not found.” | The key was deleted or belongs to another company. |