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

# Quickstart

> Send your first message in four steps.

**1. Get your base URL and token**

Your CPaaS+ base URL is shared at onboarding. Generate a token in the portal (see [Authentication](/docs/authentication.md)). Keep it server-side and never commit it to source control.

**2. Create a template or campaign**

In the web portal, create the SMS campaign or template, WhatsApp template, email template or RCS template you want to send. Note its ID.

**3. Send a message**

The example below sends an SMS using a template. Replace the placeholders with your own values.

```bash cURL theme={null}
curl -X POST "$BASE_URL/api/sms/template/send" \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "alias": "YOUR_TEMPLATE_ID",
    "to": ["91XXXXXXXXXX"],
    "params": { "1": "ORD-1001" }
  }'
```

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

resp = requests.post(
    f"{os.environ['BASE_URL']}/api/sms/template/send",
    headers={
        "Authorization": f"Bearer {os.environ['API_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "alias": "YOUR_TEMPLATE_ID",
        "to": ["91XXXXXXXXXX"],
        "params": {"1": "ORD-1001"},
    },
    timeout=30,
)
print(resp.status_code, resp.json())
```

```javascript Node.js theme={null}
const resp = await fetch(`${process.env.BASE_URL}/api/sms/template/send`, {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.API_TOKEN}`,
    "Content-Type": "application/json",
    Accept: "application/json",
  },
  body: JSON.stringify({
    alias: "YOUR_TEMPLATE_ID",
    to: ["91XXXXXXXXXX"],
    params: { 1: "ORD-1001" },
  }),
});
console.log(resp.status, await resp.json());
```

**4. Check delivery status**

Use the status endpoint for the channel (for example `GET /api/sms/status`) with the message ID from the send response.

**5. Optional: Receive delivery updates with webhooks**

If you want CPaaS+ to push status updates to your application instead of polling, configure a webhook.

For SMS, open **Settings → Client Webhook** in the CPaaS+ portal, create a webhook for **SMS Channel**, enter your callback URL, and activate the **Default DLR** subscription. You can optionally enable **Bulk push**. See the [SMS DLR Webhook guide](/docs/guides/sms-dlr-webhook.md) for the full setup, payload fields and callback-handling notes.

For RCS, see the [RCS Webhook guide](/docs/guides/rcs-webhook.md) for the documented dispatch, delivery, interaction and incoming-message event payloads.

> [!TIP]
>
> You can also try any endpoint directly from the **API Reference** tab: paste your token into the playground's authorization field.


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