Skip to content
BLAZLE
Start free
Back to docs

Getting Started

Quickstart

Integrate BLAZLE into your AI agent pipeline in under 5 minutes. All you need is an API key.

Prefer to watch? The full setup in about three minutes

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 "X-API-Key: blz_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Deploy using this key: AKIAIOSFODNN7EXAMPLE"}'

3. Read the response

{
  "allowed": true,
  "risk_score": 100,
  "risk_rating": "Critical",
  "treatment_strategy": "Redact",
  "redacted_payload": "Deploy using this key: [REDACTED_AWS_ACCESS_KEY]",
  "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. If the strategy is Redact, forward redacted_payload instead of the original: the secret never reaches the model.

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\""}'