PostHog Platform Features API

The platform_features API from PostHog — 26 operation(s) for platform_features.

GitHub OpenAPI

Operations 27

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/{project_id}/approval_policies/ List approval policies · Approval policies list #
Ask an LLM
“Which approval policies are set up for my project?”
“Can I see every approval policy in an organization?”
Tell an agent
List approval policies for project {project_id}.
Show all approval policies in project {project_id}.
POST /api/environments/{project_id}/approval_policies/ Create an approval policy · Approval policies create #
Ask an LLM
“How do I require approval before changing a feature flag?”
“Can an approval policy let members of certain roles bypass approval?”
Tell an agent
Create an approval policy in project {project_id} for action {action_key} with approver config {approver_config}.
Add an approval policy in project {project_id} that bypasses org membership levels {bypass_org_membership_levels}.
GET /api/environments/{project_id}/approval_policies/{id}/ Get an approval policy · Approval policies retrieve #
Ask an LLM
“What conditions does a specific approval policy require?”
“Can I look up one approval policy by its ID?”
Tell an agent
Get approval policy {id} in project {project_id}.
Show the conditions of approval policy {id} for project {project_id}.
PUT /api/environments/{project_id}/approval_policies/{id}/ Replace an approval policy · Approval policies update #
Ask an LLM
“How do I overwrite an existing approval policy with new conditions?”
“Can I change the approver config on an approval policy?”
Tell an agent
Replace approval policy {id} in project {project_id} with action {action_key} and approver config {approver_config}.
Overwrite approval policy {id} in project {project_id} so it expires after {expires_after}.
PATCH /api/environments/{project_id}/approval_policies/{id}/ Change some fields of an approval policy · Approval policies partial update #
Ask an LLM
“Can I disable an approval policy without deleting it?”
“How do I change just the conditions on an approval policy?”
Tell an agent
Disable approval policy {id} in project {project_id} by setting enabled to {enabled}.
Change the conditions on approval policy {id} in project {project_id} to {conditions}.
DELETE /api/environments/{project_id}/approval_policies/{id}/ Delete an approval policy · Approval policies destroy #
Ask an LLM
“Can I delete an approval policy in a project?”
“What do I need to remove a project approval policy?”
Tell an agent destructive · confirm first
Delete approval policy {id} in project {project_id}.
Remove the policy {id} from project {project_id}.
GET /api/environments/{project_id}/change_requests/ List change requests · Change requests list #
Ask an LLM
“Which change requests are waiting for approval in my project?”
“Can I filter change requests by state or resource type?”
Tell an agent
List change requests in project {project_id}.
Show change requests in project {project_id} with state {state}.
GET /api/environments/{project_id}/change_requests/{id}/ Get a change request · Change requests retrieve #
Ask an LLM
“What does a specific change request ask for and who requested it?”
“Can I see the approvals on one change request?”
Tell an agent
Get change request {id} in project {project_id}.
Show the requester and approvals for change request {id} in project {project_id}.
POST /api/environments/{project_id}/change_requests/{id}/approve/ Approve a change request · Change requests approve create #
Ask an LLM
“How do I approve a change request so it gets applied?”
“Does approving a change request apply it right away if quorum is reached?”
Tell an agent
Approve change request {id} in project {project_id}.
Apply change request {id} in project {project_id} by approving it.
POST /api/environments/{project_id}/change_requests/{id}/cancel/ Cancel a change request · Change requests cancel create #
Ask an LLM
“Can I cancel a change request I submitted myself?”
“Who is allowed to cancel a pending change request?”
Tell an agent destructive · confirm first
Cancel change request {id} in project {project_id}.
Withdraw my pending change request {id} in project {project_id}.
POST /api/environments/{project_id}/change_requests/{id}/reject/ Reject a change request · Change requests reject create #
Ask an LLM
“How do I turn down a change request?”
“Can I record a reason when I reject a change request?”
Tell an agent
Reject change request {id} in project {project_id}.
Turn down change request {id} in project {project_id} and record the reason.
GET /api/organizations/ List organizations · List #
Ask an LLM
“Which organizations exist in my account?”
“Can I page through all organizations?”
Tell an agent
List all organizations.
Show {limit} organizations starting at offset {offset}.
POST /api/organizations/ Create an organization · Create #
Ask an LLM
“How do I create a new organization for a customer?”
“Can I set the default role and 2FA enforcement when creating an organization?”
Tell an agent
Create an organization {name} with slug {slug}.
Create organization {name} with slug {slug} and enforce 2FA: {enforce_2fa}.
GET /api/organizations/{id}/ Get an organization · Retrieve #
Ask an LLM
“What are the details of one organization?”
“Can I look up an organization by its ID?”
Tell an agent
Get organization {id}.
Show the details of organization {id}.
PUT /api/organizations/{id}/ Replace an organization · Update #
Ask an LLM
“How do I overwrite an organization's details completely?”
“Can I change every field of an organization at once?”
Tell an agent
Replace organization {id} with name {name} and slug {slug}.
Overwrite organization {id} with name {name}, slug {slug} and default role {default_role_id}.
PATCH /api/organizations/{id}/ Change some fields of an organization · Partial update #
Ask an LLM
“Can I rename an organization without touching its other fields?”
“How do I turn off 2FA enforcement for an organization?”
Tell an agent
Rename organization {id} to {name}.
Set 2FA enforcement on organization {id} to {enforce_2fa}.
DELETE /api/organizations/{id}/ Delete an organization · Destroy #
Ask an LLM
“How do I delete an organization?”
“Can I remove an organization by its ID?”
Tell an agent destructive · confirm first
Delete organization {id}.
Remove organization {id} from my account.
GET /api/organizations/{organization_id}/roles/{role_id}/role_memberships/ List members of a role · Roles role memberships list #
Ask an LLM
“Who belongs to a particular role in my organization?”
“Can I page through the members of one role?”
Tell an agent
List members of role {role_id} in organization {organization_id}.
Show {limit} members of role {role_id} in organization {organization_id}.
POST /api/organizations/{organization_id}/roles/{role_id}/role_memberships/ Add a member to a role · Roles role memberships create #
Ask an LLM
“How do I give a user a specific role in my organization?”
“Can I add a member to a role by their user ID?”
Tell an agent
Add user {user} to role {role_id} in organization {organization_id}.
Give user {user} the {role_id} role in organization {organization_id}.
GET /api/organizations/{organization_id}/roles/{role_id}/role_memberships/{id}/ Get a role membership · Roles role memberships retrieve #
Ask an LLM
“Who has a particular role membership?”
“Can I look up one user's role membership by its ID?”
Tell an agent
Get role membership {id} in role {role_id} at organization {organization_id}.
Show who holds membership {id} for role {role_id} in {organization_id}.
DELETE /api/organizations/{organization_id}/roles/{role_id}/role_memberships/{id}/ Remove a user from a role · Roles role memberships destroy #
Ask an LLM
“How do I take a user off a role in my organization?”
“Can I revoke someone's role membership?”
Tell an agent destructive · confirm first
Remove role membership {id} from role {role_id} in organization {organization_id}.
Revoke user access by deleting role membership {id}.
GET /api/organizations/{organization_id}/welcome/current/ Get the invited-user welcome screen · Welcome current retrieve #
Ask an LLM
“What does the new user welcome screen show?”
“Where can I see the onboarding details for an invited user?”
Tell an agent
Show the current invited-user welcome screen for organization {organization_id}.
Get the new user onboarding payload for {organization_id}.
GET /api/projects/{project_id}/advanced_activity_logs/ List advanced activity logs · Advanced activity logs list #
Ask an LLM
“Who changed what in my project recently?”
“Can I filter activity logs by user or scope?”
Tell an agent
List advanced activity logs for project {project_id}.
Show activity logs in project {project_id} for users {users}.
GET /api/projects/{project_id}/advanced_activity_logs/available_filters/ Get filters available for activity logs · Advanced activity logs available filters retrieve #
Ask an LLM
“Which filters can I apply to activity logs?”
“What scopes and users are available for activity log filtering?”
Tell an agent
Get the available filters for advanced activity logs in project {project_id}.
Show which scopes and users activity logs can be filtered by.
POST /api/projects/{project_id}/advanced_activity_logs/export/ Export advanced activity logs · Advanced activity logs export create #
Ask an LLM
“Can I export advanced activity logs for a project?”
“What activity and item scope go in an advanced activity logs export?”
Tell an agent
Export advanced activity logs for {activity} on {scope} in project {project_id}.
Create an advanced activity log export for item {item_id}, user {user}, project {project_id}.
GET /api/user_home_settings/{uuid}/ Get a user's pinned tabs and homepage · User home settings retrieve #
Ask an LLM
“Which tabs are pinned in my sidebar?”
“What homepage does the current user have set?”
Tell an agent
Get the home settings for user {uuid}.
Show the pinned tabs and homepage for {uuid}.
PATCH /api/user_home_settings/{uuid}/ Update a user's pinned tabs or homepage · User home settings partial update #
Ask an LLM
“Can I pin a dashboard in my sidebar?”
“How do I change the homepage a user sees when they click the logo?”
Tell an agent
Set the homepage for user {uuid} to {homepage}.
Pin tabs {tabs} for user {uuid}.

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-platform-features-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-platform-features-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog Platform Features API
  version: 1.0.0
  description: ''
tags:


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