PostHog
Get PostHog Cohort
Get PostHog Cohort.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| idstring · required | string | required | PostHog id from the matching lookup in this project. |
| project_idstring · required | string | required | Project ID returned by List PostHog Projects. Uses only the selected connected account. |
Response schema
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "number"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"count": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"query": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"groups": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"deleted": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"filters": {
"anyOf": [
{
"type": "object",
"required": [],
"properties": {
"properties": {
"anyOf": [
{
"type": "object",
"required": [],
"properties": {
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"values": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"bytecode": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"negation": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"operator": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"seq_event": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"event_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"time_value": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"min_periods": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"conditionHash": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"event_filters": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"time_interval": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"total_periods": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"bytecode_error": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"operator_value": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"seq_event_type": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"seq_time_value": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"explicit_datetime": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"seq_time_interval": {
"anyOf": [
{},
{
"type": "null"
}
]
},
"explicit_datetime_to": {
"anyOf": [
{},
{
"type": "null"
}
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"version": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"is_static": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"created_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"created_by": {
"anyOf": [
{
"type": "object",
"required": [],
"properties": {
"id": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"uuid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"last_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"first_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"distinct_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"hedgehog_config": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"is_email_verified": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"role_at_organization": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"cohort_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"experiment_set": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "null"
}
]
},
"is_calculating": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"pending_version": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"last_calculation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"_create_in_folder": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"errors_calculating": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"last_error_message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"_create_static_person_ids": {
"anyOf": [
{
"type": "array",
"items": {}
},
{
"type": "null"
}
]
},
"last_backfill_person_properties_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
}