getChannels

abstract fun getChannels(): GetChannels

List DataSync channels. Optional filters/paging are set via the returned builder.

Filtering and sorting are only allowed on properties the entity class marks as filterable via their filtering mode (none / simple / full), which also determines which of filterFast / filter / sort a property may be used with — see filterFast, filter, and sort for the exact per-parameter rules. For the default Channel class the filterable set is name and type, but a custom class or subclass may declare additional filterable properties. These are filterable indexes over /payload/name and /payload/type — both nullable, not a required or exclusive payload schema; the payload stays arbitrary JSON. In addition, the built-in fields id, createdAt, updatedAt, and status behave as full and are always filterable and sortable on any class. The default Channel class is defined at the GLOBAL class level.

Results are scoped to the caller's access token: only channels the token is permitted to read (get) are returned. Channels the token cannot read are silently omitted — the call does not error and does not return a 403 for the un-readable channels. This token scoping is applied before filterFast / filter / sort. When the PubNub instance is configured with a secretKey (a trusted server-side deployment, never a client — the secretKey must not be shipped to clients), or when using a token whose grants cover the whole result set, no permission-based filtering is applied and all matching channels are returned, subject only to filterFast / filter / sort and limit paging.