Hog
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
PATCH | |
GET | |
GET | |
GET | |
POST | |
POST | |
POST | |
POST | |
PATCH | |
GET | |
GET | |
GET | |
GET | |
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" - 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
- 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
Update hog flows actions email
Required API key scopes
hog_flow:writePath parameters
- action_idstring
- idstring
Request parameters
- base_updated_atstring
- operationsarray
- email_patch
Response
Example request
PATCH /api /projects /:project_id /hog_flows /:id /actions /:action_id /emailExample response
Status 200
RESPONSE
Retrieve hog flows assets
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
Query parameters
- action_idstring
- afterstringDefault:
-30d - beforestring
- distinct_idstring
- invocation_idstring
- limitintegerDefault:
50 - offsetintegerDefault:
0 - parent_run_idstring
- searchstring
Example request
GET /api /projects /:project_id /hog_flows /:id /assetsExample response
Status 200
RESPONSE
Retrieve hog flows asset content
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
Query parameters
- action_idstringDefault:
- invocation_idstring
Example request
GET /api /projects /:project_id /hog_flows /:id /assets /contentExample response
Status 200
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
Create hog flows convert to
Move a workflow to broadcasts. It keeps its id, runs and metrics, leaves the workflows list and opens in the broadcast editor. This cannot be undone.
Required API key scopes
hog_flow:writePath parameters
- idstring
Response
Example request
POST /api /projects /:project_id /hog_flows /:id /convert_to_broadcastExample response
Status 200
RESPONSE
Create hog flows discard draft
Required API key scopes
hog_flow:writePath parameters
- idstring
Response
Example request
POST /api /projects /:project_id /hog_flows /:id /discard_draftExample response
Status 200
RESPONSE
Update hog flows graph
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- base_updated_atstring
- operationsarray
Response
Example request
PATCH /api /projects /:project_id /hog_flows /:id /graphExample response
Status 200
RESPONSE
Retrieve hog flows in flight
Required API key scopes
hog_flow:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /hog_flows /:id /in_flightExample response
Status 200
RESPONSE
Retrieve hog flows invocation results
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- distinct_idstring
- error_message_containsstring
- limitintegerDefault:
50 - statusstring
Example request
GET /api /projects /:project_id /hog_flows /:id /invocation_resultsExample response
Status 200
RESPONSE
Retrieve hog flows invocation result
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
- invocation_idstring
Response
Example request
GET /api /projects /:project_id /hog_flows /:id /invocation_results /:invocation_idExample response
Status 200
RESPONSE
Retrieve hog flows invocation results count
Count invocations matching the same filters as the list endpoint, without its 500-row cap.
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- distinct_idstring
- error_message_containsstring
- statusstring
Response
Example request
GET /api /projects /:project_id /hog_flows /:id /invocation_results_countExample response
Status 200
RESPONSE
Create hog flows invocations
Required API key scopes
hog_flow:writegroup:readPath parameters
- idstring
Request parameters
- configuration
- globalsobject
- mock_async_functionsbooleanDefault:
true - current_action_idstring
- use_draftbooleanDefault:
false
Example request
POST /api /projects /:project_id /hog_flows /:id /invocations




