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
1
Log in
Access your Pentest-Tools.com account.
2
Go to API settings
Navigate to My account > API.
3
Create a key
Click Create API Key, give it a name, and optionally set an expiration date.
4
Copy and store
Copy your key immediately. It won’t be shown again.
Using the API key
Include the key in theAuthorization header with the Bearer prefix:
Example request
API key security
Best practices
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