Doing UI testing instead? See the UI Quickstart.
Step 1: Project Setup
From All Projects, click New Project. The form has three steps: Basics, Access details, and Extra Context. On Basics, set the Test Type to Backend API, then enter your Base Endpoint and a project name.
Step 2: Review Discovered Endpoints
On Access details, click Upload API docs (OpenAPI, Swagger, Postman, or free-form docs). Discovery starts as soon as the file is uploaded, and your endpoints appear grouped by resource family in the Set Up Your Tests dialog.
Step 3: PRD Upload & Extra Instructions
On Extra Context, choose I have a PRD and upload your PRD (strongly recommended; any product-spec document works). Optionally, add Extra Instructions to steer what gets tested, such as “skip /admin” or “focus on the checkout flow”. Then click Create project.
Step 4: Feature & Use-Case Extraction
The new project opens on Test Coverage, with a flow graph of the features TestSprite found in your PRD and API docs and the use cases under each. Test cases are scoped to these use cases. Click Regenerate from sources to redo the analysis, for example after editing the file.
Step 5: Review and Adjust the Plan
Click Plan Tests and TestSprite’s testing agent plans the tests, grouped by use case and covering categories such as functional / happy path, authorization, error handling and edge cases, and (where relevant) boundary / load and security probes.
Step 6: Watch Tests Generate and Run
TestSprite generates a Python test per plan row, verifies each one, and runs them against your API. Each row shows Planned, Running, Passed, Failed, or Blocked. Tests that depend on each other run in the right order; see Dependency Chains.
Step 7: Review and Refine
Click any test to open its detail page: the generated Code, its Stdout (the HTTP calls and what your API returned), the error trace where an assertion failed, and an AI cause-and-fix suggestion. To change a test, edit its description and click Regenerate.

Step 8: Cleanup Runs Automatically
After the run, TestSprite removes the records your tests created (users, orders, sessions) so the next run starts fresh. The run’s Cleanup tab shows what got deleted. See Auto Cleanup.Step 9: Rerun and Schedule
To run again, use Run test on a single test or Run all on the Test Cases toolbar. See Rerun, and set up Auto-Auth so tokens refresh before every run.Where to Go Next
API Discovery
Deep dive on the discovery phase
Plan Generation & Editing
The mechanics of plan review
Integration Tests
Multi-step workflows that chain endpoints
Test Schedules
Run on a cadence to catch regressions