---
title: "Log in with phone number and code"
method: POST
path: "/user/auth"
tags: ["Authentication B2C"]
---

# Log in with phone number and code

`POST /user/auth`

To access both online and offline (e.g., phone-made) appointments, the user must log in by verifying their phone number. This is done by requesting a confirmation code to be sent via SMS using the "SMS phone number verification code" endpoint.

## Headers

- `Accept` string, required
- `Content-Type` string, required
- `Authorization` string, required

## Request body

- AuthRequest — User authorization
  - `login` string, required — Phone number or Email
  - `password` string, required — Password

## Response `201`

Created

- UserAuthResponse — User authorization by phone number and SMS code
  - `user_token` string — User_token of the user

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/alteg/apis/online-booking.md) · [All operations](https://skmtc.net/alteg/apis/online-booking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alteg/online-booking/versions/623dc683246f/schema)
