---
title: "Oauth Login"
method: POST
path: "/api/auth/oauth"
tags: ["auth"]
---

# Oauth Login

`POST /api/auth/oauth`

## Request

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

Universal OAuth login for Microsoft, GitHub, Apple.

## Request body

- OAuthLoginRequest: Universal OAuth login — provider sends auth code or credential.
  - `provider` string, required
  - `code` string, nullable
  - `credential` string, nullable
  - `redirect_uri` string, nullable

## Response `200`

Successful Response

- LoginResponse
  - `token` string, required
  - `user` object, required
  - `refresh_token` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zugabot/apis/spiritus.md) · [All operations](https://skmtc.dev/zugabot/apis/spiritus/llms.txt) · [OpenAPI document](https://skmtc.dev/zugabot/apis/spiritus/revisions/f20ef4524415?raw)
