Get a single exploration

Retrieves a single exploration by its ID, including the full chart, query, and variable configurations.

GET https://telemetry.betterstack.com/api/v2/explorations/{id}

URL parameters

id
required integer

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "123",
    "type": "exploration",
    "attributes": {
      "name": "Error Rate Analysis",
      "date_range_from": "now-3h",
      "date_range_to": "now",
      "exploration_group_id": 456,
      "created_at": "2026-02-20T10:00:00.000Z",
      "updated_at": "2026-02-23T14:30:00.000Z",
      "chart": {
        "chart_type": "line_chart",
        "name": "Error Rate Analysis",
        "description": "Shows error rates across all services",
        "settings": {
          "unit": "number",
          "decimal_places": 2,
          "legend": "bottom",
          "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": "time",
          "variable_type": "datetime",
          "values": [],
          "default_values": [],
          "allow_multiple_values": false
        },
        {
          "name": "start_time",
          "variable_type": "datetime",
          "values": [],
          "default_values": [],
          "allow_multiple_values": false
        },
        {
          "name": "end_time",
          "variable_type": "datetime",
          "values": [],
          "default_values": [],
          "allow_multiple_values": false
        },
        {
          "name": "source",
          "variable_type": "source",
          "values": [
            "123"
          ],
          "default_values": [
            "123"
          ],
          "structured_value": {
            "canonicalSourceIds": [
              "t123456_my_app:logs"
            ]
          },
          "allow_multiple_values": false
        },
        {
          "name": "log_level",
          "variable_type": "select_value",
          "values": [
            "error",
            "warning",
            "info"
          ],
          "default_values": [
            "error"
          ],
          "allow_multiple_values": false
        }
      ]
    }
  }
}
401
404

Response body

{
  "errors": "Resource with the provided ID was not found"
}

Response attributes

id
string
type
string
attributes.name
string
attributes.date_range_from
string
attributes.date_range_to
string
attributes.exploration_group_id
integer or null
attributes.created_at
string
attributes.updated_at
string
attributes.chart
object
attributes.chart.chart_type
string
attributes.chart.name
string
attributes.chart.description
string or null
attributes.chart.settings
object
attributes.queries
array
attributes.queries[].id
integer
attributes.queries[].name
string
attributes.queries[].query_type
string
attributes.queries[].source_variable
string
attributes.queries[].sql_query
string
attributes.queries[].pql_query
string
attributes.queries[].where_condition
string
attributes.queries[].static_text
string
attributes.queries[].funnel_query
object
attributes.queries[].x_axis
array
attributes.queries[].y_axis
array
attributes.queries[].point_size
array
attributes.queries[].coordinates
array
attributes.queries[].filters
array
attributes.queries[].where
array
attributes.queries[].group_by
array
attributes.queries[].having
array
attributes.queries[].order_by
array
attributes.variables
array
attributes.variables[].name
string
attributes.variables[].variable_type
string
attributes.variables[].values
array
attributes.variables[].default_values
array
attributes.variables[].sql_definition
string
attributes.variables[].structured_value
object
attributes.variables[].allow_multiple_values
boolean

Example request

cURL
curl --request GET \
     --url "https://telemetry.betterstack.com/api/v2/explorations/123" \
     --header "Authorization: Bearer $TOKEN"