Skip to Content
Session Replays

Preview Replay Summary Rules

POST
/v0/projects/{idOrSlug}/replays/summary-rules/preview

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
mode*string
Value in"off""all""filtered"
sampleRate*number|
dailyLimit*number||null
conditionSets*array<>
people*array<>

Response Body

ReplaySummaryPreview

application/json
  1. response
windowDays*number|
eligible*number|
selected*number|
Example Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/replays/summary-rules/preview' \
  -H 'Content-Type: application/json' \
  -d '{
  "mode": "off",
  "sampleRate": 0,
  "dailyLimit": 0,
  "conditionSets": [
    {
      "conditions": [
        {
          "field": "country",
          "operator": "is",
          "values": [
            "string"
          ],
          "traitKey": "string"
        }
      ]
    }
  ],
  "people": [
    {
      "personId": "string",
      "effect": "include"
    }
  ]
}'
Example Response
{
  "windowDays": 0,
  "eligible": 0,
  "selected": 0
}