ChatMaxima Docs

API Reference

ChatMaxima REST API documentation

Authentication

All API requests require authentication using an API key:

curl -X GET "https://api.chatmaxima.com/v1/contacts" \
  -H "Authorization: Bearer YOUR_API_KEY"

Base URL

https://api.chatmaxima.com/v1

Endpoints

Contacts

List Contacts

GET /contacts

Parameters:

NameTypeDescription
pageintegerPage number
limitintegerItems per page (max 100)
searchstringSearch by name or phone

Response:

{
  "data": [
    {
      "id": "contact_123",
      "name": "John Doe",
      "phone": "+1234567890",
      "email": "john@example.com"
    }
  ],
  "meta": {
    "total": 100,
    "page": 1,
    "limit": 20
  }
}

Messages

Send Message

POST /messages

Body:

{
  "contact_id": "contact_123",
  "channel": "whatsapp",
  "type": "text",
  "content": {
    "text": "Hello from API\!"
  }
}

Rate Limits

  • Standard: 100 requests/minute
  • Pro: 500 requests/minute
  • Enterprise: Custom limits

Error Codes

CodeDescription
400Bad Request
401Unauthorized
404Not Found
429Rate Limited
500Server Error