API Reference v1.0 2 min read

API introduction

Get started with the Wasapia API. Learn about authentication and basic endpoints for your automation.

API introduction

Welcome to the Wasapia API! Our simple REST API allows you to integrate and automate your WhatsApp communication.

Base URL

All API requests should be made to:

https://api.wasapia.com/v1

Authentication

The API uses API keys for authentication. Generate your API key from your dashboard.

Using your API key

Include your API key in the X-WASAPIA-API-KEY header:

curl -H "X-WASAPIA-API-KEY: YOUR_API_KEY" \
     https://api.wasapia.com/v1/contacts

Getting your API key

  1. Log in to your Wasapia dashboard
  2. Go to SettingsAPI Keys
  3. Click Generate new key
  4. Copy and store your key securely

⚠️ Important: Keep your API key secure and never expose it in client-side code.

Request format

  • Use HTTPS for all requests
  • Include Content-Type: application/json header for POST/PUT requests
  • Send data as JSON in the request body

Response format

All responses are JSON with this structure:

Success response

{
  "success": true,
  "message": "Operation completed successfully",
  "data": {}
}

Error response

{
  "success": false,
  "message": "Validation failed",
  "errors": [
    {
      "msg": "Phone number must be in international format (+1234567890)",
      "param": "phoneNumber",
      "location": "body"
    }
  ]
}

Rate limits

The API has rate limits to ensure service quality:

  • 1,500 requests per hour per API key

When you exceed the limit, you'll get a 429 Too Many Requests response.


Ready to start? Get your API key and start integrating.

Share this documentation

On this page