Skip to main content
The Analytics API lets your own systems read your organization’s phishing, training and AutoPhish data as JSON over HTTPS. Use it to feed a BI tool, a SIEM or a script without exporting files by hand. The API is read-only. Every route is a GET, and nothing you send can change your campaigns, your people or your settings.

How it works

1

Create a service account

An admin creates a service account in Cimento and chooses what it can read. Cimento gives it a client ID and a client secret. See Service accounts.
2

Get an access token

Your system sends the client ID and client secret to the token URL and gets back an access token that lasts an hour. See Authentication.
3

Call the API

Your system sends the access token with each request. See Making requests.

At a glance

In this guide

Service accounts

Create a service account, choose its scopes and copy its client ID and client secret.

Authentication

Exchange the client ID and client secret for an access token, and send it with a request.

Making requests

A worked request, how to write parameters, and how to page through a list.

Scopes

What each scope lets a service account read, and which routes need it.

Errors and rate limits

What each error means, what to do about it, and how fast you can call.

Rotating secrets

Replace a client secret without downtime, and cut off one that has leaked.
The API reference lists every route with its parameters and what it returns.

Before you start

  • A Cimento admin. People in the Admin permission group can create and manage service accounts, under Admin → Integrations → API access. If you were just added to that group, sign out and back in.
  • The permissions you want to hand out. A service account can be given only the scopes its creator holds. See Scopes.
  • Somewhere safe to keep a secret. A client secret is shown once. Store it in a secrets manager or your tool’s credential store, not in source code.

What you can read

What a service account can read depends on its scopes.