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

# Github Callback

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

## Request

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

Exchange GitHub auth code for tokens and create/login user.

## Query parameters

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

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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