PostHog Persons API

The persons API from PostHog — 40 operation(s) for persons.

GitHub OpenAPI

Operations 48

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/environments/{environment_id}/persons/ List people in an environment · Environments persons list #
Ask an LLM
“How do I list all people in a project environment?”
“Can I search people by email or distinct ID in an environment?”
Tell an agent
List people in environment {environment_id}.
Find people in environment {environment_id} matching {search}.
GET /api/environments/{environment_id}/persons/{id}/ Get a person in an environment · Environments persons retrieve #
Ask an LLM
“How do I look up one person by ID in an environment?”
“What properties does a single person record hold?”
Tell an agent
Get person {id} in environment {environment_id}.
Show the profile of person {id} in environment {environment_id}.
PUT /api/environments/{environment_id}/persons/{id}/ Replace a person's properties · Environments persons update #
Ask an LLM
“How do I overwrite all of a person's properties in an environment?”
“Can I set a person's name and distinct IDs in one call?”
Tell an agent
Replace person {id} in environment {environment_id} with name {name}, distinct IDs {distinct_ids}, properties {properties}, created {created_at}, UUID {uuid}, last seen {last_seen_at}.
Overwrite the full record of person {id} in environment {environment_id}.
PATCH /api/environments/{environment_id}/persons/{id}/ Partially update a person record by person ID · Environments persons partial update #
Ask an LLM
“Can I change an existing person's distinct IDs by passing the person ID?”
“Which call updates a person record without needing their UUID?”
Tell an agent
Patch person {id} in environment {environment_id}.
Update the distinct IDs of person {id} in env {environment_id}.
GET /api/environments/{environment_id}/persons/{id}/activity/ Get one person's activity in an environment · Environments persons activity retrieve #
Ask an LLM
“How do I see the event activity of one person in an environment?”
“What events has a single person triggered in an environment?”
Tell an agent
Show the activity of person {id} in environment {environment_id}.
List events for person {id} in environment {environment_id}.
POST /api/environments/{environment_id}/persons/{id}/delete_property/ Delete a property from a person · Environments persons delete property create #
Ask an LLM
“How do I remove a property from a person in an environment?”
“Can I delete a single property without deleting the person?”
Tell an agent destructive · confirm first
Delete property {unset} from person {id} in environment {environment_id}.
Remove the {unset} property on person {id} in environment {environment_id}.
GET /api/environments/{environment_id}/persons/{id}/properties_timeline/ Get a person's property timeline · Environments persons properties timeline retrieve #
Ask an LLM
“How do I see how a person's properties changed over time?”
“Can I get the property history for one person in an environment?”
Tell an agent
Show the property timeline for person {id} in environment {environment_id}.
Get when person {id} in environment {environment_id} last changed each property.
POST /api/environments/{environment_id}/persons/{id}/split/ Split a person into a new person · Environments persons split create #
Ask an LLM
“How do I split a person into a new person record?”
“Can I create a separate person from an existing one?”
Tell an agent
Split person {id} in environment {environment_id} into a new person with name {name}, distinct IDs {distinct_ids}, properties {properties}, created {created_at}, UUID {uuid}, last seen {last_seen_at}.
Create a split person from {id} in environment {environment_id}.
POST /api/environments/{environment_id}/persons/{id}/update_property/ Set a person property by property key · Environments persons update property create #
Ask an LLM
“How do I set a custom property on a person when I have their person ID?”
“Can I add a property to a person with a JSON object by person ID?”
Tell an agent
Set property {key} to {value} on person {id} in environment {environment_id}.
Create a new property {key} on person {id} with value {value} in env {environment_id}.
GET /api/environments/{environment_id}/persons/activity/ List activity for all people in an environment · Environments persons all activity retrieve #
Ask an LLM
“How do I see the activity of every person in an environment?”
“Can I get a combined event log for all people in an environment?”
Tell an agent
List activity for all people in environment {environment_id}.
Show combined event activity across every person in environment {environment_id}.
POST /api/environments/{environment_id}/persons/batch_by_distinct_ids/ Create or update persons by distinct IDs · Environments persons batch by distinct ids create #
Ask an LLM
“Can I bulk create persons from a list of distinct IDs in an environment?”
“What's the call to merge people by distinct ID when I have their UUID?”
Tell an agent
Create people in environment {environment_id} from distinct IDs {distinct_ids}.
Upsert these people by distinct ID in env {environment_id}: {distinct_ids}.
POST /api/environments/{environment_id}/persons/batch_by_uuids/ Create or update persons by UUID · Environments persons batch by uuids create #
Ask an LLM
“Can I bulk upsert person records from a list of UUIDs?”
“Which call creates people in an environment when I only have their UUID?”
Tell an agent
Create people in environment {environment_id} from UUIDs {uuid}.
Upsert these people by UUID in env {environment_id}: {uuid}.
POST /api/environments/{environment_id}/persons/bulk_delete/ Bulk delete people by ID or distinct ID · Environments persons bulk delete create #
Ask an LLM
“How do I bulk delete people by their PostHog ID?”
“Can I delete people by distinct ID and also remove their events?”
Tell an agent destructive · confirm first
Bulk delete people with IDs {ids} in environment {environment_id}.
Delete people with distinct IDs {distinct_ids} in environment {environment_id}, keeping their records.
GET /api/environments/{environment_id}/persons/cohorts/ List cohorts a person belongs to · Environments persons cohorts retrieve #
Ask an LLM
“Which cohorts does a given person belong to?”
“Can I see a person's cohort membership in an environment?”
Tell an agent
List the cohorts person {person_id} belongs to in environment {environment_id}.
Show cohort membership for person {person_id} in environment {environment_id}.
GET /api/environments/{environment_id}/persons/deletion_status/ Check queued person deletions · Environments persons deletion status list #
Ask an LLM
“Are the queued deletions of people in an environment still pending?”
“Can I check whether a person's events were actually deleted?”
Tell an agent
List queued deletion status for people in environment {environment_id}.
Check the deletion status of person {person_uuid} in environment {environment_id}.
GET /api/environments/{environment_id}/persons/funnel/ List funnel people in an environment · Environments persons funnel retrieve #
Ask an LLM
“How do I list the people in a funnel in an environment?”
“Can I get funnel results for all people in an environment?”
Tell an agent
List funnel people in environment {environment_id}.
Show funnel results for all people in environment {environment_id}.
POST /api/environments/{environment_id}/persons/funnel/ Add people to a funnel · Environments persons funnel create #
Ask an LLM
“How do I add people to a funnel in an environment?”
“Can I bulk add people to a funnel by ID?”
Tell an agent
Add people to a funnel in environment {environment_id} with name {name}, distinct IDs {distinct_ids}, properties {properties}, created {created_at}, UUID {uuid}, last seen {last_seen_at}.
Add people to a funnel in environment {environment_id}.
GET /api/environments/{environment_id}/persons/funnel/correlation/ Get funnel correlation for a person, environment call · Environments persons funnel correlation retrieve #
Ask an LLM
“Can I get funnel correlation for a person by person ID with an environment call?”
“Which API returns funnel correlation results for a person in an environment?”
Tell an agent
Get funnel correlation for a person in environment {environment_id}.
Call funnel correlation for person ID in env {environment_id}.
POST /api/environments/{environment_id}/persons/funnel/correlation/ Create funnel correlation for a person, environment call · Environments persons funnel correlation create #
Ask an LLM
“How do I create funnel correlation for a person by person ID with an environment call?”
“Which API creates funnel correlation results for a person in an environment?”
Tell an agent
Create funnel correlation for a person in environment {environment_id}.
Create funnel correlation for person ID with an environment call.
GET /api/environments/{environment_id}/persons/lifecycle/ List lifecycle people in an environment · Environments persons lifecycle retrieve #
Ask an LLM
“How do I list the people in a lifecycle in an environment?”
“Can I get lifecycle results for all people in an environment?”
Tell an agent
List lifecycle people in environment {environment_id}.
Show lifecycle results for all people in environment {environment_id}.
GET /api/environments/{environment_id}/persons/properties_at_time/ Get a person's properties as of a past time · Environments persons properties at time retrieve #
Ask an LLM
“What did a person's profile look like on a specific past date in a PostHog environment?”
“Can I rebuild a person's properties from their $set events up to a given timestamp?”
Tell an agent
Get properties of the person with distinct ID {distinct_id} in environment {environment_id} as they were at {timestamp}.
Rebuild properties for person UUID {person_id} in environment {environment_id} at {timestamp}, including $set_once values.
POST /api/environments/{environment_id}/persons/reset_person_distinct_id/ Reset a distinct ID so it can be reused · Environments persons reset person distinct id create #
Ask an LLM
“How do I reclaim a distinct ID that was used by a deleted person?”
“Can I reuse a person's distinct ID after deleting them?”
Tell an agent destructive · confirm first
Reset distinct ID {distinct_id} for person {id} in environment {environment_id}.
Reclaim the distinct ID {distinct_id} of person {id} in env {environment_id}.
GET /api/environments/{environment_id}/persons/values/ List values of a person property in an environment · Environments persons values retrieve #
Ask an LLM
“What values exist for a person property in my environment?”
“Can I search the values of a property like email or plan in an environment?”
Tell an agent
List values of property {key} in environment {environment_id}.
Find values matching {value} for {key} in environment {environment_id}.
GET /api/projects/{project_id}/persons/ List people in a project · Persons list #
Ask an LLM
“Who are the people in my project?”
“Can I find a person by email or distinct ID?”
Tell an agent
List people in project {project_id}.
Find the person with email {email} in project {project_id}.
GET /api/projects/{project_id}/persons/{id}/ Get a person's details · Persons retrieve #
Ask an LLM
“What properties does a specific person have?”
“Can I look up a person by their ID?”
Tell an agent
Get person {id} in project {project_id}.
Show the properties of person {id} in project {project_id}.
PUT /api/projects/{project_id}/persons/{id}/ Replace a person's properties · Persons update #
Ask an LLM
“How do I overwrite a person's properties with a new set?”
“Can I fully replace a person's profile in one call?”
Tell an agent
Replace the properties of person {id} in project {project_id} with {properties}.
Overwrite person {id} in project {project_id} with name {name}, distinct IDs {distinct_ids}, created {created_at}, UUID {uuid}, last seen {last_seen_at}.
PATCH /api/projects/{project_id}/persons/{id}/ Update some properties of a person · Persons partial update #
Ask an LLM
“Can I change just one property on a person without resending the rest?”
“Is there a way to patch a person's profile with only the fields I change?”
Tell an agent
Patch person {id} in project {project_id} with properties {properties}.
Update only the {properties} on person {id} in project {project_id}.
GET /api/projects/{project_id}/persons/{id}/activity/ Get a person's activity timeline · Persons activity retrieve #
Ask an LLM
“What has a specific person been doing in my project?”
“Can I see the activity history of one person?”
Tell an agent
Show the activity of person {id} in project {project_id}.
Get the event history for person {id} in project {project_id}.
POST /api/projects/{project_id}/persons/{id}/delete_property/ Delete a property from a person · Persons delete property create #
Ask an LLM
“How do I remove a property from a person's profile?”
“Can I delete a single property without touching the rest of the person?”
Tell an agent
Delete property {unset} from person {id} in project {project_id}.
Remove the {unset} property on person {id} in project {project_id}.
GET /api/projects/{project_id}/persons/{id}/properties_timeline/ Get a person's property timeline · Persons properties timeline retrieve #
Ask an LLM
“When were a person's properties set or changed?”
“Can I see the history of one property on a person?”
Tell an agent
Show the property timeline for person {id} in project {project_id}.
Get when property {id} was last set on person {id} in project {project_id}.
POST /api/projects/{project_id}/persons/{id}/split/ Split a person into a new person · Persons split create #
Ask an LLM
“How do I split a person into two separate profiles?”
“Can I create a new person from an existing one's properties?”
Tell an agent
Split person {id} in project {project_id} into a new person with name {name}, distinct IDs {distinct_ids}, created {created_at}, UUID {uuid}, last seen {last_seen_at}.
Create a new person from existing person {id} in project {project_id}.
POST /api/projects/{project_id}/persons/{id}/update_property/ Set a single property on a person · Persons update property create #
Ask an LLM
“How do I set one property on a person without resending their whole profile?”
“Can I update a single field on a person's profile?”
Tell an agent
Set property {key} to {value} on person {id} in project {project_id}.
Update only the {key} field of person {id} in project {project_id} to {value}.
GET /api/projects/{project_id}/persons/activity/ List activity for all people in a project · Persons all activity retrieve #
Ask an LLM
“What is everyone doing across my whole project?”
“Can I see the combined activity of all people in a project?”
Tell an agent
Show activity for all people in project {project_id}.
List every event across all people in project {project_id}.
POST /api/projects/{project_id}/persons/batch_by_distinct_ids/ Create or update persons by distinct ID · Persons batch by distinct ids create #
Ask an LLM
“Can I bulk create people from a list of distinct IDs in a project?”
“Which call upserts a person record from a distinct ID?”
Tell an agent
Create people in project {project_id} from distinct IDs {distinct_ids}.
Upsert these people by distinct ID in project {project_id}: {distinct_ids}.
POST /api/projects/{project_id}/persons/batch_by_uuids/ Create or update persons by UUID · Persons batch by uuids create #
Ask an LLM
“Can I bulk upsert people by UUID in a project?”
“Which call adds a person to a project when I have their UUID?”
Tell an agent
Create people in project {project_id} from UUIDs {uuid}.
Upsert these people by UUID in project {project_id}: {uuid}.
POST /api/projects/{project_id}/persons/bulk_delete/ Bulk delete people by ID or distinct ID · Persons bulk delete create #
Ask an LLM
“How do I delete many people at once by their IDs?”
“Can I delete people and their events in one request?”
Tell an agent destructive · confirm first
Bulk delete people with IDs {ids} in project {project_id}.
Delete people with distinct IDs {distinct_ids} in project {project_id}.
GET /api/projects/{project_id}/persons/cohorts/ List the cohorts a person belongs to · Persons cohorts retrieve #
Ask an LLM
“Which cohorts is a particular person in?”
“Can I see a person's cohort membership?”
Tell an agent
List the cohorts person {person_id} belongs to in project {project_id}.
Show which cohorts person {person_id} is a member of.
GET /api/projects/{project_id}/persons/deletion_status/ Check the status of queued person deletion jobs · Persons deletion status list #
Ask an LLM
“Has the async deletion of a person finished?”
“Can I check whether queued person deletion jobs are still pending?”
Tell an agent
Check deletion status for person {person_uuid} in project {project_id}.
List queued person deletion jobs in project {project_id} with status {status}.
GET /api/projects/{project_id}/persons/funnel/ List funnel trends for all people · Persons funnel retrieve #
Ask an LLM
“What are the funnel trends across all people in my project?”
“Can I see the combined funnel for every person?”
Tell an agent
Show funnel trends for all people in project {project_id}.
List the funnel for every person in project {project_id}.
POST /api/projects/{project_id}/persons/funnel/ Create a person for funnel analysis · Persons funnel create #
Ask an LLM
“How do I add a person to a funnel so I can analyze their path through the funnel?”
“Can I set a person's distinct IDs and properties when creating them for funnel analysis?”
Tell an agent
Create person {name} in project {project_id} with distinct IDs {distinct_ids}, UUID {uuid}, created {created_at}, last seen {last_seen_at}, ID {id}.
Add funnel person {id} named {name} with distinct IDs {distinct_ids} and properties {properties}.
GET /api/projects/{project_id}/persons/funnel/correlation/ Get funnel correlation results · Persons funnel correlation retrieve #
Ask an LLM
“What correlations exist between funnel steps in my funnel analysis?”
“Can I see funnel correlation results for a project?”
Tell an agent
Get funnel correlation results for project {project_id}.
Show funnel correlation analysis in project {project_id}.
POST /api/projects/{project_id}/persons/funnel/correlation/ Create funnel correlation for a person · Persons funnel correlation create #
Ask an LLM
“How do I create funnel correlation for a person by person ID?”
“Which call generates funnel correlation results for a person?”
Tell an agent
Create funnel correlation for a person in project {project_id}.
Create funnel correlation for person ID with a project call.
GET /api/projects/{project_id}/persons/lifecycle/ Get funnel lifecycle results · Persons lifecycle retrieve #
Ask an LLM
“What lifecycle results does my funnel analysis have?”
“Can I see funnel lifecycle analysis for a project?”
Tell an agent
Get funnel lifecycle results for project {project_id}.
Show funnel lifecycle analysis in project {project_id}.
GET /api/projects/{project_id}/persons/properties_at_time/ Get a person's properties at a past time · Persons properties at time retrieve #
Ask an LLM
“What were a person's properties at a specific point in the past?”
“Can I reconstruct a person's properties as they were at a given timestamp?”
Tell an agent
Get the properties of person {distinct_id} in project {project_id} as of {timestamp}.
Reconstruct person {person_id}'s properties at {timestamp} in project {project_id}.
POST /api/projects/{project_id}/persons/reset_person_distinct_id/ Free up a deleted person's distinct ID for reuse · Persons reset person distinct id create #
Ask an LLM
“How can I make a distinct ID available again after its person was deleted in a project?”
“Can a distinct ID from a deleted person be assigned to someone new?”
Tell an agent destructive · confirm first
Reset the distinct ID {distinct_ids} of deleted person {id} in project {project_id} so it can be used again.
Release distinct ID {distinct_ids} from deleted person {uuid} in project {project_id} for reuse.
GET /api/projects/{project_id}/persons/values/ Get funnel values for a property · Persons values retrieve #
Ask an LLM
“What values exist for a funnel property like email or plan?”
“Can I search funnel property values for a substring?”
Tell an agent
Get funnel values for property {key} in project {project_id}.
Find funnel values for {key} matching {value} in project {project_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/posthog:posthog-persons-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

posthog-persons-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog Persons API
  version: 1.0.0
  description: ''
tags:


# --- truncated at 32 KB (73 KB total) ---
# Full source: https://artifacts.apis.io/posthog/openapi/posthog-persons-api-openapi.yml