# One-way messages (voice OTP) (/docs/one-way-messages)

Send only `to` and `message`. We call, read the text and hang up:

```bash tab="curl"
curl https://api.callhuman.es/v1/calls \
  -H "Authorization: Bearer $CALLHUMAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "+14155552671", "message": "Your verification code is 4 8 2 9. Again, 4 8 2 9."}'
```

```js tab="JavaScript"
await fetch("https://api.callhuman.es/v1/calls", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CALLHUMAN_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    to: "+14155552671",
    message: "Your verification code is 4 8 2 9. Again, 4 8 2 9.",
  }),
});
```

```python tab="Python"
import os
import requests

requests.post(
    "https://api.callhuman.es/v1/calls",
    headers={"Authorization": f"Bearer {os.environ['CALLHUMAN_API_KEY']}"},
    json={
        "to": "+14155552671",
        "message": "Your verification code is 4 8 2 9. Again, 4 8 2 9.",
    },
)
```

## How it behaves [#how-it-behaves]

| | One-way message | Call with options |
|---|---|---|
| Fields needed | `to`, `message` | `to`, `message`, `options` |
| Attempts | **1** — no retries, so a code is never read late | 1 + 2 retries, 5 minutes apart |
| Voicemail or no answer | Ends at once as `not_answered` (free) | Retried, then `not_answered` (free) |
| Webhook | Optional (only if you want delivery confirmation) | Recommended |
| Counts towards your plan | Only if answered | Only if answered |

## Writing codes that are easy to hear [#writing-codes-that-are-easy-to-hear]

- **Separate the digits with spaces**: `4 8 2 9`, not `4829` (otherwise it may be read as “four thousand…”).
- **Repeat the code once**: “Your code is 4 8 2 9. Again, 4 8 2 9.”
- **Keep it short**: say what the code is for in a few words. Long messages count towards your [length limit](/docs/options#length-limit).
- Use the `language` of the person: `"language": "es"` reads the code in Spanish.

<Callout type="warn" title="Never ask for secrets">
Calls must not ask people to say or type passwords, card numbers or codes. Only read codes out to the person who requested them. See the [Terms](/terms).
</Callout>

## Delivery confirmation [#delivery-confirmation]

Add `webhook_url` if you want to know whether the person picked up. The webhook receives `status: "answered"` or `status: "not_answered"`, with an empty `option_path`.