Documentation Index
Fetch the complete documentation index at: https://pentest-tools.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The API uses Bearer token authentication. Include your API key in theAuthorization header of every request.
API access requires a plan that includes it. If you receive a 403 “Your plan does not have API access” error, check your subscription.
Getting your API key
Using the API key
Include the key in theAuthorization header with the Bearer prefix:
Example request
API key security
Best practices
| Practice | Description |
|---|---|
| Environment Variables | Store keys in environment variables, not in code |
| Rotation | Rotate keys periodically |
| Expiration | Set expiration dates on keys |
| Naming | Use descriptive names to identify key purpose |
| Monitoring | Check “Last used” date in My account > API |
Managing keys
From My account > API you can:- Create multiple keys for different purposes (CI/CD, scripts, integrations)
- View when each key was last used
- Set expiration dates (1-365 days, or never)
- Revoke compromised keys immediately
Authentication errors
| Code | Message | Solution |
|---|---|---|
| 401 | Unauthorized | API key is missing or invalid |
| 403 | Your plan does not have API access | Upgrade to a plan with API access |
| 403 | Forbidden | Valid key but insufficient permissions for the action |