﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
title: Authentication
description: Authenticate the Clics TypeScript SDK with an API key from Settings → API Keys in your workspace.
sidebar:
  label: Authentication
seo:
  title: Authenticate the Clics TypeScript SDK with an API key
---

The SDK requires a paid-plan API key. Open the [Dashboard](https://platform.clics.dev), then create a key under **Settings → API keys** and pass it when constructing the client:

```typescript
import { Clics } from "@clicsdev/sdk";

const clics = new Clics({
  apiKey: process.env.CLICS_API_KEY!,
});
```

The SDK sends the key as a Bearer token:

```
Authorization: Bearer <your-api-key>
```

:::warning
Never expose API keys in client-side browser code. Use the SDK on the server or in trusted automation only.
:::

Store the key in your platform’s encrypted environment-variable store. If i