Clerk logo

Clerk Docs

Ctrl + K
Go to
Check out a preview of our new docs.

Getting started with Go

The source:


Clerk's Go SDK is a thin wrapper over our Backend API. Add the following import statement:

import ""

Go doesn't automatically add the module, you can explicitly add it with:

$ go get

Clerk client

Now, you can create a Clerk client by calling the clerk.NewClient function. This function requires your Clerk secret key. You can get this from the dashboard of your Clerk application in Settings > API Keys.

Then create a client object to use the various services Clerk provides.


Was this helpful?

Clerk © 2023