List all time series

Returns a paginated list of computed time series for a specific Warehouse source.

GET https://warehouse.betterstack.com/api/v1/sources/{source_id}/time_series

URL parameters

source_id
required string

Query parameters

page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "5215107",
      "type": "time_series",
      "attributes": {
        "name": "level",
        "sql_expression": "JSONExtract(raw, 'level', 'Nullable(String)')",
        "aggregations": [],
        "type": "string_low_cardinality",
        "expression_index": null
      }
    }
  ],
  "pagination": {
    "first": "https://warehouse.betterstack.com/api/v1/sources/12345/time_series?page=1",
    "last": "https://warehouse.betterstack.com/api/v1/sources/12345/time_series?page=1",
    "prev": null,
    "next": null
  }
}
401

Response body

{
  "errors": "Invalid authentication"
}
404

Response body

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

Example cURL

Example
curl --request GET \
  --url https://warehouse.betterstack.com/api/v1/sources/12345/time_series \
  --header "Authorization: Bearer $TOKEN"