Logstreem
List datasets
GET

List datasets

Every dataset on the organisation, with event counts and retention.

Returns all datasets the token can see. A dataset-scoped token sees only its own.

GET/v1/datasets

Query parameters

limitintegerdefault 25

Page size, 1–100.

cursorstring

From the previous page's next_cursor.

curl -X GET https://api.logstreem.com/v1/datasets \
  -H "Authorization: Bearer $LOGSTREEM_TOKEN"

Responses

200OK
{
  "object": "list",
  "data": [
    {
      "object": "dataset",
      "id": "ds_9f2c7b1a4d8e0c3f6a5b",
      "name": "api-gateway-prod",
      "description": "Production dataset.",
      "events": 14200000000,
      "fields": 148,
      "retention_days": 400,
      "region": "us-east",
      "created_at": "2026-04-11T12:00:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
401Unauthorized
{
  "error": {
    "type": "authentication_error",
    "code": "missing_token",
    "message": "No API token provided.",
    "doc_url": "https://logstreem.com/docs/errors#missing_token",
    "request_id": "req_9f3c2a7b41de08c5b2e6"
  }
}
Try itsandbox