---
title: "Complete a PostHog OAuth browser handoff"
method: GET
path: "/v1/integrations/posthog/oauth/callback"
tags: ["PostHog Connection"]
---

# Complete a PostHog OAuth browser handoff

`GET /v1/integrations/posthog/oauth/callback`

## Request

- Base URL: `https://api.agentry.sh`
- URL: `https://api.agentry.sh/v1/integrations/posthog/oauth/callback`
- Auth: none declared

Public browser callback protected by the one-time OAuth state and PKCE verifier. Returns a no-store HTML handoff page; OAuth tokens are encrypted by the hosted control plane and never returned to the browser, CLI, repository, CI, or runner.

## Query parameters

- `state` string, required
- `code` string
- `error` string

## Response `200`

Authorization completed or project selection is required

## Other responses

- `202`: Another callback is completing the same authorization
- `303`: Bootstrap authorization returned once to the initiating CLI's exact 127.0.0.1 callback.
- `400`: Authorization failed
- `410`: Authorization attempt expired

---

[API](https://skmtc.dev/agentry/apis/agentry-api.md) · [All operations](https://skmtc.dev/agentry/apis/agentry-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentry/apis/agentry-api/revisions/abdecddf009f?raw)
