๐งช AI-Powered API Test Generationโ
Keploy enables you to automatically generate comprehensive API test suites for your application using AI, based on live requests, API schemas, and supporting documentation.
๐ Create API Tests in 4 Simple Stepsโ
1๏ธโฃ Create a New Appโ
Start by creating a new test project for your application:
- Click on "Create New App"
- Give it a name that matches your app/module
- Optionally provide a description
2๏ธโฃ Input URL or Endpointโ
Provide a base URL or a specific API endpoint you want to test:
This helps Keploy identify where the API requests are sent and initiate context-aware test generation.
3๏ธโฃ Add Test Inputsโ
๐ Authentication (Optional)โ
If your API requires authentication, make sure you:
- Add API keys or bearer tokens in headers
- Or include auth flows via test inputs below
๐ Paste cURL Snippets (Recommended: 3โ5)โ
Add working curl commands representing real user flows. These help the AI infer request types, payloads, and expected outcomes.
curl -X POST https://your-api.com/login -d 'username=john&password=secret'
curl -X GET https://your-api.com/users
curl -X PUT https://your-api.com/users/1 -d 'username=john&role=admin'
๐ Swagger / OpenAPI Schemaโ
Paste your OpenAPI (Swagger) spec in either YAML or JSON format.
This schema provides a contract for how endpoints behave and enables accurate, schema-driven test generation.
4๏ธโฃ Upload Supporting Resources (Optional but Valuable)โ
Enhance test accuracy by uploading documentation such as:
- ๐งพ API Docs (Postman collections, Swagger files)
- ๐ป Code Snippets
- ๐ PRD/BRD documents
- ๐ Feature briefs or requirement docs
These help Keploy better understand the intended logic and behavior of each endpoint.