integrations

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.

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

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/integrations/github/prepare_callback/
  • 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

nextstring

Relative URL to redirect to after GitHub setup completes (e.g. account-connected for PostHog Desktop).

installation_idstring

GitHub installation ID being managed; binds the seeded update state so a callback can't swap in a different installation.

Response

No response body

Changes

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