integrations

Reuse a GitHub installation already linked to a sibling team in the same organization.

post/api/projects/{project_id}/integrations/github/link_existing/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/integrations/github/link_existing/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

discovery_idstring uuid nullable

Discovery response ID for diagnostics only; grants no authority.

source_team_idinteger nullable

Sibling team in the same organization whose GitHub installation should be reused.

installation_idstring nullable

GitHub installation ID to link; resolved within the organization when source_team_id is omitted.

Response

idinteger required
kind'anthropic' | 'apple-ads' | 'apns' | 'aws-redshift' | 'aws-s3' | 'azure-blob' | 'bing-ads' | 'clickup' | 'customerio-app' | 'customerio-track' | 'customerio-webhook' | 'databricks' | 'email' | 'firebase' | 'github' | 'gitlab' | 'google-ads' | 'google-analytics' | 'google-calendar' | 'google-cloud-service-account' | 'google-cloud-storage' | 'google-pubsub' | 'google-search-console' | 'google-sheets' | 'helpscout' | 'hubspot' | 'instagram' | 'intercom' | 'jira' | 'linear' | 'linkedin-ads' | 'meta-ads' | 'pardot' | 'pinterest-ads' | 'postgresql' | 'posthog' | 'reddit-ads' | 'twitter-ads' | 'resend' | 's3-compatible' | 'salesforce' | 'slack' | 'slack-posthog-code' | 'snapchat' | 'snowflake' | 'stripe' | 'tiktok-ads' | 'twilio' | 'vercel' | 'youtube-analytics' required
  • anthropic - Anthropic
  • apple-ads - Apple Ads
  • apns - Apple Push
  • aws-redshift - Aws Redshift
  • aws-s3 - Aws S3
  • azure-blob - Azure Blob
  • bing-ads - Bing Ads
  • clickup - Clickup
  • customerio-app - Customerio App
  • customerio-track - Customerio Track
  • customerio-webhook - Customerio Webhook
  • databricks - Databricks
  • email - Email
  • firebase - Firebase
  • github - Github
  • gitlab - Gitlab
  • google-ads - Google Ads
  • google-analytics - Google Analytics
  • google-calendar - Google Calendar
  • google-cloud-service-account - Google Cloud Service Account
  • google-cloud-storage - Google Cloud Storage
  • google-pubsub - Google Pubsub
  • google-search-console - Google Search Console
  • google-sheets - Google Sheets
  • helpscout - Helpscout
  • hubspot - Hubspot
  • instagram - Instagram
  • intercom - Intercom
  • jira - Jira
  • linear - Linear
  • linkedin-ads - Linkedin Ads
  • meta-ads - Meta Ads
  • pardot - Pardot
  • pinterest-ads - Pinterest Ads
  • postgresql - Postgresql
  • posthog - Posthog
  • reddit-ads - Reddit Ads
  • twitter-ads - Twitter Ads
  • resend - Resend
  • s3-compatible - S3 Compatible
  • salesforce - Salesforce
  • slack - Slack
  • slack-posthog-code - Slack Posthog Code
  • snapchat - Snapchat
  • snowflake - Snowflake
  • stripe - Stripe
  • tiktok-ads - Tiktok Ads
  • twilio - Twilio
  • vercel - Vercel
  • youtube-analytics - Youtube Analytics
configunknown
created_atstring date-time required
errorsstring required
display_namestring required
files_write_requestableboolean required

Slack only: whether reconnecting can request the files:write scope.

installation_sharedboolean nullable required

GitHub only, null otherwise. Whether another project's GitHub integration references the same App installation. When false, disconnecting this integration also uninstalls the GitHub App from the connected account or organization and removes personal GitHub connections that share it.

Changes

No recorded changes to this operation across all 1 revision of this API.