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

# ApiKey

> Swift Structure

**Structure**

```swift theme={null}
struct ApiKey
```

## Initializers

### init(key:)

```swift theme={null}
init(key: String) throws(ApiKey.Error)
```

## Instance Properties

### apiEnvironmentPathComponent

```swift theme={null}
var apiEnvironmentPathComponent: String { get }
```

### environment

```swift theme={null}
let environment: CrossmintEnvironment
```

### key

```swift theme={null}
let key: String
```

### type

```swift theme={null}
let type: ApiKey.Type
```

## Enumerations

### ApiKey.Error

```swift theme={null}
enum Error
```

### ApiKey.Type

```swift theme={null}
enum `Type`
```
