GET /categories API documentation
Get ID and name of all categories (Main categories).
GET https://demo.trafficmanager.com/api/v1/categories
Authentication:
The request must be authenticated with the following HTTP headers:x-api-key: Your API key, found in the Security pagex-user-id: Your User ID, found in the Security page
If the HTTP headers are not passed, but you are logged in to the TrafficManager panel, the current user is used instead (so you can easily preview or download the data using your browser)
GET Parameters:
- Required:
- None
- Optional:
- None
Returned values:
The response is a JSON array. Each item includes:
id: category IDname: category name
Request example
GET https://demo.trafficmanager.com/api/v1/categories
Response example
[
{
"id": 120,
"name": "Example Category A"
},
{
"id": 119,
"name": "Example Category B"
}
]
Status codes:
200: Success401: Unauthorized (invalid or missing authentication)
English
العربية
Deutsch
Español
Suomi
Italiano
Português
Română
Русский
Svenska
中文