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

# Quick start

> Ping → create UI campaign → POST /leads with consent.

## 1. Get a key

Open **API Access**, give the key a **name**, choose sandbox or live, add a why note, and submit. Super Admin approves and shows the plaintext key once. See [Request API access](/get-started/guides/request-api-access).

## 2. Create an API campaign (dashboard)

Wizard → data source **API / Custom CRM** → configure script & phone → **Start**. Copy `campaignId`. See [Create API campaign](/get-started/guides/create-api-campaign).

## 3. Ping / find your campaign

```bash theme={"system"}
curl -sS -H "Authorization: Bearer $ONDIAL_API_KEY" \
  "$ONDIAL_BASE_URL/api/v1/ping"
```

Or use Try It on [Ping](/api-reference/endpoint/core/ping).

List API campaigns and copy `campaignId`: [List campaigns](/api-reference/endpoint/outbound/list-campaigns). [Get campaign](/api-reference/endpoint/outbound/get-campaign) shows which email/WhatsApp profile + template that campaign uses.

## 4. Push a lead

```bash theme={"system"}
curl -sS -X POST "$ONDIAL_BASE_URL/api/v1/leads" \
  -H "Authorization: Bearer $ONDIAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: crm-lead-1" \
  -d '{
    "campaignId": "YOUR_CAMPAIGN_ID",
    "phone": "+919876543210",
    "name": "Asha",
    "channel": "call",
    "consent": {
      "outboundCall": true,
      "capturedAt": "2026-08-11T10:00:00Z",
      "source": "crm"
    }
  }'
```

Sandbox keys return `sandbox_accepted` without live dials.

## 5. WhatsApp / email without a call

1. [List Omni templates](/api-reference/endpoint/core/list-omni-templates) — copy `lead`, fill blanks
2. `POST /leads` with `"channel": "whatsapp"` or `"email"`, or `"channels": ["whatsapp","email"]` (no `call`)
3. Fill `templateVariables` (email `{{key}}`) and `whatsappParams` (`{{1}}`, `{{2}}`)

Step-by-step: [Send WhatsApp and email](/get-started/guides/send-whatsapp-and-email).
