provider integrations POST /api/environments/{environment_id}/integrations/github/oauth_authorize/
@utdk/posthog /api/environments/{environment_id}/integrations/github/oauth_authorize/
environments_integrations_github_oauth_authorize_create
Mint a User OAuth URL to bootstrap a fresh `code` when the install flow returns without one.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsIntegrationsGithubOauthAuthorizeCreate
POST/api/environments/{environment_id}/integrations/github/oauth_authorize/
Mint a User OAuth URL to bootstrap a fresh `code` when the install flow returns without one.

Parameters

required

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

Input

GitHub installation ID to carry through the User OAuth flow.

Relative URL to redirect to after the OAuth flow completes.

Originating surface for the connect flow; only 'posthog_code' is recognized. * `posthog_code` - posthog_code

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