post addMessage
https://{ourserver.com}/api/resellers/addMessage
IMPORTANT NOTE! 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.
Servers
https://{ourserver.com}
Parameters
Content-Type
header
- stringExample:
"application/json; charset=utf-8"
Enum:application/json; charset=utf-8
Request Body
- Schema
- Examples
- objectExample:
{"date":"1658209069","number":"+234112233445","from":"Instagram","message":"Your OTP is 785094","test":"test1"}
Properties:date
stringRequiredDate and time when SMS was received (in any format, for example in UNIX timestamp)Example:"1658209069"
number
stringRequiredPhone number in international format or number's ID (see sendNumbersOnline server response)
Example:"+234112233445"
from
stringRequiredName or a phone number of a senderExample:"Instagram"
message
stringRequiredMessage textExample:"Your OTP is 785094"
test
stringTesting 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.Example:"test1"
Enum:test1
test2
Responses
200
- Schema
- Examples
- objectExample:
{"response":1}
Properties:response
mixed1, if request was successful, otherwise error message will come upExample:1
One Of:- stringExample:
"string"
- integerExample:
0
400
- Schema
- Examples
- stringExample:
"string"
404
- Schema
- Examples
- stringExample:
"string"