post addMessage

https://{ourserver.com}/api/resellers/addMessage
v2

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

Authorization
Required

see more here

In: header
Schema:
  • string
    Example: "Bearer apiKey"
Content-Type
Required
`Content type` header and encoding scheme
In: header
Schema:
  • string
    Example: "application/json; charset=utf-8"
    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).
Content Type:
application/json
  • Schema
  • Examples
  • object
    Example: {"date":"1658209069","number":"+234112233445","from":"Instagram","message":"Your OTP is 785094","test":"test1"}
    Properties:
    • date
      string
      Required
      Date and time when SMS was received (in any format, for example in UNIX timestamp)
      Example: "1658209069"
    • number
      string
      Required

      Phone number in international format or number's ID (see sendNumbersOnline server response)

      Example: "+234112233445"
    • from
      string
      Required
      Name or a phone number of a sender
      Example: "Instagram"
    • message
      string
      Required
      Message text
      Example: "Your OTP is 785094"
    • test
      string

      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.

      Example: "test1"
      Enum: test1 test2

Responses

200

Onlinesim server response
Content Type:
application/json
  • Schema
  • Examples
  • object
    Example: {"response":1}
    Properties:
    • response
      mixed
      1, if request was successful, otherwise error message will come up
      Example: 1
      One Of:
      • string
        Example: "string"
      • integer
        Example: 0

400

Bad Request
Content Type:
text/html
  • Schema
  • Examples
  • string
    Example: "string"

404

Not Found
Content Type:
text/html
  • Schema
  • Examples
  • string
    Example: "string"