post addMessage
https://{ourserver.com}/api/resellers/addMessageIMPORTANT 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-Typeheader- 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:datestringRequiredDate and time when SMS was received (in any format, for example in UNIX timestamp)Example:"1658209069"numberstringRequiredPhone number in international format or number's ID (see sendNumbersOnline server response)
Example:"+234112233445"fromstringRequiredName or a phone number of a senderExample:"Instagram"messagestringRequiredMessage textExample:"Your OTP is 785094"teststringTesting parameter. Allowed values are
test1,test2. While being assigned,test1value 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,test2value will print out your request's payload in response.Example:"test1"Enum:test1test2
Responses
200
- Schema
- Examples
- objectExample:
{"response":1}Properties:responsemixed1, if request was successful, otherwise error message will come upExample:1One Of:- stringExample:
"string" - integerExample:
0
400
- Schema
- Examples
- stringExample:
"string"
404
- Schema
- Examples
- stringExample:
"string"