Senta Integration API: OpenAPI and API Key
Senta has two types of APIs.
- Frontend API
- Integration API
Frontend API
Section titled “Frontend API”It is designed for interaction between the client part (frontend) and the backend. It doesn’t have a public documentation.
Integration API
Section titled “Integration API”It has an OpenAPI schema that can be found here.
Every Integration API request must be signed with an API key - without it, the server responds with an authorization error. You can get the key in Senta’s web interface.

-
Click
Settings -
Click
Regenerate, if necessary. If theAPI keyfield is already filled in, a key was already created earlier - there’s no need to generate a new one (doing so revokes the old key and breaks any integration still using it). -
See API key in
API keyfield
Base URL and authentication
Section titled “Base URL and authentication”The API is served by the Senta web server: http://<server>:8018/api (8018 is the default port; use your own host and port). Send the API key in either header:
Authorization: Bearer <api_key>api_key: <api_key>
API access requires a valid license. In the API a stream is called a process.
Examples
Section titled “Examples”Set the address and the key once:
export SENTA=http://localhost:8018/apiexport KEY=<api_key>List all streams, or only one group (group is optional):
curl -H "Authorization: Bearer $KEY" "$SENTA/v1/processes"curl -H "Authorization: Bearer $KEY" "$SENTA/v1/processes?group=sports"Get the list with current statuses, then start, stop or restart stream 42:
curl -H "Authorization: Bearer $KEY" "$SENTA/v1/processes/status"curl -X POST -H "Authorization: Bearer $KEY" "$SENTA/v1/processes/42/start"curl -X POST -H "Authorization: Bearer $KEY" "$SENTA/v1/processes/42/stop"curl -X POST -H "Authorization: Bearer $KEY" "$SENTA/v1/processes/42/restart"Read the logs of an additional server (1 is the server ID from /v1/servers). The public API has no endpoint for a single stream’s log: that log is in the web interface, see Stream logs:
curl -H "Authorization: Bearer $KEY" "$SENTA/v1/servers/1/logs"The full list of endpoints, parameters and responses is in the OpenAPI schema.