---
title: "Boxever.getClientKey()"
slug: "bx-getclientkey"
abstract: "Describes the getClientKey() function in the Boxever JavaScript Library (Sitecore CDP Stream API)."
---
# Boxever.getClientKey()

The `getClientKey()` function returns the client key.

## Parameters

none

## Return value

string

## Example

Log the client key to the console:

```javascript
console.log(Boxever.getClientKey());
// "ZpHxO9WvLOfQRVPlvo0BqB8YjGYuFfNe"

```