Skip to content

Documentation

Everything you need to secure your vibe-coded projects

Guides

API Keys

API keys let you access BoringSec programmatically from CI/CD pipelines, custom scripts, and advanced automations. Local MCP flows can also use device authorization so developers do not have to copy raw secrets manually.

Key Format

bsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

All BoringSec API keys start with the bsk_ prefix.

Keys are stored as SHA-256 hashes — we never store or display the full key after creation. Copy it immediately when generated.

The first 8 characters are saved as a prefix for identification (e.g., bsk_a1b2...).

Creating an API Key

1

Go to API Keys page

Dashboard → API Keys (requires Pro plan or higher).

2

Name your key

Give it a descriptive name like "CI/CD Pipeline" or "GitHub Action".

3

Select scopes

Choose which permissions the key has (see Scopes section below).

4

Copy immediately

The full key is shown only once. Store it in your environment variables or secrets manager.

Scopes & Permissions

Scopes control what each API key can access. Some scopes require higher tier plans.

ScopeDescriptionMin Tier
scan:readRead scan results, usage statsPro
scan:writeCreate and run scansPro
scan:read:fullRead full scan data with raw metadataBusiness
domain:readRead domain informationPro
domain:writeCreate, update, delete domainsPro
monitoring:readRead monitoring configurationPro
monitoring:writeUpdate monitoring settingsPro
webhook:readRead webhook configurationsBusiness
webhook:writeCreate, update, delete webhooksBusiness
compliance:readRead compliance reportsBusiness
history:readRead historical scan data and trendsBusiness
template:readRead fix templatesPro
template:writeSubmit community fix templatesPro

Using Your Key

HTTP Header

Authorization: Bearer bsk_your_api_key_here

Environment Variable

# .env or CI/CD secrets
BORINGSEC_API_KEY=bsk_your_api_key_here

Claude Code MCP

# Preferred local flow
npx -y @boringsec/claude-code login

// ~/.claude/config.json
"args": ["-y", "@boringsec/claude-code"]

Manual API keys are still supported, but device authorization is safer and simpler for local editor setups.

Rate Limits

Pro

100 requests/hour

For solo developers

Business

500 requests/hour

For teams and CI/CD

Enterprise

2,000 requests/hour

For heavy automation

Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

Security Best Practices

Never commit API keys to git. Use environment variables or a secrets manager.

Use least-privilege scopes. Only grant the scopes your integration needs.

Set expiration dates on keys you create for temporary use (CI/CD previews, testing).

Rotate keys regularly. Revoke old keys from the API Keys page and create new ones.

Monitor usage. Check the last-used timestamp on your keys to detect unauthorized access.

Ready to integrate?

Create your first API key in seconds.

Manage API Keys