---
title: "Google Auth"
method: POST
path: "/api/v1/auth/google"
tags: ["Authentication"]
---

# Google Auth

`POST /api/v1/auth/google`

## Request

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

Authenticate with Google ID token. Creates account on first use.

Links device if X-Device-Id provided.

## Headers

- `X-Device-Id` integer, nullable

## Request body

- GoogleAuthRequest
  - `id_token` string, required: Google ID token from client-side sign-in
  - `gemstone_ids` integer[], nullable
  - `promo_code` string, nullable: Optional promo code to redeem on signup (LNK-PROMO)

## Response `200`

Successful Response

- Token
  - `token` string, required
  - `refreshToken` string, required
  - `user` UserResponse, required
    - `id` integer, required
    - `mobile_number` string, nullable
    - `phone_country_code` string, nullable
    - `first_name` string, required
    - `last_name` string, required
    - `avatar` string, nullable
    - `is_verified` boolean, required
    - `member_since` string, date-time, required
    - `email` string, nullable
    - `registration_completed` boolean, required
    - `has_completed_tour` boolean
    - `auth_provider` string, nullable
    - `apple_linked` boolean
  - `gemstones_saved` integer, nullable
  - `is_new_user` boolean, nullable
  - `promo_granted` string, nullable

## Other responses

- `422`: Validation Error

---

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