Integrations-2
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
POST | |
POST | |
POST | |
GET | |
GET | |
DELETE | |
PATCH | |
GET | |
POST | |
GET | |
DELETE | |
GET |
Retrieve environments integrations jira projects
Path parameters
- idinteger
Example request
GET /api /environments /:environment_id /integrations /:id /jira_projectsExample response
Status 200 No response body
Retrieve environments integrations linear teams
Path parameters
- idinteger
Example request
GET /api /environments /:environment_id /integrations /:id /linear_teamsExample response
Status 200 No response body
Retrieve environments integrations linkedin ads accounts
Path parameters
- idinteger
Example request
GET /api /environments /:environment_id /integrations /:id /linkedin_ads_accountsExample response
Status 200 No response body
Retrieve environments integrations linkedin ads conversion rules
Path parameters
- idinteger
Example request
GET /api /environments /:environment_id /integrations /:id /linkedin_ads_conversion_rulesExample response
Status 200 No response body
Retrieve environments integrations twilio phone numbers
Path parameters
- idinteger
Example request
GET /api /environments /:environment_id /integrations /:id /twilio_phone_numbersExample response
Status 200 No response body
Retrieve environments integrations authorize
Example request
GET /api /environments /:environment_id /integrations /authorizeExample response
Status 200 No response body
Create environments integrations domain connect apply url
Unified endpoint for generating Domain Connect apply URLs.
Accepts a context ("email" or "proxy") and the relevant resource ID. The backend resolves the domain, template variables, and service ID based on context, then builds the signed apply URL.
Request parameters
- kind
- config
Example request
POST /api /environments /:environment_id /integrations /domain-connect /apply-urlExample response
Status 200 No response body
Retrieve environments integrations domain connect check
Example request
GET /api /environments /:environment_id /integrations /domain-connect /checkExample response
Status 200 No response body
Create environments integrations github link existing
Reuse a GitHub installation already linked to a sibling team in the same organization.
Required API key scopes
integration:writeRequest parameters
- kind
- config
Example request
POST /api /environments /:environment_id /integrations /github /link_existingExample response
Status 200 No response body
Create environments integrations github oauth authorize
Mint a User OAuth URL to bootstrap a fresh code when the install flow returns without one.
Required API key scopes
integration:writeRequest parameters
- kind
- config
Example request
POST /api /environments /:environment_id /integrations /github /oauth_authorizeExample response
Status 200 No response body
Create environments integrations request access
Notify project admins that a member is requesting an integration be connected.
Required API key scopes
integration:writeRequest parameters
- kind
- reasonstring
Response
Example request
POST /api /environments /:environment_id /integrations /request_accessExample response
Status 200
List all org organizations integrations
ViewSet for organization-level integrations.
Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc.
Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
Required API key scopes
organization_integration:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /integrationsExample response
Status 200
Retrieve org organizations integrations
ViewSet for organization-level integrations.
Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc.
Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
Required API key scopes
organization_integration:readPath parameters
- idstring
Response
Example request
GET /api /organizations /:organization_id /integrations /:idExample response
Status 200
Delete org organization integrations
ViewSet for organization-level integrations.
Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc.
Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
Required API key scopes
organization_integration:writePath parameters
- idstring
Example request
DELETE /api /organizations /:organization_id /integrations /:idExample response
Status 204 No response body
Update integrations environment mapping
ViewSet for organization-level integrations.
Provides access to integrations that are scoped to the entire organization (vs. project-level integrations). Examples include Vercel, AWS Marketplace, etc.
Creation is handled by the integration installation flows (e.g., Vercel marketplace installation). Users can disconnect integrations via the DELETE endpoint.
Path parameters
- idstring
Request parameters
Response
Example request
PATCH /api /organizations /:organization_id /integrations /:id /environment-mappingExample response
Status 200
List all integrations
Also available via the PostHog MCP server:
integrations-list— List integrations
Required API key scopes
integration:readQuery parameters
- kindstringOne of:
"anthropic""apns""azure-blob""bing-ads""clickup""customerio-app""customerio-track""customerio-webhook""databricks""email""firebase""github""gitlab""google-ads""google-analytics""google-cloud-service-account""google-cloud-storage""google-pubsub""google-search-console""google-sheets""hubspot""intercom""jira""linear""linkedin-ads""meta-ads""pinterest-ads""postgresql""reddit-ads""salesforce""slack""slack-posthog-code""snapchat""stripe""tiktok-ads""twilio""vercel" - limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /integrationsExample response
Status 200
Create integrations
Required API key scopes
integration:writeRequest parameters
- kind
- config
Response
Example request
POST /api /projects /:project_id /integrationsExample response
Status 201
Retrieve integrations
Required API key scopes
integration:readPath parameters
- idinteger
Response
Example request
GET /api /projects /:project_id /integrations /:idExample response
Status 200
Delete integrations
Required API key scopes
integration:writePath parameters
- idinteger
Example request
DELETE /api /projects /:project_id /integrations /:idExample response
Status 204 No response body
Retrieve integrations anthropic managed agent envs
Required API key scopes
integration:readPath parameters
- idinteger
Example request
GET /api /projects /:project_id /integrations /:id /anthropic_managed_agent_environments