{
  "title": "Tenant API Access",
  "images": [],
  "text": "<p>The EnRep Client API lets authorised external systems read live tenant data for integrations, dashboards, asset systems, and compliance workflows.</p><div class=\"alert alert-info\"><strong>Read-only access:</strong> the API can retrieve clients, locations, assets, and reports. It cannot change EnRep records.</div><h3>How it works</h3><ol><li>Generate an API key and store it securely. The full key is shown once.</li><li>Send the key with each request using the <strong>X-API-Key</strong> header.</li><li>Call the required endpoint and use filters to narrow the returned records.</li></ol><h3>Common examples</h3><p><strong>Assets for one site</strong></p><pre><code>GET /api/v1/assets.php?clientnumber=1001&amp;locnumber=123\nX-API-Key: YOUR_API_KEY</code></pre><p><strong>Reports examined in a date range</strong></p><pre><code>GET /api/v1/reports.php?examination_from=01-05-2026&amp;examination_to=31-05-2026&amp;date_format=uk\nX-API-Key: YOUR_API_KEY</code></pre><h3>Key management</h3><p>Regenerating the key immediately invalidates the previous key. Disabling API access stops the current key from working.</p><p class=\"mt-4\"><a class=\"btn btn-info\" href=\"{{ROOT_URL}}/functions/api_manual.php\" target=\"_blank\" rel=\"noopener\"><i class=\"fad fa-file-download\"></i> Download the EnRep Client API manual</a></p>"
}
