Skip to content

Senta Integration API: OpenAPI and API Key

Senta has two types of APIs.

  1. Frontend API
  2. Integration API

It is designed for interaction between the client part (frontend) and the backend. It doesn’t have a public documentation.

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.

API key in Settings

  1. Click Settings

  2. Click Regenerate, if necessary. If the API key field 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).

  3. See API key in API key field

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.

Set the address and the key once:

Terminal window
export SENTA=http://localhost:8018/api
export KEY=<api_key>

List all streams, or only one group (group is optional):

Terminal window
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:

Terminal window
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:

Terminal window
curl -H "Authorization: Bearer $KEY" "$SENTA/v1/servers/1/logs"

The full list of endpoints, parameters and responses is in the OpenAPI schema.