Back to docs
Getting Started
Quickstart
Integrate BLAZLE into your AI agent pipeline in under 5 minutes. All you need is an API key.
1. Get your API key
Sign in to your BLAZLE dashboard, navigate to API Keys, and click Create Key. Copy the key — it's shown only once.
2. Intercept a prompt
curl -X POST https://api.blazle.io/api/v1/intercept/prompt \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "Deploy using this key: AKIAIOSFODNN7EXAMPLE"}'3. Read the response
{
"allowed": false,
"risk_score": 95,
"risk_rating": "Critical",
"treatment_strategy": "Avoid",
"findings": [{
"rule_name": "AWS Access Key",
"match_text": "AKIAIOSFODNN7EXAMPLE",
"description": "AWS Access Key ID leaked."
}],
"latency_ms": 1
}If allowed: false, do not forward the request to your model. Log the finding and surface it to the developer.
4. Intercept commands and diffs
The same pattern applies for shell commands and code diffs:
# Shell command
curl -X POST .../intercept/command -d '{"command": "rm -rf /var/www"}'
# Git diff
curl -X POST .../intercept/diff -d '{"diff": "@@ +1,3 @@\n+api_key=\"s3cr3t\""}'