curl
# 1. authenticate + create your first run$ export DID_API_TOKEN="$(cat ~/.did/token)"$ curl -X POST https://api.doesitdefend.ai/v1/runs \-H "Authorization: Bearer $DID_API_TOKEN" \-H "Idempotency-Key: $(uuidgen)" \-d '{"target_scope":{"assets":["https://app.example.com"]},"scan_profile":"quick"}'✓ { "run_id": "run_a1b2c3d4", "status": "queued", "eta_seconds": 240 }# 2. poll status until completed$ curl https://api.doesitdefend.ai/v1/runs/run_a1b2c3d4 \-H "Authorization: Bearer $DID_API_TOKEN" | jq .status✓ "completed"
- 1
Create your tenant
Sign up and verify your email.
- 2
Provision an API key
Generate an API key in Settings → API Keys.
- 3
Declare a target_scope
Add an asset (host or URL) and an environment label.
- 4
Trigger a quick run
POST /v1/runs with profile=quick, depth=low.
✦Pro Tip
Start with profile=quick to validate target_scope before deep scans.