About setup-api-key
A setup skill for configuring and verifying a Bolna API key. It explains dashboard key creation, environment-variable storage, a smoke test, and common authentication errors.
Key features
- 01Create a key through the Bolna dashboard
- 02Store the key in an environment variable
- 03Verify access with a smoke test
- 04Diagnose common authentication errors
Use cases
- 01Set up credentials before running Bolna scripts
- 02Check whether an API key can access the account
- 03Troubleshoot 401, 403, or 429 responses
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bolna-ai/ skills --skill setup-api-keyAfter installing, type/setup-api-keyin Claude Code to confirm it loaded.
Bundled filesscripts/verify_key.py
Details
From the project READMESetup Bolna API Key
Core facts
- Base URL:
https://api.bolna.ai - Auth header:
Authorization: Bearer $BOLNA_API_KEY - Smoke test endpoint:
GET /user/me - API keys are created in the Bolna dashboard under Developers.
- The key is shown only once. If it is lost, delete it and generate a new one.
- Sub-account keys start with
sa-.
Workflow
- Ask whether the user already has a Bolna API key.
- If not, guide them to
https://platform.bolna.ai, open Developers, and create a key. - Store it locally as an environment variable, never inside committed files.
- Verify it with
GET /user/me. - If verification fails, distinguish missing env var, invalid key, expired/deleted key, and insufficient account access.
Shell setup
export BOLNA_API_KEY="paste-key-here"
For a project-local .env:
BOLNA_API_KEY=paste-key-here
Make sure .env is in .gitignore.
cURL smoke test
curl --request GET \
--url https://api.bolna.ai/user/me \
--header "Authorization: Bearer $BOLNA_API_KEY"
Expected shape:
{
"id": "user-uuid",
"name": "Account name",
"email": "[email protected]",
"wallet": 42.42,
"concurrency": {
"max": 10,
"current": 0
}
}
Troubleshooting
401: missing, malformed, deleted, or wrong API key.403: key exists but the account or sub-account cannot access the requested resource.429: rate limited; retry with exponential backoff.- Empty
$BOLNA_API_KEY: tell the user to export it in the shell session that will run scripts.
Script
Run the included smoke test:
python3 setup-api-key/scripts/verify_key.py
See also
https://raw.githubusercontent.com/bolna-ai/skills/main/references/bolna-core.md— base URL, headers, pagination, rate limits in one place.manage-subaccounts— thesa-prefix and the difference between parent vs sub-account keys.
Comments
Markdown supported