SDK Cohorts (V1)

Check cohort membership

Changed on

Resolves whether each provided userId is a member of the named cohort for the calling application/environment. Results are served from a per-user Redis cache where possible and computed against ClickHouse otherwise. If the cohort does not exist, returns cohortExists: false with isMember: false for every user. Rate-limited to 60 requests per minute per SDK key.

post/sdk/v1/cohorts/membership

Request

  • Base URL
    https://api.gamebeast.gg
  • Auth
    API key in header authorization

Headers

boolean
OR
'true' | 'false'
project-idinteger

Request body

cohortNamestring required
userIdsstring[] required

Response

Default Response

cohortExistsboolean required

Changes

    • breaking

      the response's body type changed from array to object for status

    • info

      for the header request parameter project-id, the exclusiveMinimum was decreased from true to 0.00

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      api operation id checkCohortMembership was added