Returns a paginated Collections list.

Only superusers can perform this action.

= "2022-01-01 00:00:00"', }); // you can also fetch all collections at once via getFullList const collections = await pb.collections.getFullList({ sort: '-created' }); // or fetch only the first collection that matches the specified filter const collection = await pb.collections.getFirstListItem('type="auth"'); `} dart={` import 'package:pocketbase/pocketbase.dart'; final pb = PocketBase('http://127.0.0.1:8090'); ... await pb.collection("_superusers").authWithPassword('test@example.com', '1234567890'); // fetch a paginated collections list final pageResult = await pb.collections.getList( page: 1, perPage: 100, filter: 'created >= "2022-01-01 00:00:00"', ); // you can also fetch all collections at once via getFullList final collections = await pb.collections.getFullList(sort: '-created'); // or fetch only the first collection that matches the specified filter final collection = await pb.collections.getFirstListItem('type="auth"'); `} />
API details
GET
/api/collections
Requires Authorization:TOKEN
Query parameters
Param Type Description
page Number The page (aka. offset) of the paginated list (default to 1).
perPage Number The max returned collections per page (default to 30).
sort String

Specify the ORDER BY fields.

Add - / + (default) in front of the attribute for DESC / ASC order, e.g.:

Supported collection sort fields:
@random, id, created, updated, name, type, system

filter String

Filter expression to filter/search the returned collections list, e.g.:

'2022-01-01') `} />

Supported collection filter fields:
id, created, updated, name, type, system

Responses
{#each responses as response (response.code)} {/each}
{#each responses as response (response.code)}
{/each}