Spaces method and path for this operation:
Refer to Spaces for more information.
Returns the complete state of a Vega library item, including its spec, query, and filters.
Path parameters
-
The Vega library item ID, as returned by the create or search endpoints, or the ID you chose when you created the item with the upsert endpoint.
Responses
-
ok
Hide response attributes Show response attributes object
-
Additional properties are NOT allowed.
Hide data attributes Show data attributes object
-
A short description of the Vega library item.
Minimum length is
0, maximum length is10000. -
Filters. Applied together with the dashboard filters to Elasticsearch and ES|QL data sources that use
%context%: true, and to Elasticsearch data sources that use%dashboard_context-*%placeholders.Not more than
100elements.A filter applied to query results. Can be a field condition (
condition), a logical group of conditions (group), a raw Elasticsearch DSL query (dsl), or a geo spatial query (spatial).One of: A filter that evaluates a single field condition such as equality, range, or existence.
Hide attributes Show attributes
- condition
object Required A filter condition with strict operator/value type matching.
One of: Matches documents where
fieldequals a single specified value.Hide attributes Show attributes
Matches documents where
fieldequals any value in a provided list.Hide attributes Show attributes
-
Name of the document field the condition evaluates.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse. -
Value is
is_one_of.
Matches documents where
fieldfalls within a specified numeric or date range.Hide attributes Show attributes
-
Name of the document field the condition evaluates.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse. -
Value is
range. -
Boundary values for a range comparison.
Additional properties are NOT allowed.
Hide value attributes Show value attributes object
-
Elasticsearch date format string applied when parsing date boundary values. For example,
strict_date_optional_timeorepoch_millis.
-
Matches documents where
fieldexists and contains a non-null value. -
-
Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
-
Identifier of the data view used as context for this filter.
-
When
true, the filter is inactive and does not affect query results. Defaults tofalse. -
When
true, the filter can be applied across multiple indices. Defaults tofalse. -
Human-readable label for the filter, used for display purposes.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse. -
Value is
condition.
A filter that combines multiple conditions or nested groups using a logical
andororoperator.Hide attributes Show attributes
-
Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
-
Identifier of the data view used as context for this filter.
-
When
true, the filter is inactive and does not affect query results. Defaults tofalse. -
Logical group that combines one or more conditions or nested groups.
Additional properties are NOT allowed.
Hide group attributes Show group attributes object
-
Ordered list of conditions or nested groups combined by the group
operator.Any of: Matches documents where
fieldequals a single specified value.Hide attributes Show attributes
Matches documents where
fieldequals any value in a provided list.Hide attributes Show attributes
-
Name of the document field the condition evaluates.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse.
Matches documents where
fieldfalls within a specified numeric or date range.Hide attributes Show attributes
-
Name of the document field the condition evaluates.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse. -
Boundary values for a range comparison.
Additional properties are NOT allowed.
Hide value attributes Show value attributes object
-
Elasticsearch date format string applied when parsing date boundary values. For example,
strict_date_optional_timeorepoch_millis.
-
Matches documents where
fieldexists and contains a non-null value.Logical group that combines one or more conditions or nested groups.
Additional properties are NOT allowed.
-
-
When
true, the filter can be applied across multiple indices. Defaults tofalse. -
Human-readable label for the filter, used for display purposes.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse. -
Value is
group.
A filter expressed as a raw Elasticsearch Query DSL object, used for queries that cannot be represented by condition or group filters.
Hide attributes Show attributes
-
Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
-
Identifier of the data view used as context for this filter.
-
When
true, the filter is inactive and does not affect query results. Defaults tofalse. -
Elasticsearch Query DSL object passed directly to the query.
Additional properties are allowed.
-
Field name for scripted filters where the field cannot be extracted from the DSL query.
-
When
true, the filter can be applied across multiple indices. Defaults tofalse. -
Human-readable label for the filter, used for display purposes.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse. -
Filter parameters metadata. May contain display values, formats, and parameters for scripted filters.
-
Value is
dsl.
A filter that applies an Elasticsearch geo query, used for geographic boundary and shape matching.
Hide attributes Show attributes
-
Identifier of the panel that manages this filter. When set, the filter is treated as owned by that panel.
-
Identifier of the data view used as context for this filter.
-
When
true, the filter is inactive and does not affect query results. Defaults tofalse. -
Elasticsearch geo query DSL object.
Additional properties are allowed.
-
When
true, the filter can be applied across multiple indices. Defaults tofalse. -
Human-readable label for the filter, used for display purposes.
-
When
true, the filter is negated and matches documents that do NOT satisfy the condition. Defaults tofalse. -
Value is
spatial.
-
KQL or Lucene query. Applied together with the dashboard query to Elasticsearch and ES|QL data sources that use
%context%: true, and to Elasticsearch data sources that use%dashboard_context-*%placeholders.Additional properties are NOT allowed.
Hide query attributes Show query attributes object
-
Tag IDs associated with this library item.
Not more than
1000elements. Maximum length of each is250. Default value is[](empty). -
The Vega library item title.
Minimum length is
1, maximum length is1024.
-
-
The unique ID of the Vega library item, as returned by the create or search endpoints.
-
Additional properties are NOT allowed.
Hide meta attributes Show meta attributes object
-
Timestamp when the object was created (ISO 8601).
-
User profile ID of the user who created the object.
-
When
true, the object is managed by Kibana and cannot be edited by users. -
Identifier of the plugin or team that owns this object.
-
Timestamp when the object was last updated (ISO 8601).
-
User profile ID of the user who last updated the object.
-
Internal version identifier for optimistic concurrency control.
-
-
-
forbidden
-
not found
curl -X GET "${KIBANA_URL}/api/vega/7c1d8e40-9b2f-11f0-a5c3-2f6e4b8d9a10" \
-H "Authorization: ApiKey ${API_KEY}"
GET kbn:/api/vega/7c1d8e40-9b2f-11f0-a5c3-2f6e4b8d9a10
{
"data": {
"filters": [
{
"condition": {
"field": "geo.dest",
"operator": "is",
"value": "US"
},
"data_view_id": "90943e30-9a47-11e8-b64d-95841ca0b247",
"type": "condition"
},
{
"dsl": {
"range": {
"bytes": {
"gte": 1000
}
}
},
"type": "dsl"
}
],
"query": {
"expression": "machine.os.keyword : \"osx\"",
"language": "kql"
},
"spec": {
"format": "json",
"value": {
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"format": {
"property": "aggregations.extensions.buckets"
},
"url": {
"%context%": true,
"%timefield%": "timestamp",
"body": {
"aggs": {
"extensions": {
"terms": {
"field": "extension.keyword"
}
}
},
"size": 0
},
"index": "kibana_sample_data_logs"
}
},
"encoding": {
"x": {
"field": "key",
"type": "nominal"
},
"y": {
"field": "doc_count",
"type": "quantitative"
}
},
"mark": "bar"
}
},
"title": "Top extensions (US, macOS)"
},
"id": "7c1d8e40-9b2f-11f0-a5c3-2f6e4b8d9a10",
"meta": {
"created_at": "2026-09-30T10:00:00.000Z",
"managed": false,
"updated_at": "2026-09-30T10:00:00.000Z",
"version": "WzU5LDFd"
}
}