The root API operation returns information about the current account, user, and API Key (as identified by the set of API Keys provided in the API request).

curl -X GET "https://$HOST/subscriptions/$SUBSCRIPTION_ID/databases/$DATABASE_ID/metrics?metricSpan=1hour" \
    -H "accept: application/json" \
    -H "x-api-key: $ACCOUNT_KEY" \
    -H "x-api-secret-key: $SECRET_KEY"

Here is an example of the API operation response:

  "account": {
    "id": 654321,
    "name": "Redis",
    "createdTimestamp": "2018-12-23T15:15:31Z",
    "updatedTimestamp": "2019-07-04T12:22:04Z",
    "key": {
      "name": "jay-doe-api-key-6",
      "accountId": 654321,
      "accountName": "Redis account for Jay Doe",
      "allowedSourceIps": [
      "createdTimestamp": "2019-06-06T07:41:14Z",
      "owner": {
        "name": "Jay Doe",
        "email": "[email protected]"
      "httpSourceIp": ""

The above example contains:

  • The public source IP of the current user -
  • The API key limitation on allowed source IP ranges - The field allowedSourceIps restricts the current API Key access to requests originating from IP addresses that reside within the allowed IP range of