provider cohorts GET /api/projects/{project_id}/cohorts/{id}/persons/
@utdk/posthog /api/projects/{project_id}/cohorts/{id}/persons/
cohorts_persons_retrieve
format query
enum: csv, json
id path required
A unique integer value identifying this cohort.
integer
limit query
Maximum number of persons to return per page (defaults to 100).
integer
offset query
Number of persons to skip before starting to return results.
integer
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
cohortsPersonsRetrieve
GET/api/projects/{project_id}/cohorts/{id}/persons/

Parameters

required

A unique integer value identifying this cohort.

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Maximum number of persons to return per page (defaults to 100).

Number of persons to skip before starting to return results.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.cohortsPersonsRetrieve()