A Collection represents the source of your API endpoints and acts as the starting point for both unauthenticated and authenticated API scans. You can use it to scan public (unauthenticated) APIs right away, or later configure authentication for APIs that require it.
Here’s how you can create a collection in ZeroThreat.
First, you need to create a Target that defines the base URL of your API and sets the scan type.
https://api.example.com
).Once your target is set up:
ZeroThreat offers four options for importing your API collection:
Source Type | Description |
---|---|
Swagger File / URL | Upload a Swagger file or provide a public Swagger URL. |
OpenAPI File | Upload an OpenAPI (OAS) YAML or JSON file. |
Postman API | Import directly from a Postman collection. |
HAR File | Upload a HAR (HTTP Archive) file from captured API traffic. |
In this example, let’s choose Swagger File:
After parsing:
Before saving:
Fill those API requests that have missing values in JSON with proper data. 3. Once everything is configured and reviewed: Click “Save”.
Your collection is now ready to use.
You can proceed to run an Unauthenticated API Scan or, if your APIs require authentication, configure API Authentication settings for this collection.
Ready to scan? Continue to Unauthenticated API Scan.
Your APIs need authentication to access? Learn how to set up Authenticated API Scans.