Security Schemes

APIkey

General Information

Requests are authenticated with API key - a secret personal key assigned by our server to identify calls to Reseller API from users. API key should be passed in request's body (v1 Reseller API) or request's header (v2 Reseller API). Unauthenticated calls will result in 401 Unauthorized error.


How to get an API key:

  1. Log in to personal account, go to the 'User Profile' and click on 'API' tab.

  2. Copy the key from the 'API Key' field.


How to use it:

  1. All Reseller API requests must contain an API key.

  2. Based on version, all API calls must contain the key:

  • if you are using v1 Reseller API - it has to be in the 'key' field inside the body of each request,
  {
    "action": "GET_SERVICES",
    "key": "apikey"
  }
  • if you are using v2 Reseller API - it has to be in the header of each request using Authorization: Bearer schema.
    Authorization: Bearer {{key}}
    User-Agent: PostmanRuntime/7.29.2
    Accept: */\*
    Cache-Control: no-cache
    Postman-Token: 948bc880-8d25-4298-994f-fe6e22ada339
    Host: onlinesim.io
    Accept-Encoding: gzip, deflate, br
    Connection: keep-alive
    Cookie: xxxx

API key can also be specified as a query parameter (apikey) for both API versions.

      https://onlinesim.io/api/getNumbersStats.php?apikey={{api_key}}
apiKey
In: header
Header name: Bearer apiKey