Docs / Quick Start

Quick Start

Get up and running in 5 minutes

Quick Start Guide

Get up and running with APIMW in just 5 minutes!

Step 1: Get Your API Credentials

  1. Log in to console.apimw.com
  2. Navigate to API Keys in the sidebar
  3. Click Create New API Key
  4. Copy your API Key and API Secret

⚠️ Important: Store your API Secret securely. It won't be shown again.

Step 2: Generate an Access Token

curl -X POST https://api.apimw.com/v1/auth/token \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "your_api_key",
    "api_secret": "your_api_secret"
  }'

Response:

{
  "success": true,
  "data": {
    "access_token": "eyJhbGciOiJIUzI1NiIs...",
    "token_type": "Bearer",
    "expires_in": 3600
  }
}

Step 3: Make Your First API Call

Use the access token to send a WhatsApp message:

curl -X POST https://api.apimw.com/v1/whatsapp/messages/send \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+1234567890",
    "message": "Hello from APIMW! 🚀"
  }'

Response:

{
  "success": true,
  "data": {
    "message_id": "wamid.abc123...",
    "status": "sent"
  }
}

Step 4: Set Up Webhooks (Optional)

Receive delivery notifications and incoming messages:

curl -X POST https://api.apimw.com/v1/webhooks \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://yourapp.com/webhook",
    "events": ["message.sent", "message.delivered", "message.read"]
  }'

What's Next?