PostHog Actions API

The actions API from PostHog — 4 operation(s) for actions.

GitHub OpenAPI

Operations 8

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/projects/{project_id}/actions/ List project actions · Actions list #
Ask an LLM
“Which actions are set up in my project?”
“Can I page through all actions in a project?”
Tell an agent
List actions in project {project_id}.
Show {limit} actions from project {project_id} starting at offset {offset}.
POST /api/projects/{project_id}/actions/ Create an action · Actions create #
Ask an LLM
“How do I create a new action that fires when a user completes a purchase?”
“Can I set steps and Slack notifications when creating an action?”
Tell an agent
Create action {name} in project {project_id} with steps {steps}.
Create action {name} in project {project_id} that posts to Slack with {post_to_slack}.
GET /api/projects/{project_id}/actions/{id}/ Get an action · Actions retrieve #
Ask an LLM
“What steps and Slack settings does a particular action have?”
“Can I look up one action by its ID?”
Tell an agent
Get action {id} in project {project_id}.
Show the Slack notification settings of action {id} in project {project_id}.
PUT /api/projects/{project_id}/actions/{id}/ Replace an action's steps · Actions update #
Ask an LLM
“How do I overwrite an action's steps in one call?”
“Can I replace an action's Slack message format entirely?”
Tell an agent
Replace action {id} in project {project_id} with steps {steps}.
Overwrite action {id} in project {project_id} with Slack message {slack_message_format}.
PATCH /api/projects/{project_id}/actions/{id}/ Change an action's tags or Slack settings · Actions partial update #
Ask an LLM
“How do I add a tag to an action without resending all its steps?”
“Can I turn off Slack notifications on an action?”
Tell an agent
Add tags {tags} to action {id} in project {project_id}.
Set Slack notification to {post_to_slack} on action {id} in project {project_id}.
DELETE /api/projects/{project_id}/actions/{id}/ Delete an action (hard) · Actions destroy #
Ask an LLM
“Can I hard delete an action instead of marking it deleted?”
“What happens to an action when I hard delete it?”
Tell an agent destructive · confirm first
Hard delete action {id} in project {project_id}.
Permanently remove action {id} from project {project_id}.
GET /api/projects/{project_id}/actions/{id}/references/ Find where an action is used · Actions references list #
Ask an LLM
“Which events or insights use a particular action?”
“Where is this action referenced in my project?”
Tell an agent
List references to action {id} in project {project_id}.
Show where action {id} is used across the project.
POST /api/projects/{project_id}/actions/bulk_update_tags/ Add, remove or replace tags on actions · Actions bulk update tags create #
Ask an LLM
“How do I tag many actions at once?”
“Can I remove a tag from several actions in one request?”
Tell an agent
Apply action {action} with tags {tags} to actions {ids} in project {project_id}.
Bulk {action} tags {tags} on actions {ids} 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-actions-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-actions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog Actions API
  version: 1.0.0
  description: ''
tags:


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