> Source: https://fortwave.io/help/developers/send-your-first-api-request

# Send your first SMS with the API

Authenticate with your API key, call the SMS endpoint, and receive delivery updates by webhook.

Updated 14 November 2026

This guide sends one SMS with the Fortwave REST API. The [SMS API reference](https://fortwave.io/docs/sms) covers every endpoint and field, and the [WhatsApp API reference](https://fortwave.io/docs/whatsapp) covers WhatsApp.

## What you need

- An [API key](https://fortwave.io/help/developers/api-keys).
- For live SMS: an approved [company](https://fortwave.io/help/getting-started/set-up-your-company), an approved [sender ID](https://fortwave.io/help/sms/register-a-sender-id) and [credits](https://fortwave.io/help/billing/buy-sms-credits). To try it first, use [test mode](https://fortwave.io/help/getting-started/test-mode) with the sender ID `MiraiTest` and your verified test number.

## Send the request

Send a `POST` request to `/v1/sms` with your key in the `Authorization` header. `phone_number`, `sender` and `message` are all required.

**cURL**

```bash
curl -X POST https://rest.api.fortwave.io/v1/sms \
  -H "Authorization: Bearer $FORTWAVE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"phone_number":"+25761000000","sender":"MyApp","message":"Your verification code is 123456."}'
```

Replace `MyApp` with your approved sender ID and the number with the recipient's, including `+` and the country code (local numbers like `61000000` are also accepted). A successful response returns the message ID with the status `queued`.

## Get delivery updates

Rather than checking each message, add a webhook URL under **Settings → Developer → Webhooks**. Fortwave then calls your URL when a message is sent (`sms.sent`) or fails (`sms.failed`). Each request carries an `X-Webhook-Signature` header, an HMAC-SHA256 of the body made with your signing secret, so you can check it came from Fortwave. [Receive SMS delivery reports with webhooks](https://fortwave.io/help/developers/sms-delivery-webhooks) shows how to verify it in Laravel, Node.js and Python.

## Common errors

- **Unauthorized:** the key is missing, mistyped or revoked.
- **Company not approved:** live SMS need an approved company. Use test mode until it is.
- **Invalid sender:** the sender ID isn't approved on your account.
- **Insufficient credits:** [buy more SMS credits](https://fortwave.io/help/billing/buy-sms-credits).

## Still need help?

Our team answers Monday to Friday, during business hours (CAT).

[API documentation](https://fortwave.io/docs) [Contact us](https://fortwave.io/contact)
