Developer API Reference
Integrate SMS-API.cc directly into your backend architecture. Send OTPs, order alerts, and marketing broadcasts with sub-second SS7 prioritization.
1. Authentication
Every REST request must include your Secret API key in the Authorization header:
Authorization: Bearer sk_live_your_secret_key_here
Retrieve your secret API key from the Dashboard API Settings.
2. Send SMS Endpoint
POST https://sms-api.cc/api/v1/sms/send
Request Headers
| Header | Type | Description |
|---|---|---|
| Authorization | String | Bearer sk_live_... |
| Content-Type | String | application/json |
Request Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
| recipient | String | Yes | Destination phone in E.164 format (e.g. +12025550192) |
| message | String | Yes | SMS message text content (UTF-8 or GSM-7) |
| sender_id | String | No | Custom alphanumeric sender ID (max 11 chars). Defaults to SMS-API. |
Example Request (cURL)
curl -X POST "https://sms-api.cc/api/v1/sms/send" \
-H "Authorization: Bearer sk_live_8f0a28f89c09d3b84a9" \
-H "Content-Type: application/json" \
-d '{
"recipient": "+12025550192",
"message": "Your SMS-API verification passcode is 839-201.",
"sender_id": "SMS-API"
}'
Example Response (200 OK)
{
"success": true,
"message_id": "msg_89f02c918b",
"recipient": "+12025550192",
"segments": 1,
"cost": 0.007,
"status": "delivered",
"timestamp": 1728892800
}
3. SMPP v3.4 Gateway Protocol
For high-volume telecom connections, connect your SMSC / gateway client via SMPP:
| Parameter | Value |
|---|---|
| Host | smpp.sms-api.cc |
| Port (Unencrypted) | 2775 |
| Port (TLS / SSL) | 3550 |
| System ID | Your account email address |
| Password | Your API Key or Account Password |
| System Type | SMPP |
| Bind Type | Transceiver (TRX) / Transmitter (TX) |
4. Webhook Callbacks (DLR)
Configure automated HTTP POST callbacks to receive real-time carrier delivery notifications:
{
"event": "message.delivered",
"message_id": "msg_89f02c918b",
"recipient": "+12025550192",
"status": "delivered",
"carrier_code": "AT&T-310",
"delivered_at": "2026-10-14T07:45:00Z"
}
5. Status & Error Codes
| HTTP Code | Status | Meaning |
|---|---|---|
| 200 | OK | Message successfully routed via SS7 carrier signaling. |
| 400 | Bad Request | Missing recipient or empty message body. |
| 401 | Unauthorized | Invalid or revoked API Key. |
| 402 | Payment Required | Insufficient balance. Add funds via NowPayments. |
| 429 | Rate Limited | Throughput quota exceeded. Contact support to raise TPS. |