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

# Quickstart

> Make your first Wachat API request.

## 1. Set your token

```bash theme={null}
export WACHAT_API_TOKEN="your_token_here"
```

## 2. Check your account

```bash theme={null}
curl https://crm.wachat.net/api/v1/me \
  -H "Authorization: Bearer $WACHAT_API_TOKEN" \
  -H "Accept: application/json"
```

## 3. Check connected devices

Before sending a message, confirm that your WhatsApp device is connected:

```bash theme={null}
curl https://crm.wachat.net/api/v1/devices \
  -H "Authorization: Bearer $WACHAT_API_TOKEN" \
  -H "Accept: application/json"
```

## 4. Send a message

Use the `device_id` returned by the devices endpoint. The messages endpoint accepts multipart form data:

```bash theme={null}
curl -X POST https://crm.wachat.net/api/v1/messages \
  -H "Authorization: Bearer $WACHAT_API_TOKEN" \
  -F "device_id=YOUR_DEVICE_ID" \
  -F "to=628123456789" \
  -F "type=text" \
  -F "message=Hello from Wachat"
```

<Tip>Use the API Reference playground to inspect the exact request body accepted by each endpoint.</Tip>
