OpenAI is partnering with Hacktron to find vulnerabilities in its systems. Read the announcement.

Skip to content Hacktron Sign in [S]
Hacktron Sign in [S] Customers Docs Contact Sign in

API overview

5 min
, View, ChatGPT, Claude, Perplexity, OpenAPI

Copy page

API overview

View MarkdownOpen in ChatGPTOpen in ClaudeOpen in PerplexityDownload OpenAPI

Use the Hacktron REST API to start Whitebox pentests, triage findings, estimate costs, review pull requests, and work with code and application context. Each API key is scoped to one organisation.

Base URL

https://api.hacktron.ai/v1

Every endpoint in this reference is relative to this base URL. Examples use sample values; replace IDs, repository URLs, and other inputs with your own.

Interactive reference

A Swagger UI rendered from the live OpenAPI spec is at api.hacktron.ai/docs. It covers the same endpoints with raw request and response schemas and a Try it out console, which helps when you check field names or compare schemas against production.

Requirements

For endpoints that use an API key, you need the following.

  • a Hacktron organisation where you have the Admin or Owner role, which you need to create API keys
  • an API key, created as Authentication describes
  • an HTTP client that can set custom headers

The CVE webhook uses its own signing secret. Ask Hacktron to enable the trigger for your organisation before setting it up.

Getting started

Authentication Rate limits Pagination, filtering, and sorting Errors

Cost estimations

Create a cost estimation List cost estimations Get a cost estimation

Scans

Trigger a pentest List scans Get a scan Get scan status Get a pentest report List scan findings Export scan findings Stop a scan

Pentests

Create a pentest draft Update a pentest draft Check pentest logins Estimate a pentest Start a pentest Discard a pentest draft Request archive upload

Credits

Get credit balance Get automation credit balance

Automations

Submit a CVE webhook

Findings

List findings Count findings Get finding Update finding Add finding comment Export findings Remediate a finding Get a finding’s remediation

Repositories

List repositories Turn PR reviews on or off Get PR review settings Update PR review settings

Pull requests

List pull requests Get a pull request Review a pull request

Code workspaces

Open a code workspace Query a code workspace

Applications

List applications Create an application Add repositories to an application Update an application’s threat model

Threat models and context

List context documents Get a context document Add a context document Edit a context document Update a repository’s threat model

Dependency firewall

Get package verdict Get scoped npm package verdict Get batch verdicts List malware feed
[↓] [↑] [enter] to visit
Menu
[M]
Next in menu
[J]
Previous in menu
[K]
Find
[F]
Ask
[A]
Sign in
[S]
Copy page
[C]
Listen
[L]
Justification
[R]
Language
[G]
Dark mode
[D]
High contrast
[H]
Shortcuts
[I]
Close
[Esc]