Workflow
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET |
Create workflow imports
Turns Customer.io automations into draft workflows. Pass each automation as Customer.io's Journeys UI API returns it. Pass the templates its messages use, or leave them out when the project stored a Customer.io App API key, and PostHog reads them. Each result lists what the import changed or left out. Importing an automation again updates its draft, unless that workflow is no longer a draft. Set dry_run to preview without saving.
Required API key scopes
hog_flow:writeRequest parameters
- source
- campaignsarray
- snippetsobject
- segment_cohortsobject
- layoutsobject
- sender_identitiesarray
- segmentsarray
- dry_runbooleanDefault:
false
Response
Example request
POST /api /projects /:project_id /workflow_importsExample response
Status 200
RESPONSE
Retrieve workflow imports for workflow
Required API key scopes
hog_flow:readQuery parameters
- hog_flow_idstring
Response
Example request
GET /api /projects /:project_id /workflow_imports /for_workflowExample response
Status 200
RESPONSE





