API Keys
Creating a key
From the dashboard
- Go to Dashboard > API Keys
- Click Create Key
- Enter a descriptive name (e.g. "CI/CD Pipeline", "Local Testing")
- Copy the key immediately
The full key is only shown once. If you lose it, revoke the key and create a new one.
From the API
curl -X POST https://turbopentest.com/api/keys \
-H "Authorization: Bearer $TURBOPENTEST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "CI/CD Pipeline"}'Response:
{
"id": "uuid",
"name": "CI/CD Pipeline",
"prefix": "tp_a1b2c3d4",
"key": "tp_a1b2c3d4e5f60718293a4b5c6d7e8f90"
}Using a key
Pass the key as a Bearer token in the Authorization header:
curl -H "Authorization: Bearer tp_your_key_here" \
https://turbopentest.com/api/pentestsRevoking a key
curl -X DELETE https://turbopentest.com/api/keys/{id} \
-H "Authorization: Bearer $TURBOPENTEST_API_KEY"Revoked keys cannot be used and will return 401 Unauthorized.
Security best practices
- Store keys in CI/CD secrets, not in code
- Use descriptive names so you know which key is used where
- Rotate keys periodically
- Revoke keys that are no longer in use
Domain Verification
Verify you own or are authorized to test a domain before starting a pentest - the required first step, using a DNS TXT record or cloud-provider OAuth verification.
Pricing
TurboPentest pricing and plans: each pentest uses one credit, sold in four tiers priced by depth of analysis, from Audit-Ready to Adversarial-Depth.