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

# configure()

Configures UserKit with your API key and initializes the SDK for use.

## Purpose

The `configure` method initializes the UserKit SDK with your API key, setting up the necessary configuration for video calls and screen sharing functionality. This must be called before any other UserKit methods.

## Signature

```swift theme={null}
static func configure(apiKey: String)
```

## Parameters

| Name     | Type     | Description                                              |
| -------- | -------- | -------------------------------------------------------- |
| `apiKey` | `String` | Your UserKit API key obtained from the UserKit dashboard |

## Returns

This method does not return a value.

## Usage

### Basic Configuration

```swift theme={null}
import UserKit

// Configure UserKit with your API key
UserKit.configure(apiKey: "YOUR_API_KEY")
```

## Notes

* This method should be called as early as possible in your app's lifecycle
* The API key can be found in your UserKit dashboard under Settings
* Ensure your API key is kept secure and not exposed in public repositories
