> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/004__authenticate_via_telephone_number.md).

# Authenticate As User Via Telephone Number

HTTP API `POST` `/auth/token`

To start using the API as a user you need to have a registered user account. And you need to get an OTP code sent to your phone number.

## Request

```json
{
  "otp_code": "1",
  "telephone_number": "2"
}
```

## Response

**HTTP Response Code:** 200

```json
{
  "access_token": "eyJERAMPLE.PAYLOAD1.SIGNATURE",
  "refresh_token": "eyJERAMPLE.PAYLOAD2.SIGNATURE"
}
```
