Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

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.

What did you think of this content?

Clerk © 2024