curl
# 1. authenticate and create an authorized sandbox run$ export DID_API_TOKEN="didk_replace_with_your_key"$ curl -X POST https://api.doesitdefend.ai/v1/runs \-H "Authorization: Bearer $DID_API_TOKEN" \-H "Content-Type: application/json" \-H "Idempotency-Key: quickstart-example-001" \-d '{"target_scope":{"assets":["https://juice-shop.sandbox.doesitdefend.ai"],"environments":["staging"]},"scan_profile":"quick","attack_depth":"low","authorization":{"authorized":true}}'✓ { "run_id": "run_a1b2c3d4", "status": "queued" }# 2. check the run status until it finishes$ curl https://api.doesitdefend.ai/v1/runs/run_a1b2c3d4 \-H "Authorization: Bearer $DID_API_TOKEN" | jq .status✓ "completed"
- 1
Create your tenant
Sign up, verify the email address, and enter the organization dashboard.
- 2
Provision an API key
Generate a key in Settings → API Keys and store it as a credential.
- 3
Define the allowed target
Add the host or URL that may be tested and identify its environment.
- 4
Trigger a quick run
Send `POST /v1/runs` with the `quick` profile and `low` depth, then follow the run through completion.
✦Pro Tip
Start with the `quick` profile to check the endpoint, authentication, and target permission before expanding coverage.