Skip to main content

๐Ÿงช 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

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.