Capsule. API keys are scoped to your team and have the prefix wrn_.
Get an API key
Open the Wrenn dashboard, navigate to Settings → API Keys, and create a new key. The plaintext key is shown only once at creation time — copy it immediately and store it somewhere safe.Authenticate with the SDK
You have two options for providing credentials to the SDK.WRENN_API_KEY is set, you never need to pass api_key= explicitly:
Override the base URL
By default the SDK points tohttps://app.wrenn.dev/api. You can override this with the WRENN_BASE_URL environment variable or the base_url= argument:
Authenticate REST requests directly
If you call the API directly rather than through the SDK, include your key in theX-API-Key header:
Error codes
The SDK surfaces these as typed exceptions: