List the AB tests (comparison groups) registered for the authenticated company
Returns every AB test registered for the company, with the players enrolled in each test (including their traffic percentages) and the test start/finish timestamps. Results are ordered by creation date (newest first). Use the optional `start_date`/`end_date` filters to narrow results by the comparison group `created_at`.
Authorization
apiToken apiVersion userAgent Access the application and copy your api token, then, just set the header X-Api-Token with it.
In: header
The API version to use. Currently supported versions are:
- v1: The current stable version
A request without this header, or with any other value, is answered by the edge with 404 and {"error_msg":"404 Route Not Found"}.
In: header
A non-empty User-Agent identifying your integration is required.
Requests without it are rejected at the edge before reaching the API.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/comparison_groups/list" \ -H "Content-Type: application/json" \ -d '{ "start_date": "2026-01-01 00:00:00", "timezone": "America/Sao_Paulo" }'[ { "id": "string", "name": "string", "player_ids": [ "string" ], "players": [ { "player_id": "string", "traffic_percentage": 0, "started_at": "2019-08-24T14:15:22Z", "locked": true } ], "started_at": "string", "finished_at": "string", "created_at": "string" }]List all custom metrics of a player POST
Returns the retention custom metrics of a player and, for each one, how many sessions reached the second it marks.
Returns the full analytics metrics for up to 2 players of an AB test POST
Returns, in a single response, the full set of analytics metrics for up to 2 players of an AB test: views, plays, finishes, clicks, conversions with revenue in USD/BRL/EUR, engagement, pitch audience and pitch retention, as well as the derived play rate, conversion rate and revenue per visitor (RPV). Each item's `start_date` is optional — when omitted, it falls back to the player's own `started_at` (from the comparison group's `players` list) and, if that is not set, to the comparison group's `started_at`. When `end_date` is omitted, results run through the current time.