PostHog Connection

Connect one PostHog Cloud project

Owner-only. connect starts a short-lived PKCE browser handoff for the explicit PostHog Cloud region. PostHog's project-scoped consent selects the one environment bound to this connection. The read-only OAuth token remains encrypted in the hosted control plane.

post/v1/projects/{project_id}/posthog-connection

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/projects/{project_id}/posthog-connection
  • Auth: HTTP bearer

Path parameters

project_idstring required

Request body

intent'connect' required
region'us' | 'eu' required
posthog_project_idinteger

Optional assertion for a caller that already knows the intended PostHog environment id. OAuth consent must still bind exactly this one provider-scoped environment.

Response

OK

authorization_urlstring
poll_interval_secondsinteger
expires_atinteger

Changes

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