Skip to content

POST /api/resellers/addMessages

POSThttps://{ourserver.com}/api/resellers/addMessages

Batch 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 request forwards multiple incoming SMS messages to Onlinesim server in a single batch.

We recommend using this method instead of addMessage and sending SMS in batches, for example once every 5 seconds.

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 when new messages are received
and you need to forward multiple SMS at once.

Content-Type:application/json
Bodyobject
messagesobject[]Required

Array of messages.

Responses

200

Onlinesim server response

400

Bad Request

Code Samples