> For the complete documentation index, see [llms.txt](https://docs.tagfly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tagfly.io/klaviyo/how-to-create-a-klaviyo-private-api-key.md).

# How to create a Klaviyo Private API Key

In order to setup server-side tracking for Klaviyo, we'll need to have a Private API Key.

## Create a Klaviyo Private API Key

### Account settings

* Sign in to your [Klaviyo Account](https://www.klaviyo.com/login).
* Start by navigating to the Klaviyo homepage. Then, click on the "Account" button found in the lower left-hand corner of the page.&#x20;
* A new pop-up menu will appear; click on the "Settings" tab.&#x20;

<figure><img src="/files/KXnGq20j0KFRBVM1aNdQ" alt=""><figcaption></figcaption></figure>

### API keys settings

* After accessing your account settings, select the "API Keys" tab from the left-hand menu.&#x20;
* Scroll to the section labeled "Private API Keys."&#x20;

<figure><img src="/files/YA8dTJh9L0wE7L50Cg5U" alt=""><figcaption></figcaption></figure>

* In the upper right-hand corner of the Private API Keys box, find and click the "Create Private API Key" button.

<figure><img src="/files/Fx9oZ0UUskchEAXOPEyP" alt=""><figcaption></figcaption></figure>

### Private API key details

* After clicking the "Create Private API Key" button, you'll be directed to a new page where you can input the necessary details for your new API Key.&#x20;
* Find the section labeled "Private API Key Name" and enter key name in the text box (eg: "TagFly"). Next, go to the section titled "Select Access Level" and choose the "Full Access Key" option.&#x20;
* Once you've filled out all the required information, click the "Create" button located in the upper right-hand corner of the screen.

<figure><img src="/files/TxWxP5nJTypKj0WI61aH" alt=""><figcaption></figcaption></figure>

### Private API key confirmation

* Once you've created your Private API Key, you'll be directed to a confirmation page.&#x20;
* Head to the section titled "Your Private Key" and find the box containing your key.&#x20;
  * For example, a Private API Key might look like this: pk\_436db120d44347058e96d4832d3abed094.

<figure><img src="/files/aX31BpZshhoebiOsy59w" alt=""><figcaption><p>Copy the key and paste it into our app</p></figcaption></figure>
