Download OpenAPI specification:Download
The Replypath API enables you to send SMS messages and track individual responses. It provides a unique ReplyPath number for each outgoing message, allowing recipients to reply directly. These replies are then correlated with the original message and can be delivered to your system via callbacks.
replypath/v1/sendsms endpoint with the message details, recipient(s), and desired validity period.This functionality is achieved by using a unique phone number as sender for each question. When the user responds to a question, the reply can be mapped to the question using the unique phone number.
The mapping for the unique numbers will be kept for a limited time only, this time is called the Validity Period (VP). The default VP value is three days. Any response coming in after the VP has expired will not be forwarded.
Because Smart Replypath require functionality provided by Extended Virtual Numbers, it will only work within Sweden which is the only country where the mobile phone networks are configured to allow extension digits to be added to a mobile phone number.
200 OK: Used for successful GET requests and synchronous operations.400 Bad Request: Malformed request syntax, invalid request message framing, or deceptive request routing. Also used for validation failures (e.g., invalid parameters, missing required fields).401 Unauthorized: Authentication failure. Client lacks valid credentials.403 Forbidden: Authenticated client does not have permission to access the requested resource.429 Too Many Requests: Rate limit exceeded.500 Internal Server Error: A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.503 Service Unavailable: The server is currently unable to handle the request due to a temporary overload or maintenance of the server.Basic auth with SMS account username and password.
Authorization: Basic <base64_encoded_username:password>
Content-Type should be application/json.
Content-Type: application/json
429 Too Many Requests errors.Msg field) will be processed to automatically determine if it's GSM-7 or Unicode for sending.The API will normalize the phone number to a standard format, removing any non-digit characters and ensuring a consistent format, however the recommended format is international with a leading + (E.164)
+ or 00, e.g. +46123456789 or 00461234567890, e.g. 0701234567. If national format is used, the API assumes that the number is Swedishvalidity_period (VP) or until a reply is received if one_shot is true. The VP determines how long the ReplyPath number is active.validity_period ends.one_shot is true for a sent message:If the delivery of the reply message to the callback URL fails, the API will attempt to resend the message to the callback URL. The resend attempts will continue regularly until the message is successfully delivered or the message record is deleted (after Validity Period has expired).
127.0.0.1 - - [15/Sep/2016 20:31:45] "GET /reply?Msg=Ja+tack&InResponseTo=2531e755-71d0-4449-bb0c-e5657d13c570
127.0.0.1 - - [15/Sep/2025 20:59:10] "POST /reply HTTP/1.1" 200 -
{
"From": "+46123456789",
"InResponseTo": "21d318ca-6598-4e3a-9212-f6b8ab5e79ae",
"Msg": "Ja tack"
}
{
"code": "VALIDATION_ERROR",
"message": "Field required",
"details": {
"loc": ["body", "To"],
"msg": "Field required",
"type": "missing"
}
}
Simple health check endpoint that verifies the API is operational.
Returns a JSON response with "status": "OK" when the API is functioning correctly. This endpoint can be used by monitoring systems to verify API availability.
Returns: HealthResponse: Status information indicating the API is healthy
{- "status": "OK"
}Send an SMS message using the ReplyPath API
| instantiate | boolean (Instantiate) Default: true |
| To required | string (To) [ 10 .. 17 ] characters Phone number(s) of the recipient(s), comma or semicolon separated |
| Msg required | string (Msg) [ 1 .. 1530 ] characters SMS message content |
| DLR | integer (Dlr) [ 0 .. 1 ] Default: 0 Delivery report flag (0 = no delivery report, 1 = delivery report requested) |
| VP | integer (Vp) [ 0 .. 4320 ] Default: 4320 Validity period in minutes (default: 3 days) |
| OneShot | integer (Oneshot) [ 0 .. 1 ] Default: 0 OneShot flag (0 = normal SMS, 1 = OneShot SMS) |
{- "DLR": 0,
- "Msg": "Your verification code is 123456",
- "OneShot": 0,
- "To": "+46701234567",
- "VP": 4320
}{- "DestinationAddress": "+467312937461276",
- "OriginatorAddress": "+46739876543",
- "TransactionId": "826004b6-e2dd-443f-ac92-39452fd30f66"
}