---
title: "Handle Auth0 callback and create session"
method: GET
path: "/api/auth/callback"
tags: ["Auth"]
---

# Handle Auth0 callback and create session

`GET /api/auth/callback`

## Request

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

## Query parameters

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

## Other responses

- `302`: Redirects authenticated user to app
- `400`: Invalid state, code, or callback

---

[API](https://skmtc.dev/refresherai/apis/refresher-ai-api.md) - [All operations](https://skmtc.dev/refresherai/apis/refresher-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/refresherai/apis/refresher-ai-api/revisions/78c67e67a096?raw)
