Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.devGet API keys

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 API 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.

client, err := clerk.NewClient("CLERK_API_KEY")
if err != nil {
// handle error

Was this helpful?

Clerk © 2022