clerk.count_users
Return the total number of users in a connected Clerk application.
Call clerk.get_connected_accounts first. Pass clerk_instance_id to target a specific connection, or omit it to use the default account.
Cheaper than listing users when you only need the total count.
Cost = 2 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional filter query forwarded to Clerk (email, phone, username, or external id). | |
| clerk_instance_id | No | Clerk instance id (ins_...) from clerk.get_connected_accounts. Omit to use the default connected account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total_count | No | Total number of users in the Clerk application. |