āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/clerk/clerk-docs/reference/backend/oauth-applications/list ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
list()'
description: Use Clerk's JS Backend SDK to retrieve a list of OAuth applications for an instance.
sdk: js-backendRetrieves a list of OAuth applications for an instance. Returns a PaginatedResourceResponse object with a data property that contains an array of OAuthApplication objects, and a totalCount property that indicates the total number of OAuth applications for the instance.
function list(
params: ClerkPaginationRequest = {},
): Promise<PaginatedResourceResponse<OAuthApplication[]>>
The number of results to return. Must be an integer greater than zero and less than 501. Can be used for paginating the results together with offset. Defaults to 10.
offset?numberSkip the first offset results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with limit. Defaults to 0.
orderBy?'name' | 'created_at'Return OAuth applications in a particular order. Prefix with a - to reverse the order. Prefix with a + to list in ascending order. Defaults to '+created_at'.
nameQuery?stringFilters OAuth applications with names that match the given query, via case-insensitive partial match. </Properties>
const response = await clerkClient.oauthApplications.list()
Retrieves list of OAuth applications that is filtered by the number of results.
const { data, totalCount } = await clerkClient.oauthApplications.list({
// returns the first 10 results
limit: 10,
})
Retrieves list of OAuth applications that is filtered by the number of results to skip.
const { data, totalCount } = await clerkClient.oauthApplications.list({
// skips the first 10 results
offset: 10,
})
This method in the SDK is a wrapper around the BAPI endpoint GET/oauth_applications. See the BAPI reference{{ target: '_blank' }} for more information.
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā