Skip to Content
Retentions

List Retentions

GET
/v0/projects/{idOrSlug}/retentions

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

Response Body

Success

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.faststats.dev/v0/projects/string/retentions'
Example Response
[
  {
    "id": "string",
    "projectId": "string",
    "name": "string",
    "description": "string",
    "definition": {
      "granularity": "day",
      "cohortType": "first",
      "returnType": "exact",
      "startEvent": "string",
      "returnEvent": "string",
      "filters": [
        {
          "field": "string",
          "operator": "is",
          "value": "string"
        }
      ]
    },
    "display": {
      "view": "curve"
    },
    "dashboardId": "string",
    "position": {
      "x": 0,
      "y": 0,
      "w": 0,
      "h": 0
    },
    "createdAt": "string",
    "updatedAt": "string"
  }
]