---
title: "POST /api/Account/authenticateByPhone"
method: POST
path: "/api/Account/authenticateByPhone"
tags: ["Account"]
---

# POST /api/Account/authenticateByPhone

`POST /api/Account/authenticateByPhone`

## Request

- Base URL: `https://api.tafrihan.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tafrihan.com/api/Account/authenticateByPhone`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/tafrihan/apis/clean-architecture-tourleader-webapi/docs/api/Account/authenticateByPhone/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- AuthenticationByPhoneRequest
  - `phoneNumber` string, required
  - `token` string, required
  - `role` 1 | 2 | 3 | 4

## Response `200`

OK

## Changes

- **2026-10-14** `3f901c495487`: 4 breaking
  - the `token` request property's minLength was increased from `0` to `1` (media type: application/json-patch+json)
  - the `token` request property's minLength was increased from `0` to `1` (media type: application/json)
  - the `token` request property's minLength was increased from `0` to `1` (media type: text/json)
  - the `token` request property's minLength was increased from `0` to `1` (media type: application/*+json)

[Operation history](https://skmtc.dev/tafrihan/apis/clean-architecture-tourleader-webapi/changes/api/Account/authenticateByPhone/post.md)

---

[API](https://skmtc.dev/tafrihan/apis/clean-architecture-tourleader-webapi.md) - [All operations](https://skmtc.dev/tafrihan/apis/clean-architecture-tourleader-webapi/llms.txt) - [OpenAPI document](https://skmtc.dev/tafrihan/apis/clean-architecture-tourleader-webapi/revisions/2a28a2599955?raw)
