By the end of this guide you’ll have an API project that’s been discovered, planned, generated as Python tests, and executed against your live API, with full request/response capture for every call. No code on your side.Documentation Index
Fetch the complete documentation index at: https://docs.testsprite.com/llms.txt
Use this file to discover all available pages before exploring further.
Doing UI testing instead? See the UI Quickstart for the frontend-flavored walkthrough.
Step 1: Project Setup & PRD Upload
From the dashboard, click Create Tests. The first screen asks for two things only: a project name and your PRD (or any product-spec document — markdown, PDF, plain text all work).
Step 2: Feature & Use-Case Extraction
If you uploaded a PRD, TestSprite analyzes it and shows the Use Cases & Features screen with a flow graph of every feature it identified and the use cases under each.
If you skipped the PRD upload, this step is bypassed and the wizard goes straight to configuration.
Step 3: Choose Test Type and Configure
Pick the test type tab — Backend (APIs) for this API walkthrough — then provide your base URL, API documentation, auth type, and any extra testing instructions.
| Field | What to provide |
|---|---|
| Base URL | The base URL TestSprite will hit |
| API Documentation | OpenAPI / Swagger / Postman collections, or any free-form docs |
| Authentication Type | Basic, Bearer, API-key, or None — applied per API family |
| Extra testing instructions | Free-form hints — e.g. “skip /admin”, “focus on the checkout flow” |
Step 4: Review Discovered Endpoints
Once discovery completes, you’ll see your endpoints grouped by resource family in an expandable table.
- Remove an endpoint — Click the × at the end of the row. Useful for internal-only endpoints, deprecated paths, or anything outside your test scope.
- Adjust the method or path — Click the row to edit if the inferred path template is wrong.
- Set the auth type per family — Use the Authentication Type dropdown. Choices: Basic, Bearer, API-key, None.
Step 5: Review and Adjust the Plan
TestSprite drafts a comprehensive plan organized by category — typically functional / happy path, authorization & auth, error handling & edge cases, and (where relevant) boundary / load and security probes. Categories are picked based on what each endpoint does.
Step 6: Watch Tests Generate and Run
TestSprite generates a Python test per plan row, verifies each one before it lands in your suite, and executes them against your API. Tests stream into the project view as they finish.
Step 7: Review and Refine
Click any test row to open its detail page. You get the request panel (exact HTTP call we made), response panel (what your API returned), error trace (where the assertion failed), and an AI cause-and-fix suggestion for failures.

Step 8: Cleanup Runs Automatically
After the run finishes, TestSprite removes the records your tests created (users, orders, sessions) so subsequent runs start fresh. The Cleanup tab shows what got deleted.Auto Cleanup
How records created during a run get removed afterward
Step 9: Rerun and Schedule
To re-execute, use Rerun on a single test or Rerun all on the project toolbar. The Skip dependencies toggle in the rerun dialog lets you re-execute one test in isolation against cached upstream values — fast iteration when you’ve just refined an assertion.Rerun
Single test, batch, scheduled — and when to skip dependencies
Auto-Auth (Pro)
Auto-refresh login tokens 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
Schedule Monitoring
Run on a cadence to catch regressions