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

# Authentication

> Authenticate with WhatsAble APIs using API keys, Bearer tokens, and request headers.

# Authentication

All WhatsAble APIs require authentication using API keys. This guide explains how to authenticate your requests.

## API Keys

Each API solution uses a different authentication method:

### WhatsAble API

Uses an API key in the `X-API-Key` header:

```bash theme={null}
curl -X POST https://api.whatsable.app/v1/messages \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "+1234567890", "message": "Hello!"}'
```

### Notifyer System

Uses a Bearer token in the Authorization header:

```bash theme={null}
curl -X POST https://api.insightssystem.com/api:hFrjh8a1/send_template_message_by_api \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"template": "template_id", "variables": {}, "phone_number": "+1234567890"}'
```

## Getting Your API Keys

1. Log in to your WhatsAble dashboard
2. Navigate to the API section
3. Generate a new API key or token
4. Store it securely - it won't be shown again!

## Security Best Practices

* Never share your API keys
* Use environment variables to store keys
* Rotate keys periodically
* Use HTTPS for all API requests
* Implement proper error handling
