Skip to main content
Return a page of expert specializations and eligible expert counts, sorted by name and ID. The default and maximum page size is 1000. Use each result’s id as qualificationId and name as value in audience.specializations.values[]. The listAll* variant yields items across every page. The other variant returns one page with pagination metadata. See Pagination.

Signature

Method signatures on client.audience.specializations:

Parameters

listAll()

The argument object can be omitted.
number
default:"1000"
Maximum number of results to return, from 1 to 1000; defaults to 1000.
number
default:"0"
Number of results to skip before this page; defaults to 0.

listPage()

The argument object can be omitted.
number
default:"1000"
Maximum number of results to return, from 1 to 1000; defaults to 1000.
number
default:"0"
Number of results to skip before this page; defaults to 0.

Returns

listAll() result

AsyncGenerator<Specialization> Yields one item at a time. The fields below describe each yielded item. An expert specialization (platform qualification) that a node audience can require.
string
required
The platform qualification id. Use it as qualificationId in a node audience filter (audience.specializations.values[]).
string
required
The human-readable specialization name. Use it as value next to the qualificationId.
number
required
How many ID-verified experts currently eligible for tasks hold this specialization.

listPage() result

Promise<{ specializations: Specialization[]; pagination: Pagination }>
Specialization[]
required
Expert specializations and eligible expert counts in this page.
Pagination
required
Pagination information for this page.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: GET /audience/specializations.