Skip to main content Skip to navigation
https://api.sendsmsnokyc.com·ssmpp://smpp.sendsmsnokyc.com:2775·42ms p50 ACK

SMSRoute Developer Reference & SMPP Gateway

Integrate carrier-grade SMS delivery, webhook delivery receipts, live route probing, and HLR lookups. Zero KYC verification, instant Bearer token issuance, and crypto settlement from $0.004/SMS.

Getting Started

Gateway Overview

Welcome to the SMS Route API developer center. Our platform provides high-throughput programmatic text delivery routes to over 200 countries worldwide. Use this single-page guide to connect, dispatch requests, and hook up status callbacks.

REST API vs. SMPP Protocol Bind

Choose the protocol that fits your performance scope. The REST API is standard for alerts and OTP verification flows, while direct SMPP binds are built for high TPS gateway routing.

REST vs SMPP Protocol

Gateway Quickstart Flow

1Authenticate Setup

Get API security keys from the dashboard security settings.

2Dispatch Request

Trigger SMS endpoints with Bearer authentication blocks.

3Handle Webhook DLR

Capture delivery reports via dynamic callback registers.

Credentials

API Authentication

Authentication requires OAuth Authorization Bearer tokens in headers. Requests must use HTTPS transport security.

Security Recommendations
  • Store security keys in process environment variables.
  • Do not execute sandbox client calls directly from browsers to prevent key exposure.
  • Rotate keys at regular intervals using the gateway scheduler.
Protocols

SMPP Gateway Connection

For high-volume text automation, connect directly using SMPP v3.4 over TLS on smpp.sendsmsnokyc.com port 2775. The gateway is TLS-only: the socket must complete a TLS handshake before the first PDU is read, so the URL scheme is ssmpp:// rather than smpp://.

SMPP Host & Port Specs

Host: smpp.sendsmsnokyc.com

Anycast hostname, not a fixed IP. Resolve it per session; do not pin the A record.

Port: 2775

TLS only. This port never accepts plaintext SMPP, so there is no fallback port to try.

Scheme: ssmpp://

SMPP inside a TLS tunnel. ssmpp is the scheme, not a hostname — the host stays smpp.sendsmsnokyc.com. smpp:// opens a raw socket and the bind ends in ECONNRESET.

TLS SNI: smpp.sendsmsnokyc.com

servername (Node) / server_hostname (Python). The listener routes on it; omitting it fails the handshake.

Protocol: SMPP v3.4 over TLS

interface_version 0x34. bind_transceiver is the recommended bind.

Credentials: your system_id + password

Shown in the dashboard under SMPP Settings. Read them from the environment — never from source.

Connect string: ssmpp://smpp.sendsmsnokyc.com:2775 — one host, one port, one transport. There is no alternate plaintext port to fall back to.

Important: Node.js SMPP Client TLS Event Requirement

When connecting over TLS in Node.js (via the smpp library), you must wait for the secureConnect event before sending your bind_transceiver request:

session.on('secureConnect', () => { session.bind_transceiver(...) });

Listening to the raw connect event fires before the TLS cryptographic handshake is established. Transmitting bind packets on raw connect causes the proxy to drop the connection immediately with ECONNRESET.

SMPP Bind Specifications

Session Bind Types

bind_transceiver is the recommended bind: sends and delivery receipts share one socket, so you need half the connections of a transmitter/receiver pair. Separate bind_transmitter and bind_receiver binds are also accepted.

Credentials

The system_id and password are the SMPP credentials issued for your account and are listed in the dashboard under SMPP Settings. They are not rendered anywhere in these samples — export them as SMPP_SYSTEM_ID and SMPP_PASSWORD and read them at runtime. Rotating a password in the dashboard invalidates the old one on the next bind.

TLS SNI is mandatory

Send the hostname during the handshake — servername in Node.js, server_hostname in Python. The listener routes on SNI, and smpplib does not set it for you, so its built-in connect(ssl=True) fails; wrap the socket yourself as the Python sample does.

Delivery receipts

Set registered_delivery to 1 and answer every deliver_sm with a deliver_sm_resp. Receipts are retried while unacknowledged, and a session that keeps ignoring them is unbound.

POST
/sms/send
1000 requests/minute

Send SMS

Send a single SMS message to any mobile number worldwide.

Request Query / Body Fields

Parameter Type Required Description
to
string
Required

Recipient phone number in E.164 format

Must be valid E.164 format
message
string
Required

SMS message content

Max 1600 characters
callback_url
string
Optional

Webhook URL for delivery reports

scheduled_at
string
Optional

Schedule message for future delivery (ISO 8601)

sender_id
string
Optional

Sender ID (alphanumeric)

Max 11 characters for alphanumeric
marker
string
Optional

Marker for sending via a specific route

Sample Code
cURL
curl -X POST "https://api.sendsmsnokyc.com/sms/send" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "+1234567890",
  "message": "Hello from SMS Route!",
  "callback_url": "https://yourapp.com/webhook",
  "scheduled_at": "2024-01-15T10:30:00Z",
  "sender_id": "vortex",
  "marker": "1"
}'

HTTP Status Payloads

200
SMS sent successfully
200 Response Body
{
  "status": "success",
  "messageId": "sms-12345-abcde",
  "cost": 0.05,
  "balance": 123.45
}
POST
/sms/send/bulk
100 requests/minute

Send Bulk SMS

Send SMS messages to multiple recipients in a single request.

Request Query / Body Fields

Parameter Type Required Description
recipients
array
Required

Array of recipient objects containing 'to' and 'message'

callback_url
string
Optional

Webhook URL for delivery reports

sender_id
string
Optional

Sender ID (alphanumeric)

Max 11 characters for alphanumeric
marker
string
Optional

Marker for sending via a specific route

Sample Code
cURL
curl -X POST "https://api.sendsmsnokyc.com/sms/send/bulk" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "recipients": [
    {
      "to": "+1234567890",
      "message": "Hello John!"
    }
  ],
  "callback_url": "https://yourapp.com/webhook",
  "sender_id": "vortex",
  "marker": "1"
}'

HTTP Status Payloads

200
Bulk SMS request processed
200 Response Body
{
  "status": "success",
  "batchId": "batch-12345-abcde",
  "totalMessages": 100,
  "estimatedCost": 5.00
}
GET
/sms/single/{messageId}/status
5000 requests/minute

Get Message Status

Retrieve the delivery status of a specific message.

Request Query / Body Fields

Parameter Type Required Description
messageId
string
Required

Unique message identifier

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/sms/single/sms-12345-abcde/status"

HTTP Status Payloads

200
Message status retrieved successfully
200 Response Body
{
  "messageId": "sms-12345-abcde",
  "status": "delivered",
  "deliveredAt": "2024-01-15T10:32:15Z",
  "cost": 0.05
}
GET
/account/balance
1000 requests/minute

Get Account Balance

Retrieve current account balance and usage statistics.

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/account/balance"

HTTP Status Payloads

200
Balance retrieved successfully
200 Response Body
{
  "status": "success",
  "balance": 123.45,
  "currency": "USD",
  "messagesRemaining": 2469
}
GET
/prices
100 requests/minute

Get Pricing Information

Retrieve SMS pricing for all supported countries and operators.

Request Query / Body Fields

Parameter Type Required Description
country
string
Optional

Filter by country code (ISO 3166-1 alpha-2)

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/prices?country=US"

HTTP Status Payloads

200
Pricing information retrieved
200 Response Body
{
  "countries": [
    {
      "code": "US",
      "name": "United States",
      "price": 0.05,
      "currency": "USD"
    }
  ]
}
POST
/hlr/get/lookup
1000 requests/minute

HLR Number Lookup

Perform HLR (Home Location Register) lookup to validate phone numbers.

Request Query / Body Fields

Parameter Type Required Description
phone
string
Required

Phone number to validate (E.164 format)

Sample Code
cURL
curl -X POST "https://api.sendsmsnokyc.com/hlr/get/lookup" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone": "+1234567890"
}'

HTTP Status Payloads

200
HLR lookup completed
200 Response Body
{
  "phone": "+1234567890",
  "valid": true,
  "carrier": "Verizon Wireless",
  "country": "US",
  "type": "mobile"
}
GET
/test/countries
120 requests/minute

Get Test Destination Countries

Retrieve list of available destination countries and mobile carriers for live route probing.

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/test/countries"

HTTP Status Payloads

200
Countries and carriers retrieved successfully
200 Response Body
{
  "ok": true,
  "data": [
    {
      "country_id": "GB",
      "country_name": "United Kingdom",
      "carriers": [
        { "breakout_id": "gb_vodafone", "breakout_name": "Vodafone UK" },
        { "breakout_id": "gb_ee", "breakout_name": "EE UK" }
      ]
    }
  ]
}
GET
/test/estimate-cost
120 requests/minute

Estimate Live Test Cost

Calculate cost breakdown, carrier counts, encoding parts, and per-carrier fee (€0.35) prior to running a test.

Request Query / Body Fields

Parameter Type Required Description
country_code
string
Required

Target ISO country code (e.g. GB, US)

message
string
Required

Test SMS message content

selected_carrier_ids
string
Optional

Comma-separated breakout carrier IDs to target

selected_route_markers
string
Optional

Comma-separated gateway route markers (e.g. 1,2)

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/test/estimate-cost?country_code=GB&message=Live+route+probe+test&selected_carrier_ids=gb_vodafone%2Cgb_ee&selected_route_markers=1%2C2%2C4"

HTTP Status Payloads

200
Cost estimate generated
200 Response Body
{
  "ok": true,
  "data": {
    "country_code": "GB",
    "sms_parts": 1,
    "encoding": "GSM-7",
    "carriers_to_test": 2,
    "vendors_with_price": 4,
    "test_fee": 0.35,
    "total_sms_cost": 0.32,
    "total": 0.67
  }
}
POST
/test/run
60 requests/minute

Run Live Route Test

Trigger a live multi-carrier SMS probe batch to evaluate latency, DLR receipt, sender ID preservation, and content integrity.

Request Query / Body Fields

Parameter Type Required Description
country_code
string
Required

Target ISO country code

message
string
Required

Test SMS message payload

sender_id
string
Required

Sender ID to test preservation

selected_carrier_ids
array
Optional

Array of breakout carrier IDs to test

selected_route_markers
array
Optional

Array of gateway route markers to evaluate

Sample Code
cURL
curl -X POST "https://api.sendsmsnokyc.com/test/run" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "country_code": "GB",
  "message": "Route verification probe",
  "sender_id": "vortex",
  "selected_carrier_ids": [
    "gb_vodafone"
  ],
  "selected_route_markers": [
    "1",
    "2",
    "4"
  ]
}'

HTTP Status Payloads

200
Test batch initiated successfully
200 Response Body
{
  "ok": true,
  "data": {
    "batch_id": "test_abc123xyz789",
    "country_code": "GB",
    "carriers_tested": 2,
    "cost": 0.67,
    "test_fee": 0.35,
    "initiated_count": 8
  }
}
GET
/test/status
120 requests/minute

Get Live Test Status

Poll active test batch execution progress, pending state, and completion flag.

Request Query / Body Fields

Parameter Type Required Description
batch_id
string
Required

Batch ID returned from /test/run

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/test/status?batch_id=test_abc123xyz789"

HTTP Status Payloads

200
Status polled successfully
200 Response Body
{
  "ok": true,
  "data": {
    "batch_id": "test_abc123xyz789",
    "status": "complete",
    "total_tests": 8,
    "elapsed_seconds": 12,
    "is_complete": true,
    "status_counts": { "pending": 0, "success": 8, "partial": 0, "failed": 0 }
  }
}
GET
/test/results
120 requests/minute

Get Live Test Results & Recommendation

Retrieve comprehensive probe test telemetry, DLR delivery latency, content integrity flags, and recommended optimal route.

Request Query / Body Fields

Parameter Type Required Description
batch_id
string
Required

Batch ID of completed test run

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/test/results?batch_id=test_abc123xyz789"

HTTP Status Payloads

200
Test results and best route recommendation fetched
200 Response Body
{
  "ok": true,
  "data": {
    "batch_id": "test_abc123xyz789",
    "country_code": "GB",
    "recommendation": {
      "carrier_name": "Vodafone UK",
      "gateway_name": "Route 4",
      "score": 100,
      "price_per_sms": 0.04,
      "reason": "Highest score (100) with lowest DLR latency and exact content preservation."
    },
    "summary": { "total": 8, "successful": 8, "failed": 0, "pending": 0 }
  }
}
POST
/test/apply-route
60 requests/minute

Apply Recommended Route

Automatically configure the highest-scoring test route as the primary gateway route for destination SMS traffic.

Request Query / Body Fields

Parameter Type Required Description
batch_id
string
Optional

Batch ID containing top recommendation

gateway_id
string
Optional

Gateway ID to set explicitly

country_code
string
Optional

Destination ISO country code

Sample Code
cURL
curl -X POST "https://api.sendsmsnokyc.com/test/apply-route" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "batch_id": "test_abc123xyz789",
  "gateway_id": "gw_4",
  "country_code": "GB"
}'

HTTP Status Payloads

200
Route applied successfully
200 Response Body
{
  "ok": true,
  "data": {
    "country_code": "GB",
    "gateway_name": "Route 4",
    "message": "Route 4 set as primary route for United Kingdom."
  }
}
GET
/test/history
120 requests/minute

Get Live Test History Logs

Fetch paginated logs of past live probe test runs and performance results.

Request Query / Body Fields

Parameter Type Required Description
limit
string
Optional

Number of records to fetch

offset
string
Optional

Pagination offset index

country_code
string
Optional

Filter history by ISO country code

Sample Code
cURL
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.sendsmsnokyc.com/test/history?limit=50&offset=0&country_code=GB"

HTTP Status Payloads

200
Test history logs retrieved
200 Response Body
{
  "ok": true,
  "data": {
    "tests": [
      { "id": "t_123", "country_code": "GB", "gateway_name": "Route 4", "dlr_received": true, "integrity_ok": true }
    ],
    "pagination": { "total": 1, "limit": 50, "offset": 0 }
  }
}
Callbacks

Webhook delivery status

We post callback payloads detailing routing success or carrier errors to registered webhook targets. Validate signatures using HMAC hash verifiers.

DLR JSON Payload structure
JSON
{
  "event": "sms.delivery_status",
  "timestamp": "2024-01-15T10:32:15Z",
  "data": {
    "messageId": "sms-12345-abcde",
    "status": "delivered",
    "to": "+1234567890",
    "deliveredAt": "2024-01-15T10:32:15Z",
    "cost": 0.05,
    "errorCode": null
  }
}
Status Guides

Error Handling Codes

Failures utilize custom HTTP status schemas. We map failure categories in JSON payloads.

INVALID_NUMBER

The phone number format is invalid or not supported

INSUFFICIENT_BALANCE

Account balance is too low to send the message

RATE_LIMIT_EXCEEDED

Too many requests sent in a short period

UNAUTHORIZED

Invalid or missing API key

FORBIDDEN

API key does not have permission for this operation

MESSAGE_TOO_LONG

Message content exceeds maximum length

INVALID_SENDER

Sender ID is invalid or not allowed

COUNTRY_NOT_SUPPORTED

SMS delivery to this country is not supported

NETWORK_ERROR

Temporary network error, please retry

INTERNAL_ERROR

Internal server error, contact support if persists

First-Party Gateway Telemetry & Interactive Developer Sandbox

Explore live SMPP latency probes, dynamic crypto Satoshi converters, global regulatory requirements, and an interactive SMS preview tool.