Integrations
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
POST | |
POST | |
POST | |
POST |
Create 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 /projects /:project_id /integrations /domain-connect /apply-urlExample response
Status 200 No response body
Retrieve integrations domain connect check
Example request
GET /api /projects /:project_id /integrations /domain-connect /checkExample response
Status 200 No response body
Create 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
- source_team_idintegernull
- installation_idstring
Response
Example request
POST /api /projects /:project_id /integrations /github /link_existingExample response
Status 200
Create 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
- installation_idstring
- nextstring
- connect_from
Response
Example request
POST /api /projects /:project_id /integrations /github /oauth_authorizeExample response
Status 200
Create integrations github prepare callback
Seed GitHub setup callback state without redirecting to GitHub.
Used when the user opens an existing installation's settings on github.com (e.g. PostHog Code "Update in GitHub") so the subsequent Setup URL redirect can be validated.
Required API key scopes
integration:writeRequest parameters
- nextstring
- installation_idstring
Example request
POST /api /projects /:project_id /integrations /github /prepare_callbackExample response
Status 204 No response body
Create 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 /projects /:project_id /integrations /request_access