api
API Overview
The brin REST API — no auth, no signup, one GET request
The brin API scores any external context your agent might interact with. No auth, no signup, no SDK required.
##Base URL
Text
##Entity types
brin supports 9 origin types across 6 context categories:
| Origin | Example |
|---|---|
npm | npm/express |
pypi | pypi/requests |
crate | crate/tokio |
repo | repo/expressjs/express |
domain | domain/example.com |
page | page/example.com/path |
mcp | mcp/owner/repo |
skill | skill/owner/repo |
##Quick example
Bash
JSON
Every response also includes headers for lightweight checks:
Text
##Verdicts
| Verdict | Meaning |
|---|---|
safe | Proceed |
caution | Review before using |
suspicious | Likely malicious |
dangerous | Do not use |
##New artifacts
If an artifact hasn't been scanned yet, brin returns a preliminary score immediately and queues a full 3-tier scan in the background. Subsequent requests return the full result. Use a webhook to get notified when the scan completes:
Bash
##Safety tolerance
Tolerance controls how the numeric score (0–100) maps to a verdict. The raw score never changes.
| Score | Conservative (default) | Lenient | Yolo |
|---|---|---|---|
| 80–100 | safe | safe | safe |
| 60–79 | caution | safe | safe |
| 50–59 | caution | caution | safe |
| 40–49 | suspicious | caution | safe |
| 20–39 | suspicious | suspicious | caution |
| 0–19 | dangerous | dangerous | suspicious |
Bash
##Authentication
No authentication required. The API is public and free.
##Rate limits
300 requests per minute per IP. Contact us for higher limits.
On this page