Skip to main content
List endpoints in the Widgetic API page their results, so large datasets stay efficient to read. Each endpoint’s reference page says which of the parameters below it accepts.

Request Parameters

Example Request

GET /widgets returns the whole list when you pass neither page nor size. For an account with many widgets that response can be cut short, and nothing in it says so. Always page it when you do not know how many widgets an account holds.

Response Format

Paginated responses include a meta object with pagination details:

Meta Fields

Sorting

Some list endpoints take a sort parameter. GET /widgets does not: it is always newest first. Where it is accepted, use the format field:direction:
  • Ascending: sort=created_at:asc
  • Descending: sort=created_at:desc

Common Sort Fields

SDK Example

Using the TypeScript SDK:

Best Practices

Start with the default (20) or use 50-100 for bulk operations. Avoid requesting single items via pagination.
The total count is computed on each request. For expensive queries, cache it and only refresh periodically.
An empty data array is valid. Always check hasNextPage to determine if more data exists.