---
title: "Oauth Login"
method: POST
path: "/auth/oauth/{provider}"
---

# Oauth Login

`POST /auth/oauth/{provider}`

## Request

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

Sign in / sign up with a Google id_token or Apple identity_token.
Body: {token, terms_accepted?}. Existing account with the same verified
email gets LINKED (provider sub stored); brand-new users need
terms_accepted=true (400 with needs_terms otherwise). Response mirrors
/auth/login; first-ever creation also returns the shown-once api_key.

## Path parameters

- `provider` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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