This article covers how to get started with the Label APIs.
Notes:
The API Tester in the v4 Portal enables you to securely call the methods of these APIs using your organization's Kentik data.
For information about labels, start with About Labels.
Protobuf and OpenAPI specifications for Kentik’s v6 APIs are available in our api-schema-public repository.
Label Usage
The topics below provide important background information for the use of these APIs.
Overview
The Label API enables programmatic creation and management of labels, which are tags that can be applied to objects such as devices, synthetic tests, and ksynth agents in order to create logical groups. While this API is used to manage labels, the application of a label to a given object is done with the API corresponding to the type of that object (see Applying Labels via API).
Both gRPC RPCs and REST endpoints are provided.
Applying Labels via API
The Label API does not handle the application of labels to configuration objects. Instead, a label is applied to an object using the management API for that object. The table below lists the APIs for the types of objects to which labels may be applied.
Object type | API for attaching labels |
---|---|
Device | |
Synthetic monitoring test | |
Synthetic monitoring agent | |
BGP monitor |
Label RPCs
The tables below provide a quick reference to key information about each Remote Procedure Call in these APIs. Use the links in the tables to see schemas for the request and/or response body (if any).
Note: To test methods using your own Kentik data, use the portal's API Tester.
ListLabels
API: LabelService
REST Method | REST Endpoint | Description | ||
---|---|---|---|---|
GET | /label/v202210 | Returns list of all labels configured in the account. | ||
|
CreateLabel
API: LabelService
REST Method | REST Endpoint | Description | ||
---|---|---|---|---|
POST | /label/v202210 | Creates a new label based on data in the request. | ||
|
DeleteLabel
API: LabelService
REST Method | REST Endpoint | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
DELETE | /label/v202210 | Deletes label with specified with id. | ||||||||||
|
UpdateLabel
API: LabelService
REST Method | REST Endpoint | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
POST | /label/v202210 | Updates configuration of a label. | ||||||||||
|
Label Schemas
This API uses the following schemas.
Label
Schema: labelv202210Label | Type: object | ||||||||||||||
Properties (* = required)
|
protobufAny
Schema: protobufAny | Type: object | ||||||
Properties:
|
rpcStatus
Schema: rpcStatus | Type: object | ||||||||
Properties:
|
CreateLabelRequest
Schema: v202210CreateLabelRequest | Type: object | ||||
Properties:
|
CreateLabelResponse
Schema: v202210CreateLabelResponse | Type: object | ||||
Properties:
|
DeleteLabelResponse
Schema: v202210DeleteLabelResponse | Type: object |
Properties: None. |
ListLabelsResponse
Schema: v202210ListLabelsResponse | Type: object | ||||||
Properties:
|
UpdateLabelRequest
Schema: v202210UpdateLabelRequest | Type: object | ||||
Properties:
|
UpdateLabelResponse
Schema: v202210UpdateLabelResponse | Type: object | ||||
Properties:
|
© 2014-25 Kentik