---
title: "Social login (Google, Apple, Discord)"
method: POST
path: "/v1/auth/social-login"
tags: ["Authentication"]
---

# Social login (Google, Apple, Discord)

`POST /v1/auth/social-login`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/auth/social-login`
- Auth: none required

## Request body

- object
  - `provider` 'google' | 'apple' | 'discord', required
  - `id_token` string, required: Google/Apple ID token, or Discord OAuth authorization code
  - `oauth_redirect_uri` string: Required for Discord — must match the redirect URI used in the OAuth flow
  - `auto_provision_chains` string[]

## Response `200`

Login successful

## Other responses

- `201`: New user created
- `401`: Invalid or unverified token
- `409`: Email already registered (no auto-linking)

---

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