Hog
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
GET | |
POST | |
POST | |
PATCH | |
GET | |
GET | |
POST | |
GET | |
GET | |
GET | |
POST | |
POST |
List all 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 /projects /:project_id /hog_flowsExample response
Status 200
RESPONSE
Create 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 /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
- namestringnull
- descriptionstringDefault:
- status
- trigger_masking
- conversion
- exit_condition
- 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
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 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 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 /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
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 /invocationsExample response
Status 200 No response body
Retrieve 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 /projects /:project_id /hog_flows /:id /logsExample response
Status 200 No response body
Retrieve 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 /projects /:project_id /hog_flows /:id /metricsExample response
Status 200
RESPONSE
Retrieve 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 /projects /:project_id /hog_flows /:id /metrics /totalsExample response
Status 200
RESPONSE
Create hog flows publish
Required API key scopes
hog_flow:writePath parameters
- idstring
Request parameters
- confirmbooleanDefault:
false - confirm_tokenstring
Response
Example request
POST /api /projects /:project_id /hog_flows /:id /publishExample response
Status 200
RESPONSE
Create 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 /projects /:project_id /hog_flows /:id /rerunExample response
Status 200
RESPONSE
Status 400
RESPONSE