---
title: "Github Callback"
method: GET
path: "/api/v1/auth/github/callback"
tags: ["auth"]
---

# Github Callback

`GET /api/v1/auth/github/callback`

## Request

- Base URL: `https://agentavow.com` (the document declares no server; this is the origin it was published from)
- URL: `https://agentavow.com/api/v1/auth/github/callback`
- Auth: none declared

Handle GitHub OAuth2 callback — login/register OR account linking.

Routing: if state starts with "login:", it's a login flow.
Otherwise it's an account-linking flow (from linked_accounts_router).

## Query parameters

- `code` string, required
- `state` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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