---
title: "POST /api/v1/users/google/"
method: POST
path: "/api/v1/users/google/"
tags: ["users", "v1"]
---

# POST /api/v1/users/google/

`POST /api/v1/users/google/`

Authenticate user (register first if the profile doesn't exist)
via Google in CLM.

The login algorithm is next:

1. Redirect to google auth page `https://accounts.google.com/o/oauth2/v2/auth`
    with correct `client_id`, `redirect_url`;
2. After google auth user will be redirected to callback url;
3. Pass the `code` from query params to this endpoint.

## Request body

- Code
  - `code` string, required

## Response `201`

- SocialLogin
  - `access_token` string
  - `code` string
  - `id_token` string

---

[API](https://skmtc.net/lexpredict/apis/contraxsuite-api.md) · [All operations](https://skmtc.net/lexpredict/apis/contraxsuite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lexpredict/contraxsuite-api/revisions/3429f921b4cb/schema)
