---
title: "Authorize Online Booking User"
method: POST
path: "/booking/auth"
tags: ["Authentication B2C", "Authentication"]
---

# Authorize Online Booking User

`POST /booking/auth`

When a user of an online account changes their password, their API key will change and a new authorization will be required

| Attribute | Type | Description |
| ------------- | ------------- | ------------- |
| login | string | The visitor's phone number in the format +13155550175, or their email address. |
| password | string | Visitor password |

## 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

- BookingAuthResponse — User authorization
  - `id` integer — User ID
  - `user_token` string — User_token of the user
  - `name` string — Username
  - `phone` string — User phone
  - `login` string — User login
  - `email` string — User mailing address
  - `avatar` string — Path to the user's avatar file

## 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)
