Core-4
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
DELETE | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
DELETE | |
GET | |
POST | |
GET |
Delete environments session recordings sharing passwords
Delete a password from the sharing configuration.
Required API key scopes
sharing_configuration:writePath parameters
- password_idstring
- recording_idstring
Example request
DELETE /api /environments /:environment_id /session_recordings /:recording_id /sharing /passwords /:password_idExample response
Status 204 No response body
Create environments session recordings sharing refresh
Required API key scopes
sharing_configuration:writePath parameters
- recording_idstring
Request parameters
- enabledboolean
- settings
- password_requiredboolean
Response
Example request
POST /api /environments /:environment_id /session_recordings /:recording_id /sharing /refreshExample response
Status 200
List all environments subscriptions
Also available via the PostHog MCP server:
subscriptions-list— List subscriptions
Required API key scopes
subscription:readQuery parameters
- created_bystring
- dashboardinteger
- insightinteger
- limitinteger
- offsetinteger
- orderingstring
- resource_typestringOne of:
"dashboard""insight" - searchstring
- target_typestringOne of:
"email""slack""webhook"
Response
Example request
GET /api /environments /:environment_id /subscriptionsExample response
Status 200
Create environments subscriptions
Also available via the PostHog MCP server:
subscriptions-create— Create subscription
Required API key scopes
subscription:writeRequest parameters
- dashboardintegernull
- insightintegernull
- dashboard_export_insightsarray
- target_type
- target_valuestring
- frequency
- intervalinteger
- byweekdayarraynull
- bysetposintegernull
- countintegernull
- start_datestring
- until_datestringnull
- deletedboolean
- enabledboolean
- titlestringnull
- integration_idintegernull
- invite_messagestringnull
- summary_enabledboolean
- summary_prompt_guidestring
Response
Example request
POST /api /environments /:environment_id /subscriptionsExample response
Status 201
Retrieve environments subscriptions
Also available via the PostHog MCP server:
subscriptions-retrieve— Get subscription
Required API key scopes
subscription:readPath parameters
- idinteger
Response
Example request
GET /api /environments /:environment_id /subscriptions /:idExample response
Status 200
Update environments subscriptions
Also available via the PostHog MCP server:
subscriptions-partial-update— Update subscription
Required API key scopes
subscription:writePath parameters
- idinteger
Request parameters
- dashboardintegernull
- insightintegernull
- dashboard_export_insightsarray
- target_type
- target_valuestring
- frequency
- intervalinteger
- byweekdayarraynull
- bysetposintegernull
- countintegernull
- start_datestring
- until_datestringnull
- deletedboolean
- enabledboolean
- titlestringnull
- integration_idintegernull
- invite_messagestringnull
- summary_enabledboolean
- summary_prompt_guidestring
Response
Example request
PATCH /api /environments /:environment_id /subscriptions /:idExample response
Status 200
Delete environments subscriptions
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
subscription:writePath parameters
- idinteger
Example request
DELETE /api /environments /:environment_id /subscriptions /:idExample response
Status 405 No response body
Create environments subscriptions test delivery
Also available via the PostHog MCP server:
subscriptions-test-delivery-create— Send test delivery
Required API key scopes
subscription:writePath parameters
- idinteger
Example request
POST /api /environments /:environment_id /subscriptions /:id /test-deliveryExample response
Status 202 Test delivery workflow started
Retrieve environments subscriptions summary quota
Required API key scopes
subscription:readExample request
GET /api /environments /:environment_id /subscriptions /summary_quotaExample response
Status 200 Org-wide AI summary quota: count of currently-active summaries and the limit for the org's plan tier. `limit` is null when no cap is configured.
List all subscriptions deliveries
Also available via the PostHog MCP server:
subscriptions-deliveries-list— List subscription deliveries
Paginated delivery history for a subscription. Requires premium subscriptions.
Required API key scopes
subscription:readPath parameters
- subscription_idinteger
Query parameters
- cursorstring
- statusstringOne of:
"completed""failed""skipped""starting"
Response
Example request
GET /api /environments /:project_id /subscriptions /:subscription_id /deliveriesExample response
Status 200
Retrieve subscriptions deliveries
Also available via the PostHog MCP server:
subscriptions-deliveries-retrieve— Get subscription delivery
Fetch one delivery row by id.
Required API key scopes
subscription:readPath parameters
- idstring
- subscription_idinteger
Response
Example request
GET /api /environments /:project_id /subscriptions /:subscription_id /deliveries /:idExample response
Status 200
List all cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /cimd_verification_tokensExample response
Status 200
Create cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:writeRequest parameters
- labelstring
Response
Example request
POST /api /organizations /:organization_id /cimd_verification_tokensExample response
Status 201
Retrieve cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /cimd_verification_tokens /:idExample response
Status 200
Delete cimd verification tokens
Manage CIMD verification tokens for an organization.
A partner embeds the plaintext token in their CIMD metadata document under
posthog_verification_token. When PostHog fetches the metadata, matching
the token links the partner app to this organization and grants a higher
default rate limit for account provisioning.
The plaintext value is only available on creation; we store a hash.
Required API key scopes
organization:writePath parameters
- idstring
Example request
DELETE /api /organizations /:organization_id /cimd_verification_tokens /:idExample response
Status 204 No response body
List all domains
Required API key scopes
organization:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /domainsExample response
Status 200
Create domains
Required API key scopes
organization:writeRequest parameters
- domainstring
- jit_provisioning_enabledboolean
- sso_enforcementstring
- saml_entity_idstringnull
- saml_acs_urlstringnull
- saml_x509_certstringnull
- scim_enabledboolean
Response
Example request
POST /api /organizations /:organization_id /domainsExample response
Status 201
Retrieve domains
Required API key scopes
organization:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /domains /:id