Base URL
Authentication
All endpoints require authentication via Bearer token:Request Format
Headers
Authorization(required): Bearer token for authentication.Content-Type(required for POST/PUT):application/json.X-Request-ID(optional): Client-provided request ID for tracing.
Example Request
Response Format
All responses are JSON with the following structure:Successful Response
Error Response
Rate Limits
- Free: 60 requests/min. 1,000 requests/day. Burst 10.
- Pro: 300 requests/min. 50,000 requests/day. Burst 50.
- Enterprise: 1,000 requests/min. Unlimited requests/day. Burst 200.
Versioning
The API is versioned via URL path (/v1/, /v2/). Breaking changes require a new version.
- v1: Active. End of life not scheduled.
SDKs
Official SDKs are available:JavaScript
NPM:
@chainguard/sdkPython
PyPI:
chainguardCLI
NPM:
chainguard-cliEndpoints Overview
Scanning
POST /v1/scan/url: Scan a URL for phishing.POST /v1/scan/contract: Analyze a smart contract.GET /v1/scan/wallet/{address}: Assess wallet risk.POST /v1/scan/transaction: Analyze a transaction.
Risk Analysis
GET /v1/risk/score/{entity}: Get a risk score.GET /v1/risk/report/{entity}: Get a full risk report.
Webhooks
POST /v1/webhooks: Create a webhook.GET /v1/webhooks: List webhooks.DELETE /v1/webhooks/{id}: Delete a webhook.
Support
- Documentation: docs.chainguardai.dev
- Site: chainguardai.dev
- Telegram: t.me/chainguardai_bot
- X: x.com/ChainGuardDFI
- Email: api-support@chainguardai.dev

