HTTP API
smpp-kafka-producer provides an HTTP/2 REST API for submitting SMS messages, compatible with 5G SMSF requirements.
Endpoints
| Endpoint | Method | Description |
|---|---|---|
|
POST |
Submit single SMS |
|
POST |
Submit batch SMS |
|
GET |
Query message status |
|
GET |
Health check |
|
GET |
Kubernetes liveness |
|
GET |
Kubernetes readiness |
|
GET |
Prometheus metrics |
Submit SMS
Request
POST /api/v1/sms HTTP/2
Content-Type: application/json
{
"source": "+12025551234",
"destination": "+12025555678",
"message": "Hello from HTTP API",
"registeredDelivery": true
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
Source address (sender) |
|
string |
Yes |
Destination address (recipient) |
|
string |
Yes |
Message content |
|
boolean |
No |
Request delivery receipt |
|
string |
No |
Message validity period |
|
integer |
No |
Priority (0-3) |