provider integrations POST /api/environments/{environment_id}/integrations/github/prepare_callback/
@utdk/posthog /api/environments/{environment_id}/integrations/github/prepare_callback/
environments_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.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsIntegrationsGithubPrepareCallbackCreate
POST/api/environments/{environment_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

Deprecated. Use /api/projects/{project_id}/ instead.

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.environmentsIntegrationsGithubPrepareCallbackCreate()