For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

You are reading Travelping Open Subscriber Server 6.19, an older release. The newest release is 6.20. Read this page in 6.20

Whitelist API

TPOSS Whitelist API allows you to provision, deprovision, and look for IMEI(s) in the TPOSS whitelist database using these RPC methods:

API methods

Imei.Whitelist.Add

This method allows you to add a list of IMEI(s) to the TPOSS whitelist database.

You can pass the following parameters in the request:

Example of the request:

bash

The API returns the total number of IMEIs that arrived in the request and the number of IMEIs successfully added to the whitelist.

Example of the successful response:

json

In the case of an error, the response contains the error object with an error code and message:

json

The following error codes may be returned:

  • -30000 - Required field is missing.
  • -32700 - Can't decode JSON request body.
  • -33333 - Not authenticated.

Imei.Whitelist.Delete

The method allows you to delete IMEI(s) from the TPOSS whitelist database.

You can pass the following parameters in the request:

Example of the request:

text

The API returns the total number of IMEIs that arrived in the request and the number of IMEIs successfully deleted from the whitelist.

Example of the successful response:

json

In the case of an error, the response contains the error object with an error code and message:

json

The following error codes may be returned:

  • -30000 - Required field is missing.
  • -32700 - Can't decode JSON request body.
  • -33333 - Not authenticated.

Imei.Whitelist.Get

This method allows you to fetch IMEI(s) from the TPOSS whitelist database by the given Limit and Offset.

You can pass the following parameters in the request:

Example of the request:

bash

Example of the successful response:

json

In the case of an error, the response contains the error object with an error code and message:

json

The following error codes may be returned:

  • -30000 - Required field is missing.
  • -32700 - Can't decode JSON request body.
  • -33333 - Not authenticated.