Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.pnlight.app/llms.txt

Use this file to discover all available pages before exploring further.

The SDK token connects app SDK calls to a PNLight project.

Find the token

1

Open the project

Select the project in the dashboard.
2

Open Settings

Go to Settings.
3

Copy the SDK token

Copy the value shown in the SDK section.

Use the token in the app

Pass the token to the SDK initialization method.
await PNLightSDK.shared.initialize(apiKey: "pnlight_sdk_token")

Token hygiene

  • Use the production token only in production builds.
  • Keep development and staging traffic separate when you need clean production analytics.
  • Do not paste the token into public support tickets or public repositories.
If analytics appear under the wrong project, check the SDK token first.