Hog
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
GET | |
POST | |
PATCH | |
GET | |
GET | |
POST | |
GET | |
GET | |
GET | |
POST | |
GET | |
POST |
List all environments hog flows
Required API key scopes
hog_flow:readQuery parameters
- created_atstring
- created_byinteger
- idstring
- limitinteger
- offsetinteger
- statusstringOne of:
"active""archived""draft" - updated_atstring
Response
Example request
GET /api /environments /:environment_id /hog_flowsExample response
Status 200
RESPONSE
Create environments hog flows
Required API key scopes
hog_flow:writeRequest parameters
- namestringnull
- descriptionstringDefault:
- status
- trigger_masking
- conversion
- exit_condition
- edgesarray
- actionsarray
- variablesarray
Response
Example request
POST /api /environments /:environment_id /hog_flowsExample response
Status 201
RESPONSE
Retrieve environments hog flows
Required API key scopes
hog_flow:readPath parameters
- idstring
Response
Example request
GET /api /environments /:environment_id /hog_flows /:idExample response
Status 200
RESPONSE
Update environments hog flows
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- namestringnull
- descriptionstringDefault:
- status
- trigger_masking
- conversion
- exit_condition
- edgesarray
- actionsarray
- variablesarray
Response
Example request
PATCH /api /environments /:environment_id /hog_flows /:idExample response
Status 200
RESPONSE
Delete environments hog flows
Required API key scopes
hog_flow:writePath parameters
- idstring
Example request
DELETE /api /environments /:environment_id /hog_flows /:idExample response
Status 204 No response body
Retrieve environments 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 /environments /:environment_id /hog_flows /:id /assetsExample response
Status 200
RESPONSE
Retrieve environments hog flows asset content
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
Query parameters
- action_idstringDefault:
- invocation_idstring
Example request
GET /api /environments /:environment_id /hog_flows /:id /assets /contentExample response
Status 200
List all environments hog flows batch jobs
Required API key scopes
hog_flow:readPath parameters
- idstring
Example request
GET /api /environments /:environment_id /hog_flows /:id /batch_jobsExample response
Status 200
RESPONSE
Create environments hog flows batch jobs
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- status
- hog_flowstring
- filters
- variables
Response
Example request
POST /api /environments /:environment_id /hog_flows /:id /batch_jobsExample response
Status 200
RESPONSE
Update environments hog flows graph
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- operationsarray
Response
Example request
PATCH /api /environments /:environment_id /hog_flows /:id /graphExample response
Status 200
RESPONSE
Retrieve environments hog flows invocation results
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
Query parameters
- afterstringDefault:
-7d - beforestring
- distinct_idstring
- limitintegerDefault:
50 - statusstring
Example request
GET /api /environments /:environment_id /hog_flows /:id /invocation_resultsExample response
Status 200
RESPONSE
Retrieve environments hog flows invocation result
Required API key scopes
hog_flow:readperson:readPath parameters
- idstring
- invocation_idstring
Response
Example request
GET /api /environments /:environment_id /hog_flows /:id /invocation_results /:invocation_idExample response
Status 200
RESPONSE
Create environments hog flows invocations
Required API key scopes
hog_flow:writegroup:readPath parameters
- idstring
Request parameters
- configuration
- globalsobject
- mock_async_functionsbooleanDefault:
true - current_action_idstring
Example request
POST /api /environments /:environment_id /hog_flows /:id /invocationsExample response
Status 200 No response body
Retrieve environments hog flows logs
Required API key scopes
hog_flow:readPath parameters
- idstring
Query parameters
- afterstring
- beforestring
- instance_idstring
- levelstring
- limitintegerDefault:
50 - searchstring
Example request
GET /api /environments /:environment_id /hog_flows /:id /logsExample response
Status 200 No response body
Retrieve environments hog flows metrics
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 /environments /:environment_id /hog_flows /:id /metricsExample response
Status 200
RESPONSE
Retrieve environments hog flows metrics totals
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 /environments /:environment_id /hog_flows /:id /metrics /totalsExample response
Status 200
RESPONSE
Create environments hog flows rerun
Rerun past invocations of this hog flow from their stored payloads.
Same shape and semantics as the hog function rerun endpoint —
proxies through to the CDP worker, which reads matching rows from
ClickHouse, rehydrates from invocation_globals, and re-enqueues
onto cyclotron with is_retry=1.
Because rerun replays historical event/person/group data, it requires
person:read and group:read on top of hog_flow:write.
Required API key scopes
hog_flow:writeperson:readgroup:readPath parameters
- idstring
Request parameters
- filter
Response
Example request
POST /api /environments /:environment_id /hog_flows /:id /rerunExample response
Status 200
RESPONSE
Status 400
RESPONSE
List all environments hog flows schedules
Required API key scopes
hog_flow:readPath parameters
- idstring
Example request
GET /api /environments /:environment_id /hog_flows /:id /schedulesExample response
Status 200
RESPONSE
Create environments hog flows schedules
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- rrulestring
- starts_atstring
- timezonestring
- variables
Response
Example request
POST /api /environments /:environment_id /hog_flows /:id /schedulesExample response
Status 200
RESPONSE