> 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_telephone_number/003__verify_user_telephone_number.md).

# Verify User Telephone Number

GraphQL endpoint: `/user`

Verifies a user's telephone number using the verification code (OTP) that was sent via SMS. Once verified, the telephone number status changes to verified and can be set as primary.

## Query

```graphql
mutation (
  $telephoneNumberId: ID!
  $code: String!
) {
  verifyUserTelephoneNumber (
    telephoneNumberId: $telephoneNumberId
    code: $code
  ) {
    status
  }
}

```

## Variables

```json
{
  "code": "1",
  "telephoneNumberId": "00000000-0000-4000-8000-000000000001"
}
```

## Response

```json
{
  "data": {
    "verifyUserTelephoneNumber": {
      "status": "OK"
    }
  }
}
```
