Skip to content

Clerk Client

@theholocron/clerk-client is a typed wrapper around the Clerk backend API for managing users, instances, and webhooks.

Terminal window
pnpm add @theholocron/clerk-client
import { createClerkClient } from "@theholocron/clerk-client";
const client = createClerkClient({ token: process.env.CLERK_SECRET_KEY });
const users = await client.users.list();
const user = await client.users.get("user_abc123");
await client.users.ban("user_abc123");
Namespace Covers
instance The Clerk instance
users Listing, counting, creating, updating and deleting users, and banning or locking them
webhooks The Svix app behind Clerk’s webhooks

The full API reference is generated from the package’s TSDoc comments.