# Get a single exploration

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

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v2/explorations/{id}"
method = "GET"

[[path_param]]
name = "id"
description = "The unique identifier of the exploration."
required = true
type = "integer"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = "The details of the specified exploration."
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:00Z",
      "updated_at": "2026-02-23T14:30:00Z",
      "chart": {
        "chart_type": "line_chart",
        "name": "Error Rate by Service",
        "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",
          "sql_query": "SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE time BETWEEN {{start_time}} AND {{end_time}} GROUP BY time",
          "source_variable": "source"
        }
      ],
      "variables": [
        {
          "name": "source",
          "variable_type": "source",
          "default_values": ["123"]
        },
        {
          "name": "log_level",
          "variable_type": "select_value",
          "values": ["error", "warning", "info"],
          "default_values": ["error"]
        }
      ]
    }
  }
}
'''

[[response]]
status = 401
description = "Invalid or missing authentication token."

[[response]]
status = 404
description = "An exploration with the specified ID was not found."
body = '''
{
  "errors": "Resource with the provided ID was not found"
}
'''
[/responses]

## Example request

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