Trasys
Public API

Pagination & Filtering

Standard limit/page pagination, time_range and from/to filters, and sort_by/sort_order parameters shared across most Trasys Public API list endpoints.

When retrieving collections of resources, the API provides standard parameters to help you paginate through large datasets and filter results by time range.

Pagination Parameters

Most endpoints that return multiple items support standard limit and offset-based pagination.

ParameterTypeDefaultDescription
limitinteger50The number of items to return per page. The maximum allowed limit is typically 100.
pageinteger1The page number to retrieve, starting at 1.

Response Format

Endpoints supporting pagination will return a meta object alongside the data array:

{
  "data": [
    // ... items ...
  ],
  "meta": {
    "page": 1,
    "limit": 50,
    "total": 1240,
    "hasMore": true
  }
}

Time Range Filters

Endpoints that query time-series data (like logs, traces, and metrics) commonly support time range filtering.

ParameterTypeExampleDescription
time_rangestring24hA shorthand string for recent time ranges. Supported values: 1h, 24h, 7d, 30d.
fromstring2026-06-01T00:00:00ZAbsolute ISO 8601 timestamp for the start of the range.
tostring2026-06-01T23:59:59ZAbsolute ISO 8601 timestamp for the end of the range.

If you provide time_range, it will take precedence over from and to.

Sorting

You can also specify sort fields on most list endpoints:

ParameterTypeDefaultDescription
sort_bystringcreated_atThe field to sort by (e.g., created_at, updated_at, timestamp).
sort_orderstringdescThe direction of sorting. Supported values: asc, desc.

On this page