API Documentation
AISpectra API Details
<GET> Retrieve Artifacts
2min
<Get> Retrieve the report and assets as part of the assessment /api/ais/v1.5/get_report
Report generation API helps generate defense ,vulnerability reports and attack samples. (vulnerability report, defense artifacts,attack_samples). For generating reports, there are three parameters:
GET
Request
Header Parameters
x-api-key
String
required
Enter your API key
Org-id
String
required
Enter your organization id
Body Parameters
job_id
String
required
Enter uniquely created job_id received during model analysis.
report_type
String
required
You can generate different reports (vulnerability, defense and attack_samples)
file_format
Number
required
0 - 4 values can be used to generate the report. 0 = all, 2 = pdf, 3 = json
- job_id: Uniquely created job_id received during model analysis
- report_type: parameter to define type of report to download. e.g vulnerability, defense and attack_samples)
- file_format: value between 0-4, 0 = all,2 = pdf, 3 = json
For using Nodejs sample code, install npm package request
Given ample code for python is tested for Python version 3.7
Given Sample code for nodejs and javascript is tested for Node V20LTS
Updated 20 Dec 2024

Did this page help you?