Skip to content

POST /api/resellers/addNumbers

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

Add multiple phone numbers to the existing list

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 allows you to add new numbers the list of existing ones to the Onlinesim server in bulk.

Parameters

NameTypeDescription
Authorization*string

see more here

Example:Bearer apikey

Request Body

Content-Type:application/json
Bodyobject
numbersobject[]
usedstring[]

List of services to mark this number as used. Pass values
from the Service column of the
services table
(e.g. vkcom, tg, google).

Server caches this value for about a week and restores it
when enabling the number. If you need it longer, re-send
the request.

Example:["vkcom","tg"]
rentintegerRequired

Rent mode for this number:

1 - enabled,

0 - disabled

Enum:01
Example:0
operatorinteger

MCC + MNC operator code (first 5 digits of IMSI)

Example:24012
date_startinteger

Date and time of placement (UNIX timestamp)

Example:1658209063

Responses

200

Onlinesim server response

400

Bad Request

Code Samples