POST /api/resellers/addMessage
Forward received SMS to Onlinesim server
WARNING
URL of Onlinesim server is provided by Onlinesim partner support specialists. Please note, that the URL in the example is just a placeholder.
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
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here Example: Bearer apikey |
Content-Type* | string |
Enum: application/json; charset=utf-8Example:application/json; charset=utf-8 |
Request Body
Your server should send this request as soon as number with active
operation receives the message (webhook).
Content-Type:
application/json▼Bodyobject
datestringRequired
Date and time when SMS was received (in any format, for example in UNIX timestamp)
Example:
1658209069numberstringRequired
Phone number in international format or number’s ID
(see
sendNumbersOnline
server response)
Example:
+234112233445fromstringRequired
Name or a phone number of a sender
Example:
InstagrammessagestringRequired
Message text
Example:
Your OTP is 785094teststring
Testing parameter. Allowed values are test1, test2.
While being assigned, test1 value will allow the request
to be passed, however the data won’t be saved by our server
(the function will not be executed by this request).
While being assigned, test2 value will print out your
request’s payload in response.
Enum:
test1test2Responses
200
Onlinesim server response
400
Bad Request
404
Not Found
Code Samples
No code samples available