Datasets
Retrieves a list of datasets
The page number to be returned, must be greater than zero. Defaults to 1.
1The elements amount on a single page, must be greater than zero.
25A search keyword to match dataset, fields and description against.
nameA list of connection names to filter by. All connections will be included when no value is supplied.
A list of tag names to filter by. All tags will be included when no value is supplied.
The field to sort results by
Sorting order. Defaults to ascending
A flag to include in the search also system entities (e.g. Kafka's __consumer_offsets topic).
Whether to search only by table name, or also to include field names/documentation (defaults to true)
Schema format. Relevant only when sourceType is SchemaRegistrySubject
Filter based on whether the dataset has records
Filter based on compacted. Relevant only when sourceType is Kafka
A response wrapping a paginated list of datasets and the set of relative source types
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/datasets?pageSize=1 HTTP/1.1
Host:
Accept: */*
{
"datasets": {
"values": [
{
"name": "telecom_italia",
"highlights": [],
"records": 80000000,
"recordsPerSecond": 1813,
"keyType": "AVRO",
"valueType": "AVRO",
"connectionName": "Kafka",
"replication": 1,
"consumers": 0,
"partitions": 6,
"fields": {
"key": [],
"value": [
{
"type": "STRING",
"name": "name",
"typeDetails": {
"lensesDataType": "STRING",
"kind": "Lenses"
},
"ancestors": [],
"highlights": [
{
"fieldName": "name",
"startIndex": 1,
"endIndex": 5,
"arrayIndex": 0
}
],
"isNullable": false
}
]
},
"isSystemEntity": false,
"isMarkedForDeletion": false,
"isCompacted": false,
"sizeBytes": 25,
"policies": [],
"permissions": [
"ShowTopic"
],
"tags": [],
"retentionMs": 604800000,
"retentionBytes": 1073741824,
"backupRestoreState": "backup-restore",
"lrn": "kafka:topic:my-env/kafka/telecom_italia",
"sourceType": "Kafka"
}
],
"pagesAmount": 1,
"totalCount": 2
},
"sourceTypes": [
"Kafka"
]
}Deletes multiple datasets at once
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
POST /api/v1/environments/{environment}/proxy/api/v1/bulk/datasets/delete HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"items": [
{
"id": "kafka://telecom_italia"
},
{
"id": "kafka://bank"
}
]
}{
"items": [
{
"id": "telecom_italia",
"success": true
},
{
"id": "bank",
"success": false,
"message": "Dataset not found"
}
]
}Sets a dataset description. Will respond with a bad request if a blank description is supplied
kafkauser_detailsNo content
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
PUT /api/v1/environments/{environment}/proxy/api/v1/datasets/{connection}/{datasetName}/description HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"description": "Details about user's purchase history"
}No content
Add one or more tags to a dataset
kafkauser_detailsNo content
The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
PUT /api/v1/environments/{environment}/proxy/api/v1/datasets/{connection}/{datasetName}/tags HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"tags": [
{
"name": "crm"
},
{
"name": "PII"
},
{
"name": "legacy"
}
]
}No content
Get a single dataset by connection/name. While information mastered externally might be a few second out of sync with their respective sources (e.g. JMX metadata, etc), information mastered in Lenses's db is guaranteed to be up to date (e.g. tags, descriptions).
kafkacustomer-positionsThe request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/datasets/{connection}/{dataset} HTTP/1.1
Host:
Accept: */*
{
"name": "text",
"highlights": [
{
"fieldName": "text",
"startIndex": 1,
"endIndex": 1,
"arrayIndex": 1
}
],
"records": 1,
"recordsPerSecond": 1,
"keyType": "text",
"valueType": "text",
"connectionName": "text",
"replication": 1,
"consumers": 1,
"partitions": 1,
"fields": {
"key": [
{
"name": "text",
"typeDetails": {
"lensesDataType": "text"
},
"description": "text",
"ancestors": [
"text"
],
"highlights": [
{
"fieldName": "text",
"startIndex": 1,
"endIndex": 1,
"arrayIndex": 1
}
],
"isNullable": true,
"default": "text"
}
],
"value": [
{
"name": "text",
"typeDetails": {
"lensesDataType": "text"
},
"description": "text",
"ancestors": [
"text"
],
"highlights": [
{
"fieldName": "text",
"startIndex": 1,
"endIndex": 1,
"arrayIndex": 1
}
],
"isNullable": true,
"default": "text"
}
]
},
"isSystemEntity": true,
"isMarkedForDeletion": true,
"isCompacted": true,
"sizeBytes": 1,
"policies": [
{
"policyId": "text",
"policyName": "text",
"policyCategory": "text",
"obfuscation": "text",
"matchingKeyFields": [
{
"name": "text",
"parents": [
"text"
]
}
],
"matchingValueFields": [
{
"name": "text",
"parents": [
"text"
]
}
],
"lrn": "text"
}
],
"permissions": [
"text"
],
"description": "text",
"tags": [
{
"name": "text"
}
],
"retentionMs": 1,
"retentionBytes": 1,
"backupRestoreState": {},
"lrn": "text",
"sourceType": "text"
}Get tags sorted by dataset count
Match tag by keyword
userThe request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/datasets/tags HTTP/1.1
Host:
Accept: */*
{
"tags": [
{
"name": "user-generated-content",
"count": 5
},
{
"name": "user-details",
"count": 2
},
{
"name": "testuser",
"count": 1
}
]
}Get a list of available dataset connections
Match connection by keyword
kafkaNumber of results to be returned. Defaults to 25 if not supplied
50The request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/datasets/connections HTTP/1.1
Host:
Accept: */*
{
"connections": [
{
"name": "kafka",
"sourceType": "Kafka",
"connectionStatus": "Green"
},
{
"name": "kafka-reconcilation.dev",
"sourceType": "Kafka",
"connectionStatus": "Yellow"
}
]
}get ranged metrics for requested dataset
Dataset's entity name
topicThe request input was invalid
Authentication error
The purchased Lenses license does not provide access to this feature
Authorisation error
The requested resource cannot be found
An internal server error has occurred
GET /api/v1/environments/{environment}/proxy/api/v1/datasets/kafka/{entityName}/messages/metrics HTTP/1.1
Host:
Accept: */*
[
{
"date": "2025-10-24T15:52:30.010Z",
"messagesCount": 1
}
]Last updated
Was this helpful?

