OnlineSim HUB api v1 - 2021-10-20

_HUB_ API. You can use it, but the connection and configuration are individual, so you should contact our tech support to get the details of you connection to the API

General description

What is required to work with API:

  1. Make 2 methods and webhook. GET_SERVICES method gives a room for specified number, and after SMS is received checks if the service was paid, and sends SMS on webhook.
  2. Contact us via e-mail or Telegram.

To use this API, you need to send POST or GET request via HTTP protocol on the specified URL.

Additional information

Requirements:

  1. form of JSON request / responsefor`*
  2. coding UTF-8
  3. make sure that user-agent is included in request headers.
  4. all reauests / responses use gzip compression method.

Fileds types:

  1. number int - integer value in range from -2 147 483 648 to 2 147 483 647
  2. number Uint - positive integer value in range from 0 to 2147483647
  3. long number - integer value in range from -9 223 372 036 854 775 808 to 9 223 372 036 854 775 807
  4. Ulong number - positive integer value in range from 0 to 9 223 372 036 854 775,807
  5. number cur - decimal number, containing 2 digits after dot, for example 134.66
  6. boolean - literal, receiving the value true or false
  7. string - string of any length

Common responses

Responses values common for all methods.

json {status: STATUS, …, … }

Attachments

#1 Countries list

see here

#2 Services list

see here

#3 Operators list

see here

#4 Workflow

workflow