---
title: "Oauth Callback"
method: POST
path: "/api/v1/auth/callback"
---

# Oauth Callback

`POST /api/v1/auth/callback`

Handle OAuth callback from GoTrue (Google, GitHub).

The client-side callback page extracts tokens from the URL hash fragment
and POSTs them here in the request body (tokens never appear in URLs/logs).

## Request body

- OAuthCallbackRequest
  - `access_token` string, required
  - `refresh_token` string
  - `invite_code` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.net/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/versions/43a90513ac59/schema)
