Skip to main content
Every route is a 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
Each row has one field for each metric and each 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
The API reference lists every metric and 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=3 is.
  • Unknown parameters are refused. A misspelled parameter answers 400 and names it, so a typo is never silently ignored.
  • Days are YYYY-MM-DD. startDate=2026-01-01 and endDate=2026-12-31 include both days.
  • IDs are UUIDs. Take them from a list route, such as campaignId from /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. nextOffset and nextCursor are 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.
  • appUrl opens 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’s nextOffset back as offset to get the next page. Stop when a page has no nextOffset.
200 OK
The example shows one of the page’s two courses. 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’s nextCursor back as cursor. Stop when a page has no nextCursor.
200 OK
The example shows four of a round’s fields. A cursor is opaque: send it back as you got it, and don’t build one yourself.

Reading a whole list

These use the get function from the Python example.
Python
A long list takes many requests. Leave about a second between them to stay inside the rate limit.