Developer documentation · v1
Connect your product to BulkBridge.
Use the REST API to send customer notifications and run phone verification flows, or connect an SMPP client for SMS traffic. REST requests and responses use JSON.
01 · Quickstart
Send your first message
Create an API key in Portal → API keys, give it the
sms:send
scope, and keep the full key on your server. It is shown only once. In the
Postman collection, set base_url
to your server and api_key
to the generated key before sending requests.
curl -X POST https://YOUR_DOMAIN/api/v1/sms/send \
-H "Authorization: Bearer bb_sk_your_key" \
-H "Content-Type: application/json" \
-d '{
"to": ["+260970000000"],
"message": "Your package has arrived.",
"sender_id": "MYSHOP"
}'
02 · Authentication
API keys are bearer tokens
Send the key in the
Authorization
header on every request. BulkBridge also accepts X-API-Key.
Available scopes
sms:send
sms:read
otp:send
otp:verify
otp:read
otp:cancel
Key rules
Keys are hashed at rest, can expire, and belong to one account. Disabled accounts and missing scopes are rejected before processing.
03 · SMS
POST/sms/send
Send one recipient or an array of recipients. Use international E.164 numbers where possible.
sender_id
is optional when your account has a default approved sender.
| Field | Type | Required |
|---|---|---|
| to | string or string[] | yes |
| message | string | yes |
| sender_id | string | no |
| scheduled_at | ISO 8601 datetime with timezone | no |
To schedule a one-time send, provide a future scheduled_at,
such as 2027-01-15T10:00:00+02:00 for Zambia.
Omit it to send now. The wallet is charged when queued, and sending begins
at or after the requested time while the service is running.
The response includes the time in UTC, or null for immediate sending.
{
"status": "queued",
"campaign_id": 42,
"recipients": [{"message_id": 901, "phone": "+260970000000", "status": "queued"}]
}
SMS history and status
Use GET /api/v1/sms
to list your messages and GET /api/v1/sms/:message_id
for the ID returned when sending.
Both require sms:read. Other accounts' messages are never included.
History supports limit
(1–100), status, campaign_id
and before_id.
Follow next_before_id
with the same filters until it is null.
Sent means provider acceptance; delivered means confirmed delivery. Delivery confirmation is not yet available on every route, so a message can remain sent after handset delivery. Status checks do not send another SMS.
04 · OTP
Phone verification lifecycle
POST /otp/send
with
{"phone":"+260970000000"}
returns an otp_id
with status queued. Delivery uses a dedicated OTP queue. Codes expire five minutes after creation; poll the status endpoint to confirm submission.
POST /otp/verify
accepts otp_id
and code, or phone
and code.
GET /otp/:otp_id
reads status. POST /otp/cancel
stops an outstanding code.
05 · SMPP
Connect an SMPP client
BulkBridge accepts SMPP 3.4 over verified TLS. Use your account's SMPP credentials, which are separate from REST API keys. Postman can test the REST API, but it cannot open an SMPP bind or submit a message over SMPP.
- Production hostname
- bulkbridgesms.com
- TLS port
- 3550
- Protocol and bind
-
SMPP 3.4 ·
bind_transceiver·interface_version=0x34 - Authentication
-
system_idand password from Portal → SMPP connections
- Sign in as an account admin or developer and open Portal → SMPP connections. Generate a credential and enter the exact public IP that your client will use to reach BulkBridge. If behind NAT or a VPN, enter its egress IP.
- Wait for a platform superadmin to approve that IP. You will receive an email when it is whitelisted. The credential cannot bind before approval. Copy the system ID and password from the portal using the copy buttons; the password is masked until you reveal it.
-
Configure your SMPP client for TLS to
bulkbridgesms.com:3550, verify the server certificate against that hostname, and usebind_transceiverwith your system ID and password. Keep TLS certificate verification enabled.
Test from another computer
From the approved IP, check connectivity with
Test-NetConnection bulkbridgesms.com -Port 3550
in PowerShell or nc -vz bulkbridgesms.com 3550
on macOS/Linux. Check TLS with the command below. A successful TCP or TLS check does not authenticate the SMPP client.
openssl s_client -connect bulkbridgesms.com:3550 -servername bulkbridgesms.com -verify_return_error
Then bind with an SMPP 3.4 client and submit one SMS to a consented number using an approved sender ID and a funded account. Use
260
followed by the nine-digit Zambian number as the destination. Set
service_type
to PROMO, TXN, or OTP
when your sender requires a category. A successful submit_sm_resp
confirms acceptance and returns a message ID; it does not confirm handset delivery. Request delivery receipts or use
query_sm
to track the message.
If the connection times out, check that the approved IP is the one your client actually uses and that TCP 3550 is reachable. If the bind is rejected, check the credential, account status, and whitelist. Contact BulkBridge support for the Node.js SMPP smoke-test script if you need a ready-to-run client example.
06 · Errors
Predictable JSON responses
| HTTP | Meaning |
|---|---|
| 400 | Missing or malformed input |
| 401 | Missing, invalid, or expired API key |
| 402 | Insufficient wallet balance |
| 403 | Account suspended or scope not granted |
| 409 | State conflict |
| 422 | Valid JSON that cannot be processed |
| 429 | Rate or OTP-attempt limit |
{"error":"insufficient_balance"}