> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# useProjectAccessKey

> Hook to retrieve the project access key from the connect configuration.

## Import

```tsx theme={null}
import { useProjectAccessKey } from '@0xsequence/connect'
```

## Usage

```tsx theme={null}
import { useProjectAccessKey } from '@0xsequence/connect'

function App() {
  const projectAccessKey = useProjectAccessKey()

  return (
    <div>
      {projectAccessKey && (
        <p>Project access key is configured</p>
      )}
    </div>
  )
}
```

## Return Type

```tsx theme={null}
string
```

Returns the project access key string, or `undefined` if not configured.

## Notes

The project access key:

* Authenticates your application with the backend services
* Identifies your specific project
* Must be provided during the initial configuration of the connect context

## Marketplace Integration Example

```tsx theme={null}
const projectAccessKey = useProjectAccessKey()
const marketplaceClient = new MarketplaceIndexer(apiUrl, projectAccessKey)
```
