---
title: "Google Login"
method: POST
path: "/api/v1/google-login"
tags: ["Chat"]
---

# Google Login

`POST /api/v1/google-login`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/google-login`
- Auth: none declared

Google login endpoint

## Query parameters

- `chat_id` string, nullable

## Request body

- GoogleLoginRequest
  - `id_token` string, required

## Response `200`

Successful Response

- GoogleLoginResponse
  - `success` boolean
  - `token` string, required
  - `refresh_token` string, required
  - `user_id` string, required
  - `user_name` string, required
  - `t_c_verified` boolean, required
  - `onboarding_completed` boolean, required

## Other responses

- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/caspr/apis/casper-api.md) - [All operations](https://skmtc.dev/caspr/apis/casper-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caspr/apis/casper-api/revisions/f9765e3aa00c?raw)
