API Documentation

Integrate bulk messaging seamlessly. Sign up for your key.

Version
v2.0 Enterprise

Authentication

Authenticate API requests by passing your unique API Key in the HTTP headers.

Header Parameter
X-API-KEY: YOUR_API_KEY_HERE

Nexsms PHP SDK

Download our pre-built library for instant integration.

Download SDK.zip

Endpoints

POST /api.php?action=send

Dispatches a single or bulk email transaction.

JSON Payload
{
  "to_email": "client@example.com",
  "subject": "Invoice #1024",
  "body": "<h1>Payment Received</h1>"
}
JSON Response
{
    "success": true,
    "message": "Queued",
    "credits_remaining": 450
}

Integration FAQs

Rate Limits?

60 requests/min for standard accounts. Unlimited for Enterprise.

HTML Support?

Yes. Full HTML bodies are supported. They are automatically wrapped in your branding template.

Zero Credits?

API returns `402 Payment Required`. Top up via dashboard.