Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

getClient()

Retrieves a single client by its ID, if the ID is valid. Throws an error otherwise.

const clientId = 'my-client-id'; const client = await clerkClient.clients.getClient(clientId);

Required parameters

NameTypeDescription
clientIdstringThe ID of the client to retrieve.

Last updated on December 29, 2023

What did you think of this content?

Clerk © 2024