---
title: "Log in with Google OAuth2"
method: POST
path: "/api/auth/google"
tags: ["Authentication"]
---

# Log in with Google OAuth2

`POST /api/auth/google`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/auth/google`
- Auth: HTTP bearer

## Request body

- object
  - `id_token` string, required

## Response `200`

successful

- object
  - `message` string
  - `user` object
    - `id` integer
    - `paid` boolean
    - `is_verified` boolean
    - `account_valid_till` string, date
    - `available_credits` integer
    - `full_name` string
    - `email` string
    - `plan_id` integer
    - `plan_name` string
    - `total_credits` integer
    - `used_credits` integer
    - `avatar_letter` string
    - `percentage_credits` number
    - `out_of_credits` boolean
  - `token` string

## Other responses

- `401`: unauthorized

---

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