Skip to main content
GET
/
api
/
v1
/
ab-tests
/
{abTestId}
/
stats
Get A/B Test Stats
curl --request GET \
  --url https://api.sequenzy.com/api/v1/ab-tests/{abTestId}/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "abTestId": "ab_abc123",
  "period": "30d",
  "stats": {
    "sent": 200,
    "delivered": 198,
    "opened": 92,
    "clicked": 18,
    "openRate": 46.46,
    "clickRate": 9.09
  },
  "variants": [
    {
      "id": "var_a",
      "label": "A",
      "subject": "Welcome",
      "isWinner": false,
      "stats": {
        "sent": 100,
        "delivered": 99,
        "opened": 42,
        "clicked": 7,
        "openRate": 42.42,
        "clickRate": 7.07
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt

Use this file to discover all available pages before exploring further.

Get aggregate A/B test stats and per-variant stats for the authenticated company.

Request

abTestId
string
required
A/B test ID.
period
string
Optional period: 1h, 24h, 7d, 30d, or 90d.
start
string
Custom range start as ISO 8601. Requires end.
end
string
Custom range end as ISO 8601. Requires start.
curl "https://api.sequenzy.com/api/v1/ab-tests/ab_abc123/stats?period=30d" \
  -H "Authorization: Bearer YOUR_API_KEY"

Responses

{
  "success": true,
  "abTestId": "ab_abc123",
  "period": "30d",
  "stats": {
    "sent": 200,
    "delivered": 198,
    "opened": 92,
    "clicked": 18,
    "openRate": 46.46,
    "clickRate": 9.09
  },
  "variants": [
    {
      "id": "var_a",
      "label": "A",
      "subject": "Welcome",
      "isWinner": false,
      "stats": {
        "sent": 100,
        "delivered": 99,
        "opened": 42,
        "clicked": 7,
        "openRate": 42.42,
        "clickRate": 7.07
      }
    }
  ]
}