Skip to main content
The Infrawatch API uses API keys to authenticate requests. You can create and manage keys in API access. Send the key in the X-API-Key request header:
You must make every API call over HTTPS. Requests made over plain HTTP, without an API key, or without the required scope will fail.

Create a key

  1. Open API access.
  2. Choose the account that should own the key.
  3. Select only the scopes the integration needs.
  4. Create the key and copy the secret when it is shown.
Treat the secret like a password. Store it in server-side secret storage and never commit it, log it, or expose it in browser code.

Set the header

Store the key in an environment variable:
Then send it with each request:
Authentication, account selection, scopes, and usage limits are derived from the key. Do not send an organisation identifier with public API requests.

Choose scopes

Scopes limit what a key can do. Common search scopes include: An endpoint page lists the scope it requires. A key can only use scopes allowed by its owning account.

Handle authentication errors

API errors include a stable error.code and request_id. Keep the request ID when contacting support.