Skip to content

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

NameTypeDescription
Authorization*string

see more here

Example:Bearer apikey
Content-Type*string

Content type header and encoding scheme

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:1658209069
numberstringRequired

Phone number in international format or number’s ID

(see
sendNumbersOnline
server response)

Example:+234112233445
fromstringRequired

Name or a phone number of a sender

Example:Instagram
messagestringRequired

Message text

Example:Your OTP is 785094
teststring

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:test1test2

Responses

200

Onlinesim server response

400

Bad Request

404

Not Found

Code Samples