Measure
Public API
Your results belong in your tools too. The ClickNoRisk API lets you pull the status of each campaign, a full overview of all of them and every result into your own reports, warehouse or dashboards — with keys tied to a named person and an audit trail of everything they do.
What you can do with it
- Read the status of every campaign, or poll one campaign while it runs.
- Get a full overview of all your campaigns: totals, rates, campaigns by status and channel, latest campaigns.
- Export all results — one row per person and campaign — as CSV or paged JSON, or only what changed since a given date.
- Feed your BI tool, data warehouse or internal reports with the same figures as the dashboard.
The API is read-only. It cannot create, change or delete anything, and a key only ever sees its own organisation.
API keys: who creates them
- Sign in as an administrator and create a key with your session: send a POST to /api/api-keys with a name, an optional expiry in days and your password.
- Copy the token from the response straight away and store it in your secret manager. It starts with cnr_.
- Send it with every request, in the X-API-Key header or as a Bearer token.
- List your keys, see what each one did, or revoke one at any time.
- A key belongs to one user account and acts as that account. Only that person can create it, while signed in, and they must re-enter their current password. Nobody else — not another administrator, not our team — can create a key for someone.
- The owner must be an active administrator with the permission to view reports. Each person can hold up to 5 active keys.
- You can set an expiry date.
- The token is shown once, at creation. Only a fingerprint is stored, so we cannot show it again: if it is lost, revoke the key and create another.
- The key stops working the moment its owner loses the right to use it: account disabled, demoted, moved, signed out everywhere after a password change, or blocked.
- The account owner receives an email when a key is created on their account, when someone else revokes it, and when their API access is blocked.
curl -X POST "$BASE/api/api-keys" -b session-cookie.txt \
-H "Content-Type: application/json" \
-d '{"name":"Nightly export","expiresInDays":90,"password":"…"}'Endpoints
- Campaign list filters: status, channel, test campaigns, start dates, paging.
- Results filters: campaign, person status, and since — a date after which a row changed, for incremental synchronisation.
- JSON is paged, with a stable order. CSV is the complete export, streamed in one response.
- Add anonymise=true to replace names and email addresses by an opaque, stable reference.
Replace $BASE with the address you use to sign in to ClickNoRisk.
| Need | Call |
|---|---|
| Status of every campaign | GET /api/v1/campaigns |
| Status of one campaign — light, made to be polled | GET /api/v1/campaigns/{id}/status |
| Full overview of all campaigns | GET /api/v1/overview |
| Full detail of one campaign | GET /api/v1/campaigns/{id} |
| Export all results | GET /api/v1/results?format=csv |
| Results of one campaign | GET /api/v1/campaigns/{id}/results |
curl -H "X-API-Key: $KEY" "$BASE/api/v1/overview"
curl -H "X-API-Key: $KEY" "$BASE/api/v1/campaigns?status=STARTED"
curl -H "X-API-Key: $KEY" "$BASE/api/v1/campaigns/$ID/status"
curl -H "X-API-Key: $KEY" -o results.csv \
"$BASE/api/v1/results?format=csv&since=2026-10-01T00:00:00Z"The figures
- Each campaign carries counters (targets, sent, opened, clicked, reported, submitted, interacted) and rates in percent of its targets — the same definitions as the dashboard.
- Opens and clicks produced by security gateways that follow links are kept out of the counters and reported separately in the campaign detail.
- Reported is filled for Microsoft 365 organisations that use phishing report detection.
- All dates are in UTC. Results contain personal data: use the anonymised export when the consumer does not need names.
Audit trail and control
- Every call is recorded: which key, which person, from which address, what was requested, the result and how many rows were returned. Refused attempts, key creation, revocation and blocking are recorded too.
- The log is append-only: nothing in the product edits or deletes it, and it outlives the key, the account and the organisation it refers to.
- Each owner sees what their own keys did. Administrators who manage the organisation settings see every key of the organisation with its owner and last use, can read the organisation's log and can revoke any key — but cannot create one for someone else.
- If a key is used illegitimately, our team can block the owner's API access: all their keys are revoked immediately, new ones cannot be created, and the block is checked on every call. Blocking is a human decision backed by the log, never automatic.
Treat a key like a password: store it in a secret manager, give it an expiry, restrict it to the addresses that need it and revoke it when the integration ends.
Errors and limits
Every error comes as a small JSON object with a code and a message. For a regular export, call the CSV endpoint once and use the since parameter next time instead of downloading everything again.
| Code | Meaning |
|---|---|
| 401 INVALID_API_KEY | The key is unknown, revoked or expired. |
| 403 API_ACCESS_DENIED | The key's owner no longer has the right to use the API. |
| 403 LICENCE_EXPIRED | The organisation's licence has expired. |
| 429 RATE_LIMITED | Too many requests: wait and retry. Repeated failed authentications from one address are also slowed. |
| 404 NOT_FOUND | The campaign does not exist in your organisation. |
| 400 BAD_REQUEST | A parameter is invalid. |