# Quickstart (/quickstart)



## 1. Create a key [#1-create-a-key]

In your SendKuy dashboard, open
[**Developers → Keys**](https://app.sendkuy.com/user/api?utm_source=docs\&utm_medium=quickstart)
and create one. No account yet?
[Sign up](https://app.sendkuy.com/register?utm_source=docs\&utm_medium=quickstart)
first. The key is shown **once** — store it now, because we keep only a hash of
it and cannot show it to you again.

Give it only the scopes you need. A key that can read contacts and send messages
needs `contacts:read` and `messages:write`, nothing more.

## 2. Send [#2-send]

Use cURL, or install an [SDK](/sdks) first: `npm i sendkuy`, `composer require sendkuy/sdk` or `composer require sendkuy/laravel`.

Prefer Postman? Fork the collection and paste your key into its `bearerToken` variable as the current value.

<RunInPostman />

<CodeBlockTabs defaultValue="cURL">
  <CodeBlockTabsList>
    <CodeBlockTabsTrigger value="cURL">
      cURL
    </CodeBlockTabsTrigger>

    <CodeBlockTabsTrigger value="Node.js">
      Node.js
    </CodeBlockTabsTrigger>

    <CodeBlockTabsTrigger value="PHP">
      PHP
    </CodeBlockTabsTrigger>

    <CodeBlockTabsTrigger value="Laravel">
      Laravel
    </CodeBlockTabsTrigger>
  </CodeBlockTabsList>

  <CodeBlockTab value="cURL">
    ```bash
    curl -X POST https://app.sendkuy.com/api/v1/messages \
      -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "channel": "whatsapp",
        "to": ["+6281234567890"],
        "body": "Your order is on its way."
      }'
    ```
  </CodeBlockTab>

  <CodeBlockTab value="Node.js">
    ```ts
    import { SendKuy } from 'sendkuy';

    const sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

    const [message] = await sendkuy.messages.send({
      channel: 'whatsapp',
      to: ['+6281234567890'],
      body: 'Your order is on its way.',
    });
    ```
  </CodeBlockTab>

  <CodeBlockTab value="PHP">
    ```php
    <?php

    use SendKuy\SendKuy;

    $sendkuy = new SendKuy('sk_live_YOUR_API_KEY');

    $messages = $sendkuy->messages()->send([
        'channel' => 'whatsapp',
        'to' => ['+6281234567890'],
        'body' => 'Your order is on its way.',
    ]);
    ```
  </CodeBlockTab>

  <CodeBlockTab value="Laravel">
    ```php
    use SendKuy\Laravel\Facades\SendKuy;

    $messages = SendKuy::messages()->send([
        'channel' => 'whatsapp',
        'to' => ['+6281234567890'],
        'body' => 'Your order is on its way.',
    ]);
    ```
  </CodeBlockTab>
</CodeBlockTabs>

Numbers must be E.164, with the leading `+`. A local number is refused rather
than guessed — guessing the wrong country sends a stranger a message and bills
you for it.

## 3. Read the answer [#3-read-the-answer]

```json
{
  "data": [
    {
      "object": "message",
      "id": "msg_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3",
      "channel": "whatsapp",
      "status": "delivered",
      "to": "+6281234567890"
    }
  ]
}
```

`data` is an **array**, one object per recipient. One message is one line of
delivery: one person, one status. Send to three numbers and you get three
objects back, not one with three addresses.

One recipient is sent while you wait, so its `status` is already the outcome.
Several recipients are answered as `queued` and sent in the background, paced
per number.

## 4. Check on it later [#4-check-on-it-later]

```bash
curl https://app.sendkuy.com/api/v1/messages/msg_9cBe3A1H-SLhW5fONWZ32wb-IIio5Ts3 \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
```

Polling works, but [webhooks](/webhooks) are better: we call you when the
status changes instead of you asking.

## What next [#what-next]

* [MCP server](/mcp) — let an AI agent send for you.
* [Authentication](/authentication) — scopes, and what each one grants.
* [Idempotency](/idempotency) — retry safely without sending twice.
* [Errors](/errors) — every failure this API can answer with.
