Skip to main content

Overview

The API uses Bearer token authentication. Include your API key in the Authorization header of every request.
API access is included in every paid plan. 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 the Authorization header with the Bearer prefix:

Example request

Keys and data regions

The base URL is the same whichever data region your account is in. Each key carries a prefix identifying its region, and requests are routed on that prefix, so there is nothing region-specific to configure and no separate hostname to call.

API key security

Treat your API key like a password. Never commit it to version control or expose it in client-side code.

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

Authentication errors