GET under https://api.cimento.app/v1, answers JSON, and takes an access token in the Authorization header.
A worked request
This asks for three figures for each month of 2026: simulations sent, links clicked, and the failure rate.200 OK
groupBy field you asked for. failure_rate is a percentage of the people sent a simulation. totalCount says there are ten rows in all, and nextOffset is where the next page starts.
The route needs at least one metric. The smallest request is one figure across everything:
200 OK
groupBy field.
Writing parameters
- Lists take commas. Give a parameter that takes several values once, with commas between them:
metrics=sent,clicked_link. - Give each parameter once. A parameter given twice is refused, as
limit=2&limit=3is. - Unknown parameters are refused. A misspelled parameter answers
400and names it, so a typo is never silently ignored. - Days are
YYYY-MM-DD.startDate=2026-01-01andendDate=2026-12-31include both days. - IDs are UUIDs. Take them from a list route, such as
campaignIdfrom/v1/phishing/campaigns.
Reading responses
- Times are RFC 3339 in UTC, such as
2026-10-27T17:23:46.626Z. Parse them: the number of decimal places varies. - A field can be absent.
nextOffsetandnextCursorare left out on the last page, and optional details are left out when Cimento has none. - Ignore fields you don’t recognize. Cimento may add fields to a response.
appUrlopens the record in Cimento. Campaigns, courses and templates carry it, for linking back from your own tool.
Paging
Lists come a page at a time. Which way a route pages depends on the route.limit is at most 100 everywhere. It defaults to 20 on the offset routes, 50 on the cursor routes and 30 on /v1/autophish/activity.
With limit and offset
Pass a page’snextOffset back as offset to get the next page. Stop when a page has no nextOffset.
200 OK
offset can be any number from 0: it does not have to be a multiple of limit. An offset past the end answers an empty list.
Reading one phishing campaign, /v1/phishing/campaigns/{campaignId}, pages its participants the same way. There totalCount counts the participants.
/v1/phishing/analytics works out the whole result for the first page and keeps it for about a minute for the pages after it. Read a result through without long pauses.With a cursor
Pass a page’snextCursor back as cursor. Stop when a page has no nextCursor.
200 OK
Reading a whole list
These use theget function from the Python example.
Python