CodeSec API v1
Build Security Scanning Into Your Workflow
Integrate CodeSec into CI/CD pipelines, applications, and security workflows with our API.
Create your first scan
curl -X POST https://api.codesec.me/v1/scans \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target":"https://example.com"}'Explore the platform
API Keys
Create, rotate and revoke scoped keys for your apps and pipelines.
Documentation
Every endpoint with parameters, examples and response shapes.
API Reference
Try requests live against the API from your browser.
SDKs
Official JavaScript and Python clients with full type support.
Webhooks
React to scan.completed, scan.failed and usage events in real time.
Status
Live uptime for the API, scan queue, database and webhooks.
Quickstart
Authenticate with your API key and launch a scan in a few lines.
import { CodeSec } from class="tok-str">"@codesec/sdk";
const client = new CodeSec({
apiKey: process.env.CODESEC_API_KEY,
});
const scan = await client.scan({
target: class="tok-str">"https://example.com",
scanType: class="tok-str">"full",
});
console.log(scan.id, scan.status);Plan limits
Quotas reset monthly. Need more? Compare plans.
| Plan | Scans / month | Requests / min | Concurrent scans |
|---|---|---|---|
| Free | 10 | 30 | 1 |
| ProPopular | 500 | 120 | 5 |
| Business | 5,000 | 600 | 20 |
| Enterprise | Custom | Custom | Custom |