provider integrations POST /api/projects/{project_id}/integrations/github/prepare_callback/
@utdk/posthog /api/projects/{project_id}/integrations/github/prepare_callback/
integrations_github_prepare_callback_create
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.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
integrationsGithubPrepareCallbackCreate
POST/api/projects/{project_id}/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.

Parameters

required

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

Input

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

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

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.integrationsGithubPrepareCallbackCreate()