POST /api/resellers/addNumbers
POST
https://{ourserver.com}/api/resellers/addNumbersAdd 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
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here Example: Bearer apikey |
Request Body
Content-Type:
application/jsonBodyobject
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:
01Example:
0operatorinteger
MCC + MNC operator code (first 5 digits of IMSI)
Example:
24012date_startinteger
Date and time of placement (UNIX timestamp)
Example:
1658209063Responses
200
Onlinesim server response
400
Bad Request
Code Samples
No code samples available