Pentest API
Upload pentest reports and manage their vulnerabilities programmatically using the Pentest API.
Use the Pentest API to send penetration test (pentest) reports and their vulnerabilities to Sprinto from your own tools. The API supports the same actions as the Pentest page under Data Library > Vulnerabilities: upload a report, add vulnerabilities, upload a retest report, close vulnerabilities, and edit a pentest.
Use this API to automate pentest tracking from your pentest vendor's platform, CI/CD pipelines, or internal tools.
How it works
A typical integration:
Uploads the pentest report. The response returns the
pentest_pk.Adds the vulnerabilities from the report to the pentest.
Closes each vulnerability after it is fixed.
Uploads the updated report after a retest.
Sprinto evaluates the related checks in the same way as for changes made in the app.
Before you begin
Before you use this API, make sure you have:
The base URL for your Sprinto region
An API token that belongs to a user with the Admin role
Base URL
United States
https://app.sprinto.com
Europe
https://eu.sprinto.com
India
https://in.sprinto.com
Australia
https://au.sprinto.com
The examples on this page use the United States URL. Replace it with the URL for your region.
To generate an API token:
Log in to Sprinto.
Go to Settings > Developer API.
Generate a new API token.
Copy and securely store the token.
Authentication
Header
Guidelines
Keep tokens secure
Use HTTPS only
Use a token of an Admin user
Endpoints
POST
/api/v1/pentests
Upload a pentest report
GET
/api/v1/pentests
List pentests
PATCH
/api/v1/pentests/{pentest_pk}
Edit a pentest
POST
/api/v1/pentests/{pentest_pk}/vulnerabilities
Add vulnerabilities
GET
/api/v1/pentests/{pentest_pk}/vulnerabilities
List vulnerabilities of a pentest
POST
/api/v1/pentests/{pentest_pk}/reports
Upload an updated report (retest)
POST
/api/v1/pentests/vulnerabilities/{vulnerability_pk}/close
Close a vulnerability
Upload a pentest report
Creates a pentest and attaches the report file. You can also add the vulnerabilities from the report in the same request.
Send the report in one of two ways:
As a file, in a
multipart/form-datarequestAs a link, in an
application/jsonrequest withfile_url. Sprinto downloads the file from the link.
Endpoint
Body parameters
name
string
Yes
Name of the pentest, such as Q3 2026 external pentest.
file
file
Conditional
The pentest report. Multipart requests only. Send either file or file_url.
file_url
string
Conditional
A public https link to the pentest report. JSON requests only. Send either file or file_url.
report_issue_date
string
No
Date the report was issued, in YYYY-MM-DD format. Cannot be in the future. Defaults to today.
zone_pks
array
No
Zones to add the pentest to. Leave it out if you do not use zones.
vulnerabilities
array
No
Open vulnerabilities from the report. See Vulnerability object.
Example request
Example response (201 Created)
Store the pentest_pk. The other endpoints need it.
Add vulnerabilities
Adds open vulnerabilities to the latest report of a pentest.
Endpoint
Body parameters
vulnerabilities
array
Yes
One or more vulnerabilities. See Vulnerability object.
Example request
Example response (201 Created)
Upload an updated report (retest)
Adds a new report to an existing pentest after a retest. This endpoint accepts the same file or file_url as Upload a pentest report and an optional vulnerabilities list.
Endpoint
Example request
Example response (201 Created)
Close a vulnerability
Closes an open vulnerability.
Endpoint
Body parameters
closure_reason
string
Yes
One of:
RESOLVED: the vulnerability is fixed
WRONG_ADDITION: the vulnerability was added by mistake
NOT_APPLICABLE: the vulnerability does not apply and will not be fixed
closure_date
string
Yes
Date the vulnerability was closed, in YYYY-MM-DD format. Must be between the report issue date of the pentest and today.
Example request
Example response (200 OK)
Edit a pentest
Updates the name or zones of a pentest. Send at least one field. Fields that you leave out keep their current values.
Endpoint
Body parameters
name
string
No
New name of the pentest.
zone_pks
array
No
Full list of zones for the pentest. Replaces the current list.
Example request
Example response (200 OK)
List pentests
Returns all pentests in your organization. The open and closed vulnerability counts come from the latest report of each pentest.
Endpoint
Example request
Example response (200 OK)
List vulnerabilities of a pentest
Returns the vulnerabilities on the latest report of a pentest. Use this endpoint to find the vulnerability_pk to close a vulnerability. If the pentest has no report, pentest_report_pk is null and the list is empty.
Endpoint
Query parameters
state
No
OPEN or CLOSED. Returns both if you leave it out.
Example request
Example response (200 OK)
Vulnerability object
Request fields
description
string
Yes
Details of the vulnerability, such as SQL injection on /login or a CVE reference.
severity
string
Yes
One of CRITICAL, HIGH, MODERATE, LOW, or INFORMATIONAL. Not case-sensitive.
Response fields
pk
string
Unique identifier of the vulnerability
description
string
Details of the vulnerability
severity
string
Severity of the vulnerability
state
string
OPEN or CLOSED
closure_reason
string / null
Reason the vulnerability was closed
closure_date
string / null
Date the vulnerability was closed
created_at
string
Date and time the vulnerability was added
Error handling
All error responses have this format:
key names the request field that caused the error, when there is one.
400 Bad Request
Missing or invalid parameters
Report issue date in the future
File is not a PDF or ZIP
file_urlcannot be downloaded, or points to a private or internal addressZone not found
Closure date out of range
Vulnerability already closed
401 Unauthorized
Missing or invalid API token
403 Forbidden
API token does not belong to an Admin user
404 Not Found
Pentest or vulnerability not found in your organization
413 Payload Too Large
Report file is larger than 50 MB
500 Internal Server Error
Unexpected error. Sprinto saves no changes from the failed request. Retry later.
Supported file types
Documents
Archives
.zip
If the report has multiple files, add them to one ZIP file. Sprinto checks the file content, so a file that is not a PDF or ZIP fails even if its name ends in .pdf.
Limits
Maximum report file size: 50 MB
file_urlmust be a publichttpslink that Sprinto can download within 30 secondsLinks that resolve to private or internal network addresses are not supported
Maximum JSON request size: 500 KB. Split large vulnerability lists across multiple requests.
Checks in Sprinto
The API updates the same checks as the app:
Periodic VAPT report needs to be uploaded: evaluated when you upload a report
VAPT vulnerability should be resolved: created for each open vulnerability, and passes when you close the vulnerability
Troubleshooting
401 Unauthorized
Missing or invalid token
Send the token in the api-token header, not api-key
403 Forbidden
Token of a non-Admin user
Use a token of an Admin user
The report must be a PDF or ZIP file
Unsupported or damaged file
Upload a valid PDF or ZIP file
Could not download file_url
Link is not reachable, or the server returned an error status
Use a public HTTPS link that returns the file directly
file_url needs sign-in
Link returns 401 or 403
Use a link that does not need sign-in, such as a pre-signed URL
file_url points to a private or internal address
Link resolves to a private network address
Host the report on a public HTTPS URL
closure_date must be between the report issue date and today
Closure date out of range
Use a date from the pentest's report issue date through today
report_issue_date cannot be in the future
Issue date after today
Use the date the report was issued
This pentest has no report yet
Pentest without a report
Upload a report before you add vulnerabilities
Vulnerabilities closed after a retest
The retest endpoint closes open vulnerabilities on the previous report
Include the vulnerabilities that are still open in the retest request
Check status not updated
Processing delay
Refresh after a few seconds
Last updated

