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

API overview

TPOSS provides two types of API:

Authentication

TPOSS APIs are authenticated based on secret API keys. Before a client is authenticated, it needs an authentication key. Such a key must be configured in the TPOSS API configuration by a TPOSS operator. Each request must contain the AuthKey field and the FeId field to authenticate the API user. Both authentication identifiers are configured at the TPOSS side using the following configuration option:

yaml

The tposs_http_api.secret_keys is a list of the FeId and AuthKey split by a dash and separated by a comma. For example, in clientid-secret, the clientid is FeId and the secret is AuthKey. If the client does not provide them or provides unknown values for TPOSS, TPOSS returns the -33333 Not authenticated error.

After you configure TPOSS with the given API authentication keys, you must share the keys with the client so that it can use these keys for API requests. This procedure is out-of-band and not handled by the authentication API itself. Once an authentication key is obtained, a client can use it for authenticated API requests. All the TPOSS API methods require an authentication key to be passed along with the other parameters.