Clerk Backend SDK
The Clerk Backend SDK exposes Clerk's backend API resources and low-level authentication utilities for JavaScript environments. While the backend SDK is mainly used as a building block for Clerk's higher-level SDKs, it can also be used on its own for advanced flows and custom integrations.
Clerk's Next.js and Node SDKs expose an instance of the Clerk Backend SDK for use in server environments. The Backend SDK is accessible via the clerkClient
object if you are using Next.js, and the clerk
object if you are using Node.
User operations
User operations are exposed under clerkClient.users
. The following methods are available:
Get
Create
Update
Delete
Organization operations
Organization operations are exposed under clerkClient.organizations
. The following methods are available:
Get
getOrganization()
getOrganizationList()
getOrganizationMembershipList()
getPendingOrganizationInvitationList()
Create
Update
updateOrganization()
updateOrganizationMembership()
updateOrganizationMetadata()
updateOrganizationMembershipMetadata()
Delete
Allowlist Identifiers operations
Allowlist Identifiers operations are exposed under clerkClient.allowlistIdentifiers
. The following methods are available:
Get
Create
Delete
Session operations
Session operations are exposed under clerkClient.sessions
. The following methods are available:
Get
Delete
Client operations
Client operations are exposed under clerkClient.clients
. The following methods are available:
Get
Invitation operations
Invitation operations are exposed under clerkClient.invitations
. The following methods are available:
Get
Create
Delete
Email operations
Email operations are exposed under clerkClient.emails
. The following methods are available:
Create
SMS message operations
SMS message operations are exposed under clerkClient.smsMessages
. The following methods are available: