Skip to main content

API Introduction

The AIPTx API provides programmatic access to all platform features, enabling you to integrate AI-powered penetration testing into your workflows.

Base URL

All API requests should be made to:

Authentication

The AIPTx API uses Bearer token authentication. Include your API key in the Authorization header:

Getting Your API Key

  1. Log in to the AIPTx Dashboard
  2. Navigate to SettingsAPI Keys
  3. Click Generate New Key
  4. Copy and securely store your key
API keys provide full access to your account. Never share them or commit them to version control. Use environment variables instead.

Request Format

Headers

All requests should include:

Request Body

POST and PUT requests accept JSON bodies:

Response Format

All responses are returned in JSON format:

Error Responses

Errors follow a consistent format:

HTTP Status Codes

Rate Limits

API requests are rate limited based on your plan: Rate limit headers are included in every response:

Pagination

List endpoints support pagination:
Paginated responses include metadata:

Versioning

The API is versioned via the URL path (/v1/). We maintain backward compatibility within major versions. Breaking changes will be introduced in new major versions with advance notice.

SDKs

Official SDKs are available for popular languages:

Python SDK

Node.js SDK

Go SDK

Ruby SDK

Quick Example

Here’s a complete example of starting a scan and retrieving results: