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

# init

> Initialize the RampKit iOS SDK

## init

```swift theme={null}
RampKit.initSdk(
  apiKey: "YOUR_API_KEY",
  environment: .production,
  autoShowOnboarding: false,
  onOnboardingFinished: { payload in
    print("Flow finished with payload: \(payload)")
  }
)
```

Parameters:

* `apiKey` (String): Found in the RampKit dashboard
* `environment` (Enum): `.production` or `.staging`
* `autoShowOnboarding` (Bool): If true, automatically present when data is available
* `onOnboardingFinished` (Closure): Completion callback with payload
