Scoped engagement setup
# 1. Create a project for the engagement
curl -X POST https://api.abliteration.ai/v1/policy/projects \
-H "Authorization: Bearer $ADMIN_KEY" \
-d '{"name": "acme-pentest-q2", "policy_id": "security-testing"}'
# 2. Issue a scoped key for the engagement
curl -X POST https://api.abliteration.ai/v1/policy/keys \
-H "Authorization: Bearer $ADMIN_KEY" \
-d '{"project_id": "acme-pentest-q2", "quota": {"tokens": 5000000, "window": "monthly"}}'
# 3. Use the scoped key for pentest queries
curl https://api.abliteration.ai/policy/chat/completions \
-H "Authorization: Bearer $SCOPED_KEY" \
-H "X-Policy-User: analyst-jane" \
-d '{
"model": "abliterated-model",
"messages": [{"role":"user","content":"Generate a test SQL injection payload for the OWASP Juice Shop login form."}],
"policy_id": "security-testing"
}'