Workflow

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

GET

Retrieve workflow setup

Whether a project is set up to send messages from workflows.

Required API key scopes

hog_flow:read

Response


Example request

GET /api/projects/:project_id/workflow_setup/status
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/projects/:project_id/workflow_setup/status/

Example response

Status 200
RESPONSE
{
"steps": [
{
"key": "channel",
"done": true,
"title": "string",
"next_step": "string",
"app_url": "string"
}
],
"ready_to_send_email": true,
"email_sending_paused": true,
"next_open_step": "channel"
}