Get an exploration
Get an exploration with its chart, queries and variables.
The ID of the exploration to get.
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Bearer $TOKEN
Returns the exploration.
{
"data": {
"id": "123456789",
"type": "exploration",
"attributes": {
"name": "Error Rate Analysis",
"date_range_from": "now-3h",
"date_range_to": "now",
"exploration_group_id": "456",
"chart": {
"chart_type": "line_chart",
"name": "Error Rate Analysis",
"description": "Shows error rates across all services",
"settings": {
"unit": "number",
"decimal_places": 2,
"legend": "shown_below",
"stacking": "dont_stack",
"x_axis_type": "time"
}
},
"queries": [
{
"id": "1",
"name": "Main Query",
"query_type": "sql_expression",
"source_variable": "source",
"sql_query": "SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE time BETWEEN {{start_time}} AND {{end_time}} GROUP BY time"
}
],
"variables": [
{
"name": "log_level",
"variable_type": "select_value",
"values": [
"error",
"warning",
"info"
],
"default_values": [
"error"
],
"allow_multiple_values": false
}
],
"product": "rum",
"created_at": "2026-02-20T10:00:00.000Z",
"updated_at": "2026-02-23T14:30:00.000Z",
"team_id": "t123",
"team_name": "My Team"
}
}
}
The API token is missing or invalid.
{
"errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
Your role doesn't include View on Dashboards, or the token can't be used for this API.
The exploration doesn't exist, or the token can't access it.
{
"errors": "Resource with the provided ID was not found"
}
The ID of the exploration.
Always exploration.
Exploration name. Until you name the exploration, a name generated from its query is returned. The chart is named after the exploration, so you never send a chart name.
Start of the default date range, such as now-3h. A funnel's range starts at now-7d by default. Once set, it can't be cleared.
End of the default date range, such as now. Once set, it can't be cleared.
Group this exploration belongs to.
Chart settings. chart_type is required on create. A funnel's settings accept funnel_unit_name, the word the chart counts in. The chart is always placed at x: 0, y: 0, w: 12, h: 10, and its name comes from the exploration's name. Returned without an id.
Chart type. A funnel chart can only be switched to a funnel trend chart, which shows the funnel over time, and back.
Valid values:line_chart: Accepts sql_expression and tail_query queries.table_chart: Accepts sql_expression queries.bar_chart: Accepts sql_expression and tail_query queries.number_chart: Accepts sql_expression and tail_query queries.heatmap_chart: Accepts sql_expression queries.anomalies_chart: Accepts tail_query queries.pie_chart: Accepts sql_expression queries.scatter_chart: Accepts sql_expression queries.gauge_chart: Accepts sql_expression and tail_query queries.tail_chart: Accepts tail_query queries.static_text_chart: Accepts a static_text query.map_chart: Accepts sql_expression queries.text_chart: Accepts sql_expression and tail_query queries.funnel_chart: Accepts a funnel_query query.funnel_trend_chart: Accepts a funnel_query query.hierarchy_chart: Accepts sql_expression queries.
The chart's name. Until you name the exploration, name holds a generated name instead.
The chart's description, or null when it has none.
Display settings for the chart type, such as unit, axes, legend, stacking and decimal places. An update changes only the settings it sends and keeps the others.
Unit the values are shown in, such as percent, bytes or ms. Table charts use column_units instead.
Whether unit is your own suffix, shown after the value as written and never scaled.
Number of decimal places shown.
Column on the X axis, time by default. For a category bar chart it's the grouping column.
How the X axis is read. Usually time, value or category.
How the Y axis of a scatter chart is read. Usually value or category.
Column that splits the data into series. On a heatmap it's the Y axis column.
Result columns that hold the values to chart.
Column that sets each point's size on a scatter chart.
Column holding the location on a map chart.
What a map chart's tooltip names, either the closest city or country or the value as sent. Usually automatic or original_value.
Column that names each hexagon on a hierarchy chart.
Up to two columns a hierarchy chart groups its hexagons by.
Color scale of a hierarchy chart. Usually green_to_red or red_to_green.
Lowest value of a hierarchy chart's color scale.
Highest value of a hierarchy chart's color scale.
Link a hierarchy chart opens when you click a hexagon, with {{column}} placeholders.
Lowest value on the Y axis.
Highest value on the Y axis.
How a line chart fits its Y axis when no bounds are set. Usually include_zero or fit_data.
Scale of the Y axis. Usually linear or log.
Lower bound of a gauge.
Upper bound of a gauge, the goal value.
How gaps in the data are drawn. Usually connected, disconnected, zero or previous.
How series are stacked. Usually dont_stack, stack or stack_to_100.
Direction of the bars on a bar chart. Usually vertical or horizontal.
Where the legend is shown. Usually hidden, shown_below, shown_below_with_statistics or shown_right.
Color of each series, keyed by its series_name, as a hex color such as #22c55e. Each value is a string.
Order the series are shown in, by name.
Whether a line chart also shows the previous period.
How a number chart colors its value. Usually auto, high_green, high_red or specific_words.
Upper threshold of a number chart's colors.
Lower threshold of a number chart's colors.
Values a number chart shows in green, separated by commas.
Values a number chart shows in yellow, separated by commas.
Values a number chart shows in red, separated by commas.
Unit of each table column, by column name. Each value is an object with unit and custom_unit.
Unit the column's values are shown in, such as auto, percent or bytes.
Whether unit is your own suffix, shown after the value as written and never scaled.
Table columns holding ratios from 0 to 1, shown with a bar.
Unit of a heatmap's Y axis labels.
Whether series_unit is your own suffix.
How a heatmap colors its cells. Usually gradient or categorized.
Label and color of each cell value of a categorized heatmap. Each value is an object with label and color.
Text shown for the value.
Color of the cells with the value, as a hex color such as #22c55e.
Width of each table column, by column name, as the chart editor saves it. Each value is a number.
Width of the table the column_widths were saved for.
Colors the chart picked for its series, keyed by series_name. Each value is a string.
A legend placement the chart editor saves next to legend, such as shown_below. Charts ignore it and place the legend by legend.
Markdown text of a text chart.
Live tail row format of each source, by source ID. Each value is a string.
Percentage of data the chart samples.
Whether the chart skips cached results.
Word a funnel chart counts in, such as people.
Series the chart shows, by name.
Releases the chart shows.
Whether the chart shows one series per source.
How zero values are drawn, keep or drop_disconnected. Defaults to keep.
Map projection of a map chart, such as mercator.
Format a published chart is served in, json by default.
Seconds a published chart's results are cached, 3 by default.
Horizontal lines drawn at values on the Y axis, each with a label and color.
The Y axis value the line is drawn at.
Text shown next to the line.
The line's color, as a hex color such as #22c55e. Left out, the line is gray.
Vertical lines drawn at values on the X axis, each with a label and color. A value is a time or a number, as the X axis reads it.
The X axis value the line is drawn at, a time or a number.
Text shown next to the line.
The line's color, as a hex color such as #22c55e. Left out, the line is gray.
The chart's queries, oldest first. Updating an exploration replaces all of its queries. Each query accepts only the keys its query_type uses. A sql_expression query uses sql_query and source_variable. A tail_query uses where_condition and source_variable. A static_text query uses static_text, and a funnel_query uses funnel_query. A key another type uses, or more than one query on a chart other than line_chart, is refused.
The query's ID.
Query type. A read-only query can't be edited, only replaced with a writable one. Responses can also hold promql_query, promql_v2_query and promql_via_llm for queries made in the web app.
Valid values:sql_expression: A query written in SQL. You can write it through the API.tail_query: The filter of a tail chart. You can write it through the API.static_text: The text of a static_text_chart. You can write it through the API.pql_expression: A query written in PQL. Read-only.tail_query_builder: A tail chart's query made in the query builder. Read-only.query_builder: A query made in the query builder. Read-only.funnel_query: A funnel's one query. You can write it through the API.
The query's name.
The SQL the query runs. Present for sql_expression, pql_expression, query_builder, tail_query_builder and funnel_query queries, and omitted when not set. Read-only except for sql_expression.
The PQL the query is written in. Present only for pql_expression queries.
The query's filter. Present only for tail_query and tail_query_builder queries, and omitted when not set.
The query's Markdown content. Present only for static_text queries, and omitted when not set.
The sources the query reads, either the name of a source variable, such as source, or source: followed by specific sources, each a table name or <source_id>:<type>, such as source:1729445:exceptions for one source's errors. Defaults to source on create.
X-axis blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Y-axis blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Point size blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Coordinate blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Filter blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Where blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Grouping blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Having blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
Ordering blocks of a query_builder or tail_query_builder query. Read-only.
What the block reads, such as count, field, json_value, json_value_from_column, special_column, virtual_field or search.
The column or field the block reads, such as dt.
The value's data type, such as datetime.
The name the block is shown with. The editor shows value when it's empty.
The aggregation applied to the value, such as avg, count, uniq, max, min, sum or p95.
rate to chart the value's rate of change.
The comparison of a filter block.
The filter block's comparison written as a symbol.
The value a filter block compares against.
The name a Y-axis or coordinates block's series is shown as.
How a filter block joins the filters before it, and or or. Defaults to and.
The sort direction of an order block, asc or desc.
The time bucket size in seconds, for a time block on the X axis.
metric for an aggregated value, or label for a raw dimension.
The source's storage layout, row_based or column_based.
A funnel's steps, session field and breakdown. Present only for funnel_query queries. An update changes only the fields you send.
The funnel's steps in journey order, 2 to 32. An update with steps replaces every step.
Step name shown on the chart. Defaults to Step <n>.
Live tail query that the step's events match, such as payload.meta.path="/cart".
Field that ties one journey's events together. Defaults to session_id. Use user.id to follow an identified user. An empty value resets it to session_id.
Field each step is split by, such as contexts.browser.name. An empty value removes the breakdown.
The breakdown the funnel is split by, with its field in value.
The field each step is split by, such as contexts.browser.name.
The type of the breakdown field, always string.
Template variables, which the queries use by name. See Query variables. An update replaces all variables, so a variable you leave out is removed, except the built-in time, start_time, end_time and source variables, which always exist. For a variable that already exists, any of default_values, sql_definition and structured_value you leave out keeps its value, unless variable_type changes, which clears them. allow_multiple_values you leave out keeps its value too. A variable sent without values gets empty values, except a source variable, which keeps its sources when you leave out both values and structured_value. sql_definition applies only to select_with_sql and multi_select_with_sql variables. allow_multiple_values is saved only for select_value and select_with_sql variables. When a variable is saved with empty values, a select_value variable gets the first of its default_values, and a string, number, boolean or sql_expression variable gets all of them. A select_with_sql variable whose sql_definition is new or changed gets the first option its SQL returns. An ISO 8601 date in a date or datetime variable is saved in values as a Unix timestamp in microseconds. A new or changed sql_definition or filter sql runs against the selected source, and the change is refused when the query fails. A source variable's values are the IDs of your sources. In a rum exploration, pick each source as its web events, <table_name>:web_events. A funnel reads one source, picked in its source variable or in source_id. A funnel's source variable that picks one source by ID reads the source as source_id does.
The variable's name, used as {{name}} in queries.
Variable kind. A variable named source sent without variable_type is a source variable. Possible values: source, date, datetime, string, number, sql_expression, select_value, boolean, select_with_sql, multi_select_with_sql, select_predefined_sql.
The variable's current values as strings, or an empty array when it has none. For a source variable, these are the IDs of the selected sources.
The variable's default values as strings, or an empty array when it has none.
The SQL expression whose distinct values are the options of a select_with_sql variable, such as JSONExtractString(raw, 'service'). The expression runs against the variable's source over the selected range.
The variable's other settings, such as the selected sources of a source variable in canonicalSourceIds and its services in serviceIds, or the saved filters of a select_predefined_sql variable. Left out when not set.
Label of the selected value.
Sources picked with their data type, as <source_id>:<type> such as 1729445:exceptions. Source IDs on their own, such as 1729445, go in values.
Selected services of a source variable.
Saved filters, each a label and the SQL that lists its values.
The filter's label, shown in the variable's menu.
A complete query that returns one column with the filter's options.
Whether a select_value or select_with_sql variable accepts more than one value at a time.
The IDs of the sources a source variable selects. Each must be one of your sources.
The saved filters of a select_predefined_sql variable.
The filter's label, shown in the variable's menu.
A complete query that returns one column with the filter's options.
The label of the selected filter of a select_predefined_sql variable. When not sent, the first filter is selected. A label that matches none of filters is refused.
The Explore the exploration lives in. Leave it out on create to put the exploration in Telemetry's Explore. A funnel that reads only web events goes in RUM's Explore instead. Changing it moves the exploration to the other Explore.
Valid values:telemetry: Telemetry's Explore.rum: RUM's Explore, which reads an application's web events only.
When the exploration was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
When the exploration was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
Team that owns the exploration, such as t123.
Name of the team that owns the exploration.
Example cURL