Skip to main content
GET
/
cohorts
List cohorts
curl --request GET \
  --url https://api.recurr.dev/v1/cohorts \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "cohort_01HQX...",
      "name": "High-LTV annual subs",
      "definition": {
        "status": [],
        "tenure_days_min": 123,
        "tenure_days_max": 123,
        "plan_ids": [
          "<string>"
        ],
        "tags_include": [
          "<string>"
        ],
        "tags_exclude": [
          "<string>"
        ],
        "engagement_score_min": 123
      },
      "member_count": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "used_by_motions": [
        "<string>"
      ],
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>"
}

Authorizations

Authorization
string
header
required

Your Recurr secret API key as a Bearer token: Authorization: Bearer rk_live_….

Keys are environment-scoped — rk_live_ operates on live data, rk_test_ on isolated test data (see Test mode). Create, scope, and rotate keys in your dashboard (Settings → API keys, developer role). Secret keys are server-side only — never ship them in an app binary or client JavaScript.

Query Parameters

limit
integer
default:50

Maximum number of items to return (1-100, default 50).

Required range: 1 <= x <= 100
starting_after
string

Cursor for pagination. Pass the next_cursor from the previous response to fetch the next page.

ending_before
string

Cursor for reverse pagination.

Response

200 - application/json

Cohort list

data
object[]
required
has_more
boolean
required
next_cursor
string | null