Broadcasts
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
POST | |
GET | |
POST | |
GET | |
POST | |
PATCH | |
DELETE | |
POST |
List all hog flows
Required API key scopes
hog_flow:readQuery parameters
- broadcast_eligibleboolean
- broadcast_statusstring
- created_atstring
- created_bystring
- idstring
- latest_send_firstboolean
- limitinteger
- namestring
- offsetinteger
- optimization_enabledboolean
- origin_productstringOne of:
"broadcasts""loops""transactional_emails""transactional_push" - searchstring
- source_recordstring
- statusstringOne of:
"active""archived""draft" - tagsstring
- triggerstring
- typestring
- updated_atstring
Response
Example request
GET /api /projects /:project_id /hog_flowsExample response
Status 200
RESPONSE
Create hog flows
Required API key scopes
hog_flow:writeRequest parameters
- namestring | null
- descriptionstringDefault:
- tagsarray
- status
- origin_product
- source_recordstring | null
- entry_attempt_idstring | null
- trigger_masking
- conversion
- exit_condition
- email_sending_rate_limit
- edgesarray
- actionsarray
- variablesarray
Response
Example request
POST /api /projects /:project_id /hog_flowsExample response
Status 201
RESPONSE
Retrieve hog flows
Required API key scopes
hog_flow:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /hog_flows /:idExample response
Status 200
RESPONSE
Update hog flows
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- namestring | null
- descriptionstringDefault:
- tagsarray
- status
- trigger_masking
- conversion
- exit_condition
- email_sending_rate_limit
- edgesarray
- actionsarray
- variablesarray
Response
Example request
PATCH /api /projects /:project_id /hog_flows /:idExample response
Status 200
RESPONSE
Delete hog flows
Required API key scopes
hog_flow:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /hog_flows /:idExample response
Status 204 No response body
List all hog flows batch jobs
Required API key scopes
hog_flow:readPath parameters
- idstring
Example request
GET /api /projects /:project_id /hog_flows /:id /batch_jobsExample response
Status 200
RESPONSE
Create hog flows batch jobs
Required API key scopes
hog_flow:writeperson:readPath parameters
- idstring
Request parameters
- status
- hog_flowstring
- variables
Response
Example request
POST /api /projects /:project_id /hog_flows /:id /batch_jobsExample response
Status 200
RESPONSE
Create hog flows batch jobs cancel
Stop a batch run: no more of its audience is enrolled, and every run of it still in flight is canceled.
Stopping is asynchronous: runs are flagged here, then terminated by the workflow workers. Steps that already executed, like sent messages, are not undone. Already-finished batch runs are left untouched.
Required API key scopes
hog_flow:writePath parameters
- batch_job_idstring
- idstring
Response
Example request
POST /api /projects /:project_id /hog_flows /:id /batch_jobs /:batch_job_id /cancelExample response
Status 200
RESPONSE
Retrieve hog flows metrics
Also available via the PostHog MCP server:
workflows-stats— Get workflow stats
Required API key scopes
hog_flow:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- breakdown_bystringDefault:
kindOne of:"name""kind" - instance_idstring
- intervalstringDefault:
dayOne of:"hour""day""week" - kindstring
- namestring
Response
Example request
GET /api /projects /:project_id /hog_flows /:id /metricsExample response
Status 200
RESPONSE
Create hog flows publish
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- confirmbooleanDefault:
false - confirm_tokenstring
- sandbox_sender_warnedboolean | null
Response
Example request
POST /api /projects /:project_id /hog_flows /:id /publishExample response
Status 200
RESPONSE
List all hog flows schedules
Required API key scopes
hog_flow:readPath parameters
- idstring
Example request
GET /api /projects /:project_id /hog_flows /:id /schedulesExample response
Status 200
RESPONSE
Create hog flows schedules
Required API key scopes
hog_flow:writeperson:readPath parameters
- idstring
Request parameters
- rrulestring
- starts_atstring
- timezonestring
- variables
Response
Example request
POST /api /projects /:project_id /hog_flows /:id /schedulesExample response
Status 200
RESPONSE
Update hog flows schedules
Required API key scopes
hog_flow:writePath parameters
- idstring
- schedule_idstring
Request parameters
- rrulestring
- starts_atstring
- timezonestring
- variables
Response
Example request
PATCH /api /projects /:project_id /hog_flows /:id /schedules /:schedule_idExample response
Status 200
RESPONSE
Delete hog flows schedules
Required API key scopes
hog_flow:writePath parameters
- idstring
- schedule_idstring
Example request
DELETE /api /projects /:project_id /hog_flows /:id /schedules /:schedule_idExample response
Status 204 No response body
Create hog flows user blast radius
Required API key scopes
hog_flow:readperson:readRequest parameters
- filtersobject
- group_type_indexinteger | null
- dedupe_key
- sends_emailbooleanDefault:
true - email_sending_rate_limit
- refreshbooleanDefault:
false
Response
Example request
POST /api /projects /:project_id /hog_flows /user_blast_radiusExample response
Status 200
RESPONSE





