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

HTTP API server

Note

TPOSS HTTP API is usually accessed through TPOSS API Gateway. For more information about TPOSS API Gateway configuration, see the TPOSS API Gateway chart configuration document.

To serve and handle API requests, TPOSS has a built-in HTTP server. To configure TPOSS HTTP API server, adjust the following options:

yaml

The HTTP server listens for API requests on the host and port specified by the tposs_http_api.host and tposs_http_api.port configuration options. The tposs_http_api.acceptors configuration option represents the number of processes that accept new incoming HTTP client connections to serve API requests.

Each API request has to be authorized at TPOSS for which the tposs_http_api.secret_keys configuration options is used. For more information about this configuration option, read the API overview document.

The time TPOSS takes to handle each incoming request is measured and recorded by the api_requests_rtt metric. This metric is a Prometheus histogramOpens in a new tab for which you can configure buckets using the tposs_http_api.rtt_buckets configuration option. For more information about the API metrics, see the API metrics section.

Note

The value of the tposs_http_api.rtt_buckets configuration option defines the histogram buckets used to record request durations not only for the TPOSS HTTP API, but also for SBI and CDMP.

The tposs_http_api.http2. configuration options are applicable only if SBI is enabled in TPOSS. Using the tposs_http_api.http2.received_frame_rate_limit option, you can configure the maximum number of HTTP2 frames that TPOSS can receive on one connection per second. The tposs_http_api.http2.idle_timeout option specifies how long TPOSS keeps a client connection open when no data is received before closing it.