> ## Documentation Index
> Fetch the complete documentation index at: https://www.vobiz.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Send your first SMS with Vobiz

> Send an SMS through the Vobiz Messaging API in five steps - get credentials, verify your account, pick a messaging number, call POST /Message/, and track delivery.

This guide sends one SMS and shows you where its delivery status lands. It takes about five minutes if you already have an account.

**1. Get your credentials**

Sign in to the [Vobiz Console](https://console.vobiz.ai). Your **Auth ID** (`MA_…`) and **Auth Token** are on the dashboard. Send them as the `X-Auth-ID` and `X-Auth-Token` headers on every request.

**2. Before you start: verify your account**

Complete KYC verification in the console under **KYC**. Until your account is verified, buying a number and sending a message both return `403`:

```json Response (403) theme={null}
{
  "error": "kyc_required",
  "message": "complete KYC verification for your account before buying SMS numbers or sending messages"
}
```

New accounts also have lower sending limits for their first days: by default 7 days, with up to 200 messages per rolling 24 hours and 30 per minute. Above them a send returns `429` with `daily_limit_exceeded` or `rate_limited`. The limits lift as the account ages; contact support if you need more sooner. See [Account checks](https://www.vobiz.ai/docs/sms/errors.md#account-checks-kyc-and-sending-limits).

**3. Get a messaging number**

List the numbers on your account that can send messages:

```bash cURL theme={null}
curl "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Number/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

Use a number from the `numbers` array as `from`. If the list is empty, [buy a number](https://www.vobiz.ai/docs/sms/numbers.md) or use the console under **SMS & RCS → Numbers**.

> [!NOTE]
>
> US numbers need a registered [10DLC campaign](https://www.vobiz.ai/docs/sms/compliance/us-10dlc-campaigns.md) or [toll-free verification](https://www.vobiz.ai/docs/sms/compliance/us-toll-free.md) before they can send at scale. Each number's `registration.status` in the list above tells you where it stands.

**4. Send the message**

```bash cURL theme={null}
curl -X POST "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "+14155550100",
    "to": ["+14155550123"],
    "channel": "sms",
    "text": "Your verification code is 482913",
    "idempotencyKey": "otp-482913-user-77"
  }'
```

```python Python theme={null}
import requests

resp = requests.post(
    "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/",
    headers={
        "X-Auth-ID": "MA_XXXXXXXX",
        "X-Auth-Token": "YOUR_AUTH_TOKEN",
    },
    json={
        "from": "+14155550100",
        "to": ["+14155550123"],
        "channel": "sms",
        "text": "Your verification code is 482913",
        "idempotencyKey": "otp-482913-user-77",
    },
)
print(resp.status_code, resp.json())
```

```javascript Node theme={null}
const resp = await fetch("https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/", {
  method: "POST",
  headers: {
    "X-Auth-ID": "MA_XXXXXXXX",
    "X-Auth-Token": "YOUR_AUTH_TOKEN",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    from: "+14155550100",
    to: ["+14155550123"],
    channel: "sms",
    text: "Your verification code is 482913",
    idempotencyKey: "otp-482913-user-77",
  }),
});
console.log(resp.status, await resp.json());
```

A `201` returns the message:

```json Response (201) theme={null}
{
  "id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
  "accountId": "MA_XXXXXXXX",
  "direction": "out",
  "channel": "sms",
  "from": "+14155550100",
  "to": "+14155550123",
  "text": "Your verification code is 482913",
  "mediaUrls": null,
  "status": "sent",
  "conversationId": "c7d1e9a3-2b4f-4a6c-8d5e-1f3a9b7c2e04",
  "createdAt": "2026-10-12T10:30:00Z",
  "updatedAt": "2026-10-12T10:30:00Z"
}
```

`sent` means the network accepted the message. Keep the `id`.

> [!WARNING]
>
> This call sends a real message and is billed per segment. Use your own numbers while you test.

**5. Track delivery**

Poll the message until `status` becomes `delivered` or `failed`:

```bash cURL theme={null}
curl "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

The response adds a `statusHistory` array with every state the message passed through. For production, subscribe to [webhooks](https://www.vobiz.ai/docs/sms/webhooks.md) instead of polling, so delivery receipts and replies are pushed to your server.

> [!TIP]
>
> You have sent an SMS and read its delivery status. The reply, if the recipient answers, lands in a [conversation](https://www.vobiz.ai/docs/sms/conversations.md) with `direction: "in"`.

## Next steps

> [card] [Retry safely](https://www.vobiz.ai/docs/sms/api/messages/send-message.md)
>
> Always send an `idempotencyKey`. A retry with the same key returns the original message instead of sending again.

> [card] [Preview the cost](https://www.vobiz.ai/docs/sms/api/messages/cost-preview.md)
>
> See the segment count and price for a message before you send it.

> [card] [Send to India](https://www.vobiz.ai/docs/sms/compliance/india-dlt.md)
>
> Add your DLT entity, header and template IDs to every message to Indian numbers.

> [card] [Go rich with RCS](https://www.vobiz.ai/docs/sms/channels/rcs.md)
>
> Buttons, branding and SMS fallback from a verified RCS sender.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.