Subscriptions
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET |
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 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 /projects /:project_id /subscriptionsExample response
Status 200
Create 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 /projects /:project_id /subscriptionsExample response
Status 201
Retrieve 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 /projects /:project_id /subscriptions /:idExample response
Status 200
Update 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 /projects /:project_id /subscriptions /:idExample response
Status 200
Delete 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 /projects /:project_id /subscriptions /:idExample response
Status 405 No response body
Create 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 /projects /:project_id /subscriptions /:id /test-deliveryExample response
Status 202 Test delivery workflow started
Retrieve subscriptions summary quota
Required API key scopes
subscription:readExample request
GET /api /projects /:project_id /subscriptions /summary_quota