AnalyticsDirectories

Folders of the space, flat. The client builds the tree from the parent links; nesting is shallow and one round trip beats walking levels.

GET
/Analytics/directories
AuthorizationBearer <token>

JWT Authorization header using Bearer scheme

In: header

Query Parameters

kind?string

Limit to folders of one kind. Omit for all.

Value in"Metrics" | "Agents"

Response Body

application/json

curl -X GET "https://test.api.speaknode.com/api/Analytics/directories"
{
  "directories": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
      "name": "string",
      "kind": "Metrics",
      "sort_index": 0,
      "is_default": true,
      "is_system": true,
      "metric_count": 0
    }
  ]
}