PostHog Integrations API

The integrations API from PostHog — 52 operation(s) for integrations.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 54

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}/integrations/ List integrations on an environment · Environments integrations list #
Ask an LLM
“Which integrations are configured on an environment?”
“Can I page through an environment's integrations?”
Tell an agent
List integrations on environment {environment_id}.
Show {limit} integrations on environment {environment_id} starting at {offset}.
POST /api/environments/{environment_id}/integrations/ Create an integration on an environment · Environments integrations create #
Ask an LLM
“How do I add a new integration to an environment?”
“What config do I need to create an environment integration?”
Tell an agent
Create {kind} integration {display_name} on environment {environment_id}.
Add integration {display_name} of kind {kind} to environment {environment_id} with config {config}.
GET /api/environments/{environment_id}/integrations/{id}/ Get an environment integration · Environments integrations retrieve #
Ask an LLM
“What are the settings of one integration on an environment?”
“Can I look up an environment integration by id?”
Tell an agent
Get integration {id} on environment {environment_id}.
Show the configuration of environment {environment_id} integration {id}.
DELETE /api/environments/{environment_id}/integrations/{id}/ Delete an environment integration · Environments integrations destroy #
Ask an LLM
“How do I remove an integration from an environment?”
“Can I delete an environment integration by id?”
Tell an agent destructive · confirm first
Delete integration {id} from environment {environment_id}.
Remove the environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/channels/ List an integration's channels · Environments integrations channels retrieve #
Ask an LLM
“What channels does an integration have?”
“Can I list the channels of an environment integration?”
Tell an agent
List channels of integration {id} on environment {environment_id}.
Show the channels configured on environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/clickup_lists/ List an integration's ClickUp lists · Environments integrations clickup lists retrieve #
Ask an LLM
“Which ClickUp lists can an integration post to?”
“Can I list the ClickUp lists of an environment integration?”
Tell an agent
List ClickUp lists for integration {id} on environment {environment_id}.
Show the ClickUp lists available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/clickup_spaces/ List an integration's ClickUp spaces · Environments integrations clickup spaces retrieve #
Ask an LLM
“What ClickUp spaces can an integration post to?”
“Can I list the ClickUp spaces of an environment integration?”
Tell an agent
List ClickUp spaces for integration {id} on environment {environment_id}.
Show the ClickUp spaces available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/clickup_workspaces/ List an integration's ClickUp workspaces · Environments integrations clickup workspaces retrieve #
Ask an LLM
“Which ClickUp workspaces can an integration post to?”
“Can I list the ClickUp workspaces of an environment integration?”
Tell an agent
List ClickUp workspaces for integration {id} on environment {environment_id}.
Show the ClickUp workspaces available to environment {environment_id} integration {id}.
PATCH /api/environments/{environment_id}/integrations/{id}/email/ Update an email integration · Environments integrations email partial update #
Ask an LLM
“How do I change the config of an existing email integration?”
“Can I patch an email integration's settings?”
Tell an agent
Update email integration {id} on environment {environment_id}.
Patch the config of existing email integration {id} in environment {environment_id}.
POST /api/environments/{environment_id}/integrations/{id}/email/verify/ Verify an email integration · Environments integrations email verify create #
Ask an LLM
“How do I verify an email integration?”
“Can I send a verification email for an existing email integration?”
Tell an agent
Verify email integration {id} on environment {environment_id}.
Send a verification email for existing email integration {id} in environment {environment_id}.
GET /api/environments/{environment_id}/integrations/{id}/github_branches/ List an integration's GitHub branches · Environments integrations github branches retrieve #
Ask an LLM
“Which GitHub branches can an integration post to?”
“Can I search an integration's GitHub branches?”
Tell an agent
List branches of repo {repo} for integration {id} on environment {environment_id}.
Search GitHub branches for integration {id} on environment {environment_id} matching {search}.
GET /api/environments/{environment_id}/integrations/{id}/github_repos/ List an integration's GitHub repos · Environments integrations github repos retrieve #
Ask an LLM
“Which GitHub repositories can an integration post to?”
“Can I search an integration's GitHub repos?”
Tell an agent
List repos for integration {id} on environment {environment_id}.
Search GitHub repos of integration {id} on environment {environment_id} for {search}.
POST /api/environments/{environment_id}/integrations/{id}/github_repos/refresh/ Refresh an integration's GitHub repos · Environments integrations github repos refresh create #
Ask an LLM
“How do I sync an integration's GitHub repositories again?”
“Can I force an integration to reload its GitHub repos?”
Tell an agent
Refresh GitHub repos for integration {id} on environment {environment_id}.
Sync the GitHub repositories of integration {id} in environment {environment_id}.
GET /api/environments/{environment_id}/integrations/{id}/google_accessible_accounts/ List an integration's accessible Google accounts · Environments integrations google accessible accounts retrieve #
Ask an LLM
“Which Google accounts can an integration access?”
“Can I list the accessible accounts of an environment integration?”
Tell an agent
List accessible Google accounts for integration {id} on environment {environment_id}.
Show which Google accounts environment {environment_id} integration {id} can access.
GET /api/environments/{environment_id}/integrations/{id}/google_conversion_actions/ List an integration's Google conversion actions · Environments integrations google conversion actions retrieve #
Ask an LLM
“Which Google conversion actions does an integration have?”
“Can I list an environment integration's conversion actions?”
Tell an agent
List Google conversion actions for integration {id} on environment {environment_id}.
Show the conversion actions available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/jira_projects/ List an integration's Jira projects · Environments integrations jira projects retrieve #
Ask an LLM
“Which Jira projects can an integration post to?”
“Can I list the Jira projects of an environment integration?”
Tell an agent
List Jira projects for integration {id} on environment {environment_id}.
Show the Jira projects available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/linear_teams/ List an integration's Linear teams · Environments integrations linear teams retrieve #
Ask an LLM
“Which Linear teams can an integration post to?”
“Can I list the Linear teams of an environment integration?”
Tell an agent
List Linear teams for integration {id} on environment {environment_id}.
Show the Linear teams available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/linkedin_ads_accounts/ List an integration's LinkedIn Ads accounts · Environments integrations linkedin ads accounts retrieve #
Ask an LLM
“Which LinkedIn Ads accounts can an integration post to?”
“Can I list the LinkedIn Ads accounts of an environment integration?”
Tell an agent
List LinkedIn Ads accounts for integration {id} on environment {environment_id}.
Show the LinkedIn Ads accounts available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/linkedin_ads_conversion_rules/ List an integration's LinkedIn conversion rules · Environments integrations linkedin ads conversion rules retrieve #
Ask an LLM
“Which LinkedIn conversion rules does an integration have?”
“Can I list an environment integration's conversion rules?”
Tell an agent
List LinkedIn conversion rules for integration {id} on environment {environment_id}.
Show the conversion rules available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/{id}/twilio_phone_numbers/ List an integration's Twilio phone numbers · Environments integrations twilio phone numbers retrieve #
Ask an LLM
“Which Twilio phone numbers can an integration send SMS from?”
“Can I list the phone numbers of an environment integration?”
Tell an agent
List Twilio phone numbers for integration {id} on environment {environment_id}.
Show the phone numbers available to environment {environment_id} integration {id}.
GET /api/environments/{environment_id}/integrations/authorize/ Check the authorization state of an integration · Environments integrations authorize retrieve #
Ask an LLM
“Is my integration already authorized in this environment?”
“How do I check the authorization URL for an integration?”
Tell an agent
Get the authorization state for the integration in environment {environment_id}.
Check whether the integration in {environment_id} is authorized.
POST /api/environments/{environment_id}/integrations/domain-connect/apply-url/ Generate a Domain Connect apply URL for an integration · Environments integrations domain connect apply url create #
Ask an LLM
“How do I generate a Domain Connect apply URL for a DNS integration?”
“Can I build a signed apply URL for an integration from a context and resource ID?”
Tell an agent
Generate a Domain Connect apply URL for {kind} integration {id} in environment {environment_id}.
Build a signed apply URL for {kind} integration {id} in {environment_id} using context {config}.
GET /api/environments/{environment_id}/integrations/domain-connect/check/ Check a Domain Connect domain connection · Environments integrations domain connect check retrieve #
Ask an LLM
“Is my domain already connected through Domain Connect?”
“Can I verify a domain connection before applying it?”
Tell an agent
Check the Domain Connect connection for environment {environment_id}.
Verify whether the domain in {environment_id} is connected.
POST /api/environments/{environment_id}/integrations/github/oauth_authorize/ Mint a GitHub OAuth URL for a fresh install · Environments integrations github oauth authorize create #
Ask an LLM
“How do I get a User OAuth URL when the install flow returned no code?”
“Can I mint a new GitHub install URL for a fresh code?”
Tell an agent
Mint a GitHub OAuth URL for {kind} integration {id} in environment {environment_id}.
Generate a fresh install URL for {kind} integration {id} in {environment_id} with config {config}.
GET /api/organizations/{organization_id}/role_external_references/ List external role mappings for an organization · Role external references list #
Ask an LLM
“Which external roles are mapped to PostHog roles in my organization?”
“Can I see every external role mapping for an organization?”
Tell an agent
List external role mappings in organization {organization_id}.
Show all external role mappings for {organization_id}.
POST /api/organizations/{organization_id}/role_external_references/ Map an external role to a PostHog role · Role external references create #
Ask an LLM
“How do I map a GitHub team to a PostHog role?”
“Can I create an external role mapping for a provider role?”
Tell an agent
Map external role {provider_role_name} ({provider_role_id}) in {provider} to PostHog role {role} in organization {organization_id}.
Create an external role mapping for {provider} role {provider_role_id} in {provider_organization_id} to {role} in {organization_id}.
DELETE /api/organizations/{organization_id}/role_external_references/{id}/ Remove an external role mapping · Role external references destroy #
Ask an LLM
“Can I unmap an external role from a PostHog role?”
“What happens to the role mapping when I delete it?”
Tell an agent destructive · confirm first
Delete external role mapping {id} in organization {organization_id}.
Unmap external role {id} from {organization_id}.
GET /api/organizations/{organization_id}/role_external_references/lookup/ Look up an external role mapping · Role external references lookup retrieve #
Ask an LLM
“Which PostHog role does a given external role map to?”
“Can I find an external role mapping by provider role slug?”
Tell an agent
Look up the external role mapping for {provider} role {provider_role_id} in {provider_organization_id}.
Find the external role mapping in {organization_id} for {provider} role {provider_role_slug}.
GET /api/projects/{project_id}/integrations/ List integrations in a project · Integrations list #
Ask an LLM
“Which integrations are connected to my project?”
“Can I page through a project's integrations?”
Tell an agent
List integrations in project {project_id}.
Show {limit} integrations from {offset} in {project_id}.
POST /api/projects/{project_id}/integrations/ Create an integration · Integrations create #
Ask an LLM
“How do I connect a ClickUp workspace to my project?”
“Can I create an email verification integration for my Twilio number?”
Tell an agent
Create {kind} integration {display_name} in project {project_id}.
Create {kind} integration {display_name} in project {project_id} with config {config}.
GET /api/projects/{project_id}/integrations/{id}/ Get an integration in a project · Integrations retrieve #
Ask an LLM
“What are the settings of a specific integration in my project?”
“Can I fetch one integration by ID?”
Tell an agent
Get integration {id} in project {project_id}.
Show the configuration of integration {id} in {project_id}.
DELETE /api/projects/{project_id}/integrations/{id}/ Delete an integration from a project · Integrations destroy #
Ask an LLM
“Can I remove an integration from a project?”
“What happens to the integration when I delete it?”
Tell an agent destructive · confirm first
Delete integration {id} from project {project_id}.
Remove integration {id} in {project_id}.
GET /api/projects/{project_id}/integrations/{id}/channels/ List channels an integration posts to · Integrations channels retrieve #
Ask an LLM
“Which channels does an integration post to?”
“Can I see the channels an integration is connected to?”
Tell an agent
List channels for integration {id} in project {project_id}.
Show which channels integration {id} posts to in {project_id}.
GET /api/projects/{project_id}/integrations/{id}/clickup_lists/ List ClickUp lists · Integrations clickup lists retrieve #
Ask an LLM
“Which ClickUp lists can I send issues to from PostHog?”
“What list IDs and names does a ClickUp integration return?”
Tell an agent
Show ClickUp lists for integration {id} in project {project_id}.
List the ClickUp lists linked to integration {id} in project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/clickup_spaces/ List ClickUp spaces an integration can post to · Integrations clickup spaces retrieve #
Ask an LLM
“Which ClickUp spaces can an integration post to?”
“Can I see the spaces an integration is connected to?”
Tell an agent
List ClickUp spaces for integration {id} in project {project_id}.
Show the ClickUp spaces integration {id} can post to in {project_id}.
GET /api/projects/{project_id}/integrations/{id}/clickup_workspaces/ List ClickUp workspaces · Integrations clickup workspaces retrieve #
Ask an LLM
“What ClickUp workspaces can an integration send issues to?”
“Which workspaces does my ClickUp integration connect to in this project?”
Tell an agent
Show ClickUp workspaces for integration {id} in project {project_id}.
List the ClickUp workspaces connected to integration {id} in project {project_id}.
PATCH /api/projects/{project_id}/integrations/{id}/email/ Update an email integration's config · Integrations email partial update #
Ask an LLM
“Can I change the email address an integration sends to?”
“How do I update just the config of an email integration?”
Tell an agent
Update the email config of integration {id} in project {project_id}.
Change the email address on integration {id} in {project_id} to {config}.
POST /api/projects/{project_id}/integrations/{id}/email/verify/ Verify an email integration · Integrations email verify create #
Ask an LLM
“How do I verify that the email integration I just created works?”
“Can I test an email integration before sending messages?”
Tell an agent
Verify the email integration {id} in project {project_id}.
Run an email verification on integration {id} in project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/github_branches/ List branches of a GitHub repo for an integration · Integrations github branches retrieve #
Ask an LLM
“Which branches of a GitHub repo can an integration post to?”
“Can I search a GitHub repo's branches by name?”
Tell an agent
List branches of {repo} for integration {id} in project {project_id}.
Search branches of {repo} in {project_id} for {search}, integration {id}.
GET /api/projects/{project_id}/integrations/{id}/github_repos/ List a GitHub integration's repos · Integrations github repos retrieve #
Ask an LLM
“Which GitHub repositories are connected to my integration?”
“Can I search the repos linked to a GitHub integration?”
Tell an agent
List repos for GitHub integration {id} in project {project_id}.
Find GitHub repos matching {search} on integration {id}, project {project_id}.
POST /api/projects/{project_id}/integrations/{id}/github_repos/refresh/ Refresh a GitHub integration's repos · Integrations github repos refresh create #
Ask an LLM
“How do I sync a GitHub integration's repository list?”
“Can I force a refresh of repos on a GitHub integration?”
Tell an agent
Refresh repos for GitHub integration {id} in project {project_id}.
Sync the linked GitHub repos on integration {id}, project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/google_accessible_accounts/ List accessible Google accounts for an integration · Integrations google accessible accounts retrieve #
Ask an LLM
“Which Google accounts can a Google integration access?”
“What accounts does my Google Ads integration have access to?”
Tell an agent
List accessible Google accounts for integration {id} in project {project_id}.
Show the Google accounts integration {id} can access, project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/google_conversion_actions/ List Google conversion actions for an integration · Integrations google conversion actions retrieve #
Ask an LLM
“What conversion actions are set up on my Google integration?”
“Can I see the conversion actions a Google Ads integration uses?”
Tell an agent
List conversion actions for Google integration {id} in project {project_id}.
Show the Google Ads conversion actions on integration {id}, project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/jira_projects/ List Jira projects · Integrations jira projects retrieve #
Ask an LLM
“Which Jira projects can my integration create tickets in?”
“What Jira project IDs does the integration reference?”
Tell an agent
Show Jira projects for integration {id} in project {project_id}.
List the Jira projects linked to integration {id} in project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/linear_teams/ List Linear teams · Integrations linear teams retrieve #
Ask an LLM
“Which Linear teams can I create issues in from this integration?”
“What team IDs and names does the Linear integration return?”
Tell an agent
Show Linear teams for integration {id} in project {project_id}.
List the Linear teams connected to integration {id} in project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/linkedin_ads_accounts/ List LinkedIn ads accounts · Integrations linkedin ads accounts retrieve #
Ask an LLM
“Which LinkedIn ads accounts can I pull report data from?”
“What LinkedIn Ads account IDs does the integration reference?”
Tell an agent
Show LinkedIn ads accounts for integration {id} in project {project_id}.
List the LinkedIn Ads accounts linked to integration {id} in project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/linkedin_ads_conversion_rules/ List LinkedIn conversion rules for an integration · Integrations linkedin ads conversion rules retrieve #
Ask an LLM
“What conversion rules are set up on my LinkedIn integration?”
“Can I see the conversion rules a LinkedIn Ads integration uses?”
Tell an agent
List conversion rules for LinkedIn integration {id} in project {project_id}.
Show the LinkedIn conversion rules on integration {id}, project {project_id}.
GET /api/projects/{project_id}/integrations/{id}/twilio_phone_numbers/ List Twilio phone numbers · Integrations twilio phone numbers retrieve #
Ask an LLM
“Which Twilio phone numbers are available for sending SMS messages?”
“What phone number IDs and numbers does the Twilio integration return?”
Tell an agent
Show Twilio phone numbers for integration {id} in project {project_id}.
List the Twilio phone numbers connected to integration {id} in project {project_id}.
GET /api/projects/{project_id}/integrations/authorize/ Get the authorization URL for a new integration · Integrations authorize retrieve #
Ask an LLM
“How do I get the authorization URL to set up a new integration?”
“Where do I start the OAuth flow for a fresh integration?”
Tell an agent
Get the authorization URL for a new integration in project {project_id}.
Start the integration setup flow for project {project_id}.
POST /api/projects/{project_id}/integrations/domain-connect/apply-url/ Generate a Domain Connect apply URL · Integrations domain connect apply url create #
Ask an LLM
“How do I generate a signed URL to apply a Domain Connect template?”
“Can I build an apply URL for a domain template with a context?”
Tell an agent
Generate a Domain Connect apply URL for {kind} template {id} in project {project_id}.
Build a signed apply URL for {kind} template {id} with config {config}, project {project_id}.
GET /api/projects/{project_id}/integrations/domain-connect/check/ Check Domain Connect status · Integrations domain connect check retrieve #
Ask an LLM
“Is my domain connected with Domain Connect?”
“How do I check the Domain Connect status for a project?”
Tell an agent
Check the Domain Connect status for project {project_id}.
Verify Domain Connect connection in project {project_id}.
POST /api/projects/{project_id}/integrations/github/oauth_authorize/ Get a GitHub OAuth URL for a fresh install · Integrations github oauth authorize create #
Ask an LLM
“How do I mint a GitHub OAuth URL to start a fresh install?”
“Can I get a User OAuth URL when the install flow returned no code?”
Tell an agent
Get a GitHub OAuth URL for {kind} integration {id} in project {project_id}.
Mint a fresh install URL for GitHub integration {id} of kind {kind}, 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-integrations-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-integrations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog Integrations API
  version: 1.0.0
  description: ''
tags:


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