Use the API Discovery Agent to quickly import your APIs — so you can start generating tests immediately.

Add Collection Gi

3 Ways to Import

1. Upload Swagger or Postman

  • Visit the AI Agent
  • Click the top-left “Add Collection” dropdown
  • Upload:
    • .postman_collection.json
    • swagger.yaml or swagger.json

→ Qodex will automatically parse and activate the collection.

To learn more, check out: Uploading a Swagger or Postman Collection

2. Auto-Discover with Qodex SDK

Don’t have a spec? No problem.

Run our one-line script to extract live API data from your backend and convert it into a Swagger collection:

curl -sSL https://raw.githubusercontent.com/qodex-ai/swagger-bot/refs/heads/main/run.sh -o script.sh && chmod +x script.sh && ./script.sh --project-api-key YOUR_PROJECT_KEY

→ Your API spec will be uploaded and added to Qodex automatically.

To learn more, check out: Auto-discovering APIs with Qodex SDK

3. Select an Existing Collection

If you’ve already uploaded collections:

  • Open the collection selector (top-left dropdown on AI Agent page)
  • Choose from any of your previously imported collections

To learn more, check out: Selecting an Existing Collection

As soon as a collection is selected, Qodex activates the endpoints and gets ready to generate tests. Continue to Test Scenario Creation Agent to start writing your first tests.