v5
latestOpenAPI 3.0.22026-08-0688147257.1 KBEntities
listEntities
List entities that meet the specified conditions.
Supports the same options as entity search but utilizes filtering using a subset of Elastic Query DSL and does not perform scoring.
post/v1/entity:list
Request body
Example request
{
"query": {
"query_string": {
"query": "status:active",
"fields": [
"_title",
"_tags",
"status"
]
}
},
"filter": [
{
"term": {
"_schema": "contact"
}
},
{
"terms": {
"status": [
"active"
]
}
}
],
"fields": [
"_id",
"_title",
"first_name",
"account",
"!account.*._files",
"**._product"
],
"aggs": {
"contact-count-per-tag": {
"terms": {
"field": "_tags.keyword"
}
}
}
}Response
Success
Example response
{
"hits": 1,
"results": [
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"_org": "123",
"_owners": [
{
"org_id": "123",
"user_id": "123"
}
],
"_schema": "contact",
"_tags": [
"example",
"mock"
],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"_acl": {
"view": [
"org:456",
"org:789"
],
"edit": [
"org:456"
],
"delete": [
"org:456"
]
},
"_manifest": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"aggregations": {
"contact-count-per-tag": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 23,
"buckets": [
{
"key": "automation",
"doc_count": 108
},
{
"key": "primary",
"doc_count": 66
}
]
}
},
"sort_end": [
1747905443332,
"0.000023312468"
]
}