Pentesys API
A REST API for reading and updating your Pentesys data from scripts, dashboards, SIEMs and other systems, with exactly the access you have in the portal.
At a glance#
- Base URL
https://api.pentesys.io/v1- Authentication
- A personal API key as
Authorization: Bearer pts_…. See Authentication and paging. - Format
- JSON requests and responses over HTTPS.
- Rate limit
- 60 requests per minute per key.
- Interactive reference
- api.pentesys.io/docs: every endpoint and schema, with a "try it" console.
- OpenAPI document
https://api.pentesys.io/v1/openapi.json(OpenAPI 3.0), for generating clients.- Health check
GET https://api.pentesys.io/v1/healthreturns{"status":"ok"}without a key.
Quick start#
- Create a personal API key. Read only is enough to start.
- Keep it in an environment variable rather than in your script:
export PENTESYS_API_KEY="pts_YOUR_KEY" - Check who the key acts as:
curl -s https://api.pentesys.io/v1/me \ -H "Authorization: Bearer $PENTESYS_API_KEY"{ "name": "Alex Example", "email": "alex@acme.example", "organisation": { "name": "Acme Ltd", "slug": "acme" }, "roles": ["Security analyst"], "permissions": ["assets.view", "findings.view", "findings.triage", "remediation.view", "remediation.manage"], "asset_group_scope": null }asset_group_scopeisnullfor Workspace scope, or a list of asset group ids if you are limited to groups. - Make your first real call:
curl -s "https://api.pentesys.io/v1/findings?status=open&severity=Critical" \ -H "Authorization: Bearer $PENTESYS_API_KEY"
What you can do#
| Area | Read | Change |
|---|---|---|
| Identity, members, roles | You, members, role profiles | |
| Programme | Overview figures, programme periods | |
| Assets | Assets, asset groups | Asset owner, group owner |
| Findings | Findings with full detail | Status: Open, In progress, Retest requested |
| Remediation | Actions and history | Owner, status, evidence, ticket, due date |
| Exposure | Summary, records, risk decisions, sources | Owner, validation requests, risk decision requests |
| Testing | Validate engagements, Adversary campaigns, reports | Campaign discussion topics and replies; generate a report |
| Billing | Summary, invoices, subscriptions, billing profile, prepaid credits | Billing profile |
The API gives exactly the access you have in the portal. Pentesys-only steps, such as marking a finding Fixed or verifying a remediation action, are not available. Bookings are made in the portal.