> For the complete documentation index, see [llms.txt](https://bitel.gitbook.io/bitel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bitel.gitbook.io/bitel/master/call/untitled.md).

# OTP Call

Send a numeric OTP to a single phone number

<mark style="color:green;">`POST`</mark> `https://api.bitel.rest/api/v1/voice/otp`

#### Request Body

| Name        | Type   | Description                                                                                    |
| ----------- | ------ | ---------------------------------------------------------------------------------------------- |
| voiceId     | string | Id of the voice that is played before reading the number                                       |
| phoneNumber | string | target phone number. example: 0912\*\*\*\*\*\*\*                                               |
| text        | string | the number to read, must be only numeric and less than 6 characters. example: 1234             |
| repeatCount | string | how many times the number is played(default = 2)                                               |
| retryCount  | number | how many times the call is retried if the number if either busy or doesn't answer(default = 1) |
| serverId    | string | Identifier of dialer from which the voice will be originated                                   |

{% tabs %}
{% tab title="200 The result contains the requestId" %}

```javascript
{
  "result": "d9478050b8794fca8018742d0556dc85",
  "error": null
}
```

{% endtab %}
{% endtabs %}

#### Sample Request

```javascript
{
    "phoneNumber": "0912*******",
    "text": "1234"
}
```

#### Error Codes

| Code           | Description                                       |
| -------------- | ------------------------------------------------- |
| InvalidRequest | Indicates that the submitted request is invalid   |
| InvalidServer  | Indicates that the selected server id is invalid� |
|                |                                                   |
