> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/tposs/6.19/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/tposs/6.19/api-reference/api.md).

# API overview

TPOSS provides two types of API:

- [TPOSS REST API](https://docs.cennso.com/components/tposs/6.19/api-reference/rest/api.md)
- [JSON-RPC 2.0 API](https://www.jsonrpc.org/specification) to manage [UDR, CCS, and PCS](https://docs.cennso.com/components/tposs/6.19/glossary.md#abbreviations) data

## 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](https://docs.cennso.com/components/tposs/6.19/configuration/api.md) 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
tposs_http_api:
  secret_keys: "clientid-secret, tt-secret"
```

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.
