QAPI Agent is a powerful Visual Studio Code extension for API testing and development, featuring AI-powered assertion generation and an intelligent agentic assistant to streamline your API testing workflow.
Features
🚀 Core API Testing
Interactive API Testing: Send HTTP requests directly from VS Code with a beautiful, intuitive interface
Complete Request Builder: Configure headers, parameters, body, form data, and authentication with ease
Response Viewer: View and analyze API responses with syntax highlighting and formatting
Method Color Coding: Instantly recognize HTTP methods with color-coded badges (GET/POST/PUT/DELETE/PATCH)
🤖 AI-Powered Features
AI Assertion Generation: Automatically generate intelligent test assertions from API responses
Agentic Chat: Real-time conversational AI assistant for API testing guidance and code analysis
Code Selection Context: Select code to directly create tests, mocks, or audits with full context sent to the agent
📥 Import Capabilities
cURL Import: Import existing cURL commands to quickly create API tests (auto-saved)
Swagger/OpenAPI Import: Import API collections from OpenAPI specification URLs or files
Postman Collection Import: Import directly from Postman Collection URLs or JSON files
Drag-and-Drop Upload: Simply drag your API specification files to import
✅ Assertions & Validation
Multiple Assertion Types:
Header assertions
Body content assertions (contains/does not contain)
JSON Path assertions with 8 operators (equal to, contains, greater than, etc.)
JSON Schema validation
Live Editing: All assertions are editable with inline controls
AI-Suggested Assertions: Review, accept, or modify AI-generated assertions
🎨 Developer Experience
CodeLens Integration: See route information inline in your code (supports Express.js, C#, Python Flask/FastAPI)
Code Actions: Quick access to QAPI actions via the lightbulb menu (Quick Fix)
Theme Support: Full light and dark mode support matching your VS Code theme
Workspace Management: Organize your API tests into projects and workspaces
Getting Started
Install the QAPI Agent extension from the VS Code Marketplace
Open the QAPI sidebar from the activity bar (QAPI icon)
Login with your QAPI Cloud credentials
Select a workspace to start testing
Create or import API tests and start sending requests
Usage
Creating API Tests
Click the "+" button in the sidebar
Choose from:
Create Manually - Build a new request from scratch
Import cURL - Paste a cURL command
Import Collection - Import from Swagger, Postman, or OpenAPI
Configure your request URL, method, headers, and body
Click "Send" to execute the request
View the response in the built-in response viewer
Importing API Collections
Click "+" → "Import Collection"
Select source type: Swagger / OpenAPI or Postman Collection
Choose import method:
Import from URL: Paste your public API specification URL
Upload File: Drag & drop or browse for JSON/YAML files
Select which endpoints to import (all selected by default)
Click "Import Selected" to add to your workspace
Using Agentic Chat
Switch to the "Agentic" tab in the sidebar
Type your question or request (e.g., "Create a test for this login endpoint")
Optionally, select code in your editor first to provide context
The AI assistant will respond with guidance, code, or test suggestions
Generating Assertions
Send a successful API request (2xx response)
Click "Generate Assertions" in the response panel
Review the AI-generated assertions in the modal
Select/deselect individual assertions as needed
Click "Accept Selected" to add them to your test
Managing Assertions
Toggle assertions on/off using checkboxes
Edit assertion values inline
Add new assertions with the "+" buttons in each category
Delete assertions with the trash icon (appears on hover)