https://{ourserver.com}/api/resellers/addMessagePOST /api/resellers/addMessage
Forward received SMS to Onlinesim server
This requests forwards messages that were received by your numbers to our server.
You can filter the messages before sending a request (send only SMS from ordered service) or send all messages, and we will filter them on our side.
You can also block all incoming SMS containing confidential or sensitive information such as SMS with credentials of private account on mobile operator's website and other SMS.
Parameters
header2
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Content-Type* | string |
Enum: application/json; charset=utf-8 |
Request Body
Your server should send this request as soon as number with active operation receives the message (webhook).
application/jsonBodyobject
[0]object
numberoneOfRequired
[1]object
Examples
{
"number": "+234112233445",
"from": "VKcom",
"message": "VKcom 111111",
"date": "1546934787"
}Responses
200Onlinesim server response
Onlinesim server response
application/jsonResponseobject
responseoneOf
Examples
{
"response": 1
}[
{
"response": "ERROR_WRONG_KEY"
}
]400Bad Request
Bad Request
application/jsonResponseoneOf
[0]object
Examples
{
"response": "ERROR_PARAMS",
"message": "ERROR_PARAMS"
}{
"response": "ERROR_MESSAGE",
"message": "ERROR_MESSAGE"
}401Unauthorized. The request is missing or uses an invalid API key. Some endpoints may return a 200 status with an ERROR_WRONG_KEY message instead of 401 — check the response body
Unauthorized. The request is missing or uses an invalid API key. Some endpoints may return a 200 status with an ERROR_WRONG_KEY message instead of 401 — check the response body
text/plain403Forbidden. The request was understood but refused due to insufficient permissions
Forbidden. The request was understood but refused due to insufficient permissions
application/jsonResponseobject
errorobjectRequired
detailsobject[]Required
404Not Found
Not Found
text/htmlExamples
NO_OPERATION