---
title: "OAuth callback endpoint"
method: GET
path: "/api/v1alpha/oauth2callback"
tags: ["Authentication"]
---

# OAuth callback endpoint

`GET /api/v1alpha/oauth2callback`

## Query parameters

- `flow` string — OAuth flow data
- `callback_port` integer — Callback port
- `state` string — OAuth state parameter

## Response `200`

Authentication successful

- LoginResponse
  - `token` string — Session token
  - `username` string — Username of the authenticated user

## Other responses

- `401` — Authentication failed

---

[API](https://skmtc.net/hail-is/apis/hail-auth-service.md) · [All operations](https://skmtc.net/hail-is/apis/hail-auth-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hail-is/hail-auth-service/versions/ec7e68cd907c/schema)
