Environments
The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Contains a list of Environments.
Error object.
GET /api/v1/environments HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"tier": "development",
"status": {
"agent_connected": true,
"agent": {
"updated_at": "2026-01-01T00:00:00.000Z",
"connected_at": "2026-01-01T00:00:00.000Z",
"roundtrip_duration": 1,
"agent": {
"hostname": "text",
"version": "text",
"protocol_version": "text",
"capabilities": {
"metrics": true,
"k2k": true,
"publish": true
}
},
"metrics": {
"kafka": {
"version": "text",
"num_brokers": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"data": {
"num_topics": 1,
"num_partitions": 1,
"num_schemas": 1,
"num_policies": 1,
"topic_data_total_bytes": 1,
"data_in_bytes_per_sec": 1,
"data_out_bytes_per_sec": 1,
"data_in_messages_per_sec": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"apps": {
"num_consumers": 1,
"num_other_apps": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"connect": {
"num_clusters": 1,
"num_connectors": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"other": {
"num_issues": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
}
}
}
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
]
}The bearer token can be obtained by creating a ServiceAccount.
Sets the name of the new environment. It must be a valid HQ resource name: it can only contain lowercase alphanumeric characters or hyphens; hyphens cannot appear at the end or start; the length is 63 characters at most.
Sets the display name of the new environment. If not provided, the value of "name" will be used.
Enumerates Tiers.
Happy response.
Represents a Lenses Instance, somewhere.
Contains the resource identifier for use in access control policies.
Enumerates Tiers.
Error object.
POST /api/v1/environments HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"name": "text",
"display_name": "text",
"tier": "development",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"tier": "development",
"status": {
"agent_connected": true,
"agent": {
"updated_at": "2026-01-01T00:00:00.000Z",
"connected_at": "2026-01-01T00:00:00.000Z",
"roundtrip_duration": 1,
"agent": {
"hostname": "text",
"version": "text",
"protocol_version": "text",
"capabilities": {
"metrics": true,
"k2k": true,
"publish": true
}
},
"metrics": {
"kafka": {
"version": "text",
"num_brokers": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"data": {
"num_topics": 1,
"num_partitions": 1,
"num_schemas": 1,
"num_policies": 1,
"topic_data_total_bytes": 1,
"data_in_bytes_per_sec": 1,
"data_out_bytes_per_sec": 1,
"data_in_messages_per_sec": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"apps": {
"num_consumers": 1,
"num_other_apps": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"connect": {
"num_clusters": 1,
"num_connectors": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"other": {
"num_issues": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
}
}
}
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"agent_key": "text"
}The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Represents a Lenses Instance, somewhere.
Contains the resource identifier for use in access control policies.
Enumerates Tiers.
Error object.
GET /api/v1/environments/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"tier": "development",
"status": {
"agent_connected": true,
"agent": {
"updated_at": "2026-01-01T00:00:00.000Z",
"connected_at": "2026-01-01T00:00:00.000Z",
"roundtrip_duration": 1,
"agent": {
"hostname": "text",
"version": "text",
"protocol_version": "text",
"capabilities": {
"metrics": true,
"k2k": true,
"publish": true
}
},
"metrics": {
"kafka": {
"version": "text",
"num_brokers": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"data": {
"num_topics": 1,
"num_partitions": 1,
"num_schemas": 1,
"num_policies": 1,
"topic_data_total_bytes": 1,
"data_in_bytes_per_sec": 1,
"data_out_bytes_per_sec": 1,
"data_in_messages_per_sec": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"apps": {
"num_consumers": 1,
"num_other_apps": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"connect": {
"num_clusters": 1,
"num_connectors": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"other": {
"num_issues": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
}
}
}
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
Successful deletion.
No content
Error object.
DELETE /api/v1/environments/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The bearer token can be obtained by creating a ServiceAccount.
Enumerates Tiers.
Updates the display name of the environment.
Happy response.
Represents a Lenses Instance, somewhere.
Contains the resource identifier for use in access control policies.
Enumerates Tiers.
Error object.
PATCH /api/v1/environments/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"tier": "development",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"display_name": "text"
}{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"tier": "development",
"status": {
"agent_connected": true,
"agent": {
"updated_at": "2026-01-01T00:00:00.000Z",
"connected_at": "2026-01-01T00:00:00.000Z",
"roundtrip_duration": 1,
"agent": {
"hostname": "text",
"version": "text",
"protocol_version": "text",
"capabilities": {
"metrics": true,
"k2k": true,
"publish": true
}
},
"metrics": {
"kafka": {
"version": "text",
"num_brokers": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"data": {
"num_topics": 1,
"num_partitions": 1,
"num_schemas": 1,
"num_policies": 1,
"topic_data_total_bytes": 1,
"data_in_bytes_per_sec": 1,
"data_out_bytes_per_sec": 1,
"data_in_messages_per_sec": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"apps": {
"num_consumers": 1,
"num_other_apps": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"connect": {
"num_clusters": 1,
"num_connectors": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"other": {
"num_issues": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
}
}
}
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Contains a list of KafkaConnections.
Error object.
GET /api/v1/environments/{env_name}/kafka-connections HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"name": "text",
"display_name": "text",
"lrn": "text",
"description": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"override_broker_addresses": [
"text"
],
"auth": {}
}
]
}The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Defines Kafka connection settings for applications.
Uniquely identifies a connection within an environment.
Contains the resource identifier.
Has the description of the object.
Optionally overrides the broker addresses. If not set, those of the agent are used.
Contains auth settings specific to a particular auth type.
Configures Kafka Plaintext "authentication".
Error object.
GET /api/v1/environments/{env_name}/kafka-connections/{conn_name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"display_name": "text",
"lrn": "text",
"description": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"override_broker_addresses": [
"text"
],
"auth": {}
}The bearer token can be obtained by creating a ServiceAccount.
Creates/updates a Kafka connection.
Sets the display name of the new KafkaConnection. If not provided, the value of "name" will be used.
Has the optional description of the object.
Optionally overrides the broker addresses. If not set, those of the agent are used.
Contains auth settings specific to a particular auth type.
Configures Kafka Plaintext "authentication".
Happy response.
Defines Kafka connection settings for applications.
Uniquely identifies a connection within an environment.
Contains the resource identifier.
Has the description of the object.
Optionally overrides the broker addresses. If not set, those of the agent are used.
Contains auth settings specific to a particular auth type.
Configures Kafka Plaintext "authentication".
Error object.
PUT /api/v1/environments/{env_name}/kafka-connections/{conn_name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"display_name": "text",
"description": "text",
"override_broker_addresses": [
"text"
],
"auth": {}
}{
"name": "text",
"display_name": "text",
"lrn": "text",
"description": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"override_broker_addresses": [
"text"
],
"auth": {}
}The bearer token can be obtained by creating a ServiceAccount.
Succesful deletion.
No content
Error object.
DELETE /api/v1/environments/{env_name}/kafka-connections/{conn_name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
The bearer token can be obtained by creating a ServiceAccount.
Happy response.
Represents a Lenses Instance, somewhere.
Contains the resource identifier for use in access control policies.
Enumerates Tiers.
Error object.
POST /api/v1/environments/{name}/renew-key HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"display_name": "text",
"lrn": "text",
"id": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"tier": "development",
"status": {
"agent_connected": true,
"agent": {
"updated_at": "2026-01-01T00:00:00.000Z",
"connected_at": "2026-01-01T00:00:00.000Z",
"roundtrip_duration": 1,
"agent": {
"hostname": "text",
"version": "text",
"protocol_version": "text",
"capabilities": {
"metrics": true,
"k2k": true,
"publish": true
}
},
"metrics": {
"kafka": {
"version": "text",
"num_brokers": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"data": {
"num_topics": 1,
"num_partitions": 1,
"num_schemas": 1,
"num_policies": 1,
"topic_data_total_bytes": 1,
"data_in_bytes_per_sec": 1,
"data_out_bytes_per_sec": 1,
"data_in_messages_per_sec": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"apps": {
"num_consumers": 1,
"num_other_apps": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"connect": {
"num_clusters": 1,
"num_connectors": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
},
"other": {
"num_issues": 1,
"updated_at": "2026-01-01T00:00:00.000Z"
}
}
}
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"agent_key": "text"
}The bearer token can be obtained by creating a ServiceAccount.
Error object.
Implements the RFC7807 "Problem Details", see https://www.rfc-editor.org/rfc/rfc7807.
Enumerates possible error types.
Describes the problem in a human readable fashion.
Is a copy of the http status code.
Contains in case of an "unauthorised" type of error, the url of the SSO provider, if any.
Is set to the id of this request. Can be used to correlate backend logs.
GET /api/v1/environments/live/sse HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Error object.
{
"type": "not_found",
"title": "text",
"status": 1,
"invalid_fields": [
{
"name": "text",
"error": "reference_not_found",
"title": "text",
"pointer": "text"
}
],
"sso_url": "text",
"request_id": "text"
}The bearer token can be obtained by creating a ServiceAccount.
Error object.
Implements the RFC7807 "Problem Details", see https://www.rfc-editor.org/rfc/rfc7807.
Enumerates possible error types.
Describes the problem in a human readable fashion.
Is a copy of the http status code.
Contains in case of an "unauthorised" type of error, the url of the SSO provider, if any.
Is set to the id of this request. Can be used to correlate backend logs.
GET /api/v2/environments/live/sse HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Error object.
{
"type": "not_found",
"title": "text",
"status": 1,
"invalid_fields": [
{
"name": "text",
"error": "reference_not_found",
"title": "text",
"pointer": "text"
}
],
"sso_url": "text",
"request_id": "text"
}The bearer token can be obtained by creating a ServiceAccount.
Error object.
Implements the RFC7807 "Problem Details", see https://www.rfc-editor.org/rfc/rfc7807.
Enumerates possible error types.
Describes the problem in a human readable fashion.
Is a copy of the http status code.
Contains in case of an "unauthorised" type of error, the url of the SSO provider, if any.
Is set to the id of this request. Can be used to correlate backend logs.
GET /api/v1/environments/{name}/proxy/ HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Error object.
{
"type": "not_found",
"title": "text",
"status": 1,
"invalid_fields": [
{
"name": "text",
"error": "reference_not_found",
"title": "text",
"pointer": "text"
}
],
"sso_url": "text",
"request_id": "text"
}Last updated
Was this helpful?

