REST API

This page lists the various REST APIs available all for components of the kdb Insights Database. For more specific examples, refer to the query documentation for each of the APIs.

How to call the Service Gateway REST API

The REST API can be invoked using tools such as curl.

In kdb Insights Enterprise, before calling an API, you must obtain an access token. To do this, refer to the instructions in the KXI CLI. The token then must be passed in using the Authorization header:

curl -H "Authorization: Bearer $INSIGHTS_TOKEN"

REST API URL conventions

curl -L "https://${INSIGHTS_HOSTNAME}/servicegateway/api/v1/database/myDatabase/status" \
 -H "Authorization: Bearer $INSIGHTS_TOKEN"
curl -L "https://localhost:8080/database/myDatabase/status"

OpenAPI schema

APIs

Reference