API Documentation
Integrate bulk messaging seamlessly. Sign up for your key.
Authentication
Authenticate API requests by passing your unique API Key in the HTTP headers.
X-API-KEY: YOUR_API_KEY_HERE
Nexsms PHP SDK
Download our pre-built library for instant integration.
Endpoints
/api.php?action=send
Dispatches a single or bulk email transaction.
{
"to_email": "client@example.com",
"subject": "Invoice #1024",
"body": "<h1>Payment Received</h1>"
}
{
"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.