ModernPentestModernPentest

API Overview

Integrate ModernPentest into your workflows with our REST API

Base URL

https://api.modernpentest.com/api/v1

Authentication

All API requests require an API key passed in the X-API-Key header:

curl -X GET https://api.modernpentest.com/api/v1/applications \
  -H "X-API-Key: mpt_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"

API keys provide access to your organization's data. Never share them or commit them to version control.

Getting Your API Key

  1. Go to Settings > API Keys
  2. Click Create API Key
  3. Select the required permissions
  4. Copy and securely store your key (it's only shown once)

Available Endpoints

Permissions

Each API key requires specific permissions to access different endpoints:

PermissionDescription
applications:readView applications and their details
pentests:readView pentest results and history
pentests:createTrigger new pentests
vulnerabilities:readView vulnerability findings

Rate Limits

API requests are rate limited based on your subscription tier:

TierPer MinutePer HourPer Day
Starter1001,00010,000
Professional5005,00050,000
Enterprise2,00020,000200,000

Rate limit information is included in response headers:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1734567890

Error Handling

All errors follow a consistent format:

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid application ID",
    "timestamp": 1734567890000
  }
}

Error Codes

CodeHTTP StatusDescription
UNAUTHENTICATED401Invalid or missing API key
API_KEY_EXPIRED401API key has expired
FORBIDDEN403Missing required permission
NOT_FOUND404Resource not found
RATE_LIMIT_EXCEEDED429Too many requests
VALIDATION_ERROR400Invalid request body
INTERNAL_ERROR500Server error

OpenAPI Specification

The full OpenAPI 3.0 specification is available at:

You can use this spec to generate type-safe clients for any programming language using tools like:

Last updated: February 1, 2026

On this page