Parameters
API methods that are "read-only" and return an array of data will typically support the following optional parameters. In the REST API these are query parameters. Below is a TypeScript representation useful for Foo's Node.js API client.
criteriaspecifies sorting sequence as eitherascendingordescending.fromis a "from" date. This field can be any valid JavaScript date format.limitcan be used to specificy a limit to the number of results returned by the API.skipcan be helpful with pagination as it specifies a beginning index of results to return.sortspecifies a field to sort by used in tandem withcriteria. Note that not all fields are supported for sort in the API.tois a "to" date. This field can be any valid JavaScript date format.