# Quickstart

From account to first message sent, in a few minutes.

Five steps are enough to send your first message. The free trial lasts 14 days from the moment you connect your first number, no credit card needed on our side.

## 1. Create your account

Create an account on the sign-up page, confirm your email address with the link you receive, then sign in to the portal.

## 2. Connect a number

In the portal, open *Numbers* then *Connect a number*. You follow Meta's flow: Facebook login, choose or create the WhatsApp Business account, verify the number. No paperwork to file with Meta. Details are in [Connect a number](/en/docs/connect-number).

> **Warning**

> Meta bills messages on your WhatsApp Business account, not us, and the trial does not cover them. For paid sends (templates outside the 24-hour window: OTP, notifications, campaigns), add a payment method in [Meta Business Suite](https://business.facebook.com/). Without one, Meta refuses them. Replying to a customer inside the 24-hour window needs nothing more. See [Connect a number](/en/docs/connect-number).

## 3. Create an API key

Open *API keys* then *Create a key*. The secret is shown only once: copy it somewhere safe.

> **Warning**

> Never put a key in a mobile app or in code that runs in a visitor's browser. It must stay on your server.

## 4. Get the number's identifier

```bash
curl https://hira.localtechstudio.com/api/v1/connections \
  -H "Authorization: Bearer pk_live_..."
```

The response lists your numbers. Keep the `id` of the one you want to use (it starts with `con_`).

## 5. Send a message

```bash title="curl"
curl -X POST https://hira.localtechstudio.com/api/v1/messages \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"connectionId":"con_...","to":"+237600000000","text":"Hello"}'
```
```js title="Node.js"
const res = await fetch('https://hira.localtechstudio.com/api/v1/messages', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer ' + process.env.WA_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ connectionId: 'con_...', to: '+237600000000', text: 'Hello' }),
});
console.log(await res.json());
```
```php title="PHP"
$ch = curl_init('https://hira.localtechstudio.com/api/v1/messages');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer '.getenv('WA_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode(['connectionId' => 'con_...', 'to' => '+237600000000', 'text' => 'Hello']),
]);
echo curl_exec($ch);
```
```python title="Python"
import os, requests

r = requests.post(
    "https://hira.localtechstudio.com/api/v1/messages",
    headers={"Authorization": "Bearer " + os.environ["WA_API_KEY"]},
    json={"connectionId": "con_...", "to": "+237600000000", "text": "Hello"},
)
print(r.json())
```

The response contains the message `id` and its `status` (`accepted`). The status then evolves: see [Send messages](/en/docs/messages).

> **Good to know**

> WhatsApp only accepts a free-form message within 24 hours of the recipient's last message. To write first, use an approved [template](/en/docs/templates). For your tests, message your own number from WhatsApp first.

## Next

- [Receive replies](/en/docs/guides/receive-webhooks) | Set up a safe webhook.
- [Templates](/en/docs/templates) | Write to your customers first.
- [Launch your first campaign](/en/docs/guides/first-campaign) | A controlled bulk send.
