Workflow People

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

Endpoints

POST

Create workflow people imports

Required API key scopes

cohort:writeperson:write

Request parameters

  • name
    string
  • rows
    array

Response


Example request

POST /api/projects/:project_id/workflow_people_imports
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl
-H 'Content-Type: application/json'\
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/projects/:project_id/workflow_people_imports/\
-d name="string",\
-d rows="array"

Example response

Status 201
RESPONSE
{
"cohort_id": 0,
"row_count": 0,
"new_people": 0,
"columns": [
"string"
],
"dropped_invalid_email": 0,
"dropped_duplicate_email": 0,
"dropped_too_large": 0
}