> ## 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.

# Quickstart

> Walk through your first API project end to end, from project creation to a passing HTTP suite, in about 10 minutes.

By the end of this guide you'll have an API project that's been discovered, planned, generated as Python tests, and run against your live API, with every request and response captured. No code on your side.

> [!NOTE]
>
> **Doing UI testing instead?** See the [UI Quickstart](https://docs.testsprite.com/web-portal/core/ui/quickstart.md).

## Step 1: Project Setup

From **All Projects**, click <kbd>New Project</kbd>. The form has three steps: **Basics**, **Access details**, and **Extra Context**. On **Basics**, set the **Test Type** to <kbd>Backend API</kbd>, then enter your **Base Endpoint** and a **project name**.

![The Basics step of the New Project form, with Backend API selected, Base Endpoint, and Project Name](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-quick-start-configure.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=d4df1072dd0d9b7fe6bb15448ca61bc3)

## Step 2: Review Discovered Endpoints

On **Access details**, click <kbd>Upload API docs</kbd> (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.

![Discovered endpoint list](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-quick-start-discover-endpoint.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=5c5f7df6e35cfa50864d1ee941f329bc)

For each endpoint you can remove it (trash icon), fix its path (click the row), and set its **Authentication Type**: **Basic**, **Bearer**, **API-key**, or **None**. If discovery missed one, click <kbd>Add API</kbd>; with no docs at all, use <kbd>Add Endpoints Manually</kbd> on **Access details** instead.

When you're done, click <kbd>Save N endpoints</kbd> and continue to **Extra Context**.

## Step 3: PRD Upload & Extra Instructions

On **Extra Context**, choose <kbd>I have a PRD</kbd> and upload your **PRD** (**strongly recommended**; any product-spec document works). Optionally, add <kbd>Extra Instructions</kbd> to steer what gets tested, such as *"skip /admin"* or *"focus on the checkout flow"*. Then click <kbd>Create project</kbd>.

![The Extra Context step: Test Sources with the PRD upload, and Advanced Context with Test Files](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-extra-context.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=71a456f4f85e673c5fdc07766cbe75cf)

> [!TIP]
>
> **PRDs aren't only for UI.** They let TestSprite test the *intent* of each endpoint, not just its shape: "covers the order-placement scenarios your product supports", not just "covers `POST /orders`". Skip it for a quick demo; upload one for real coverage.

## 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 <kbd>Regenerate from sources</kbd> to redo the analysis, for example after editing the file.

![Use-case flow graph on Test Coverage, extracted from the PRD](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-quick-start-use-case.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=9b1ff872becec836b5bc6c62cf925fdf)

## Step 5: Review and Adjust the Plan

Click <kbd>Plan Tests</kbd> 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.

![API plan review](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-quick-start-review-plan.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=33e53fef808116269ea7887f49103ee5)

Untick any tests that don't apply, edit titles or descriptions in natural language, and click <kbd>Run all</kbd>. On a first run, keeping everything selected is usually right; if a use case has more tests than you want, untick individual low-value ones rather than the whole use case.

## 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 <kbd>Planned</kbd>, <kbd>Running</kbd>, <kbd>Passed</kbd>, <kbd>Failed</kbd>, or <kbd>Blocked</kbd>. Tests that depend on each other run in the right order; see [Dependency Chains](https://docs.testsprite.com/web-portal/core/api/dependency-chains.md).

![API tests executing](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-quick-start-review-run.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=b709508a0f022a1257203140852ae193)

## 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 <kbd>Regenerate</kbd>.

![API test detail page](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-quick-start-review-result.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=2cc2d0446bb60a7fb3b8e9d04a329228)

The run's **Test Report** rolls up pass / fail / blocked counts with cause-and-fix highlights, ready to share with the team.

![Test Report summary view](https://mintcdn.com/testspriteinc/TFcog-WNvgZBB09l/images/api-testing-quick-start-report.png?fit=max\&auto=format\&n=TFcog-WNvgZBB09l\&q=85\&s=3260da6b054192c0c3647e4f762b9a77)

## 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](https://docs.testsprite.com/web-portal/core/api/auto-cleanup.md).

## Step 9: Rerun and Schedule

To run again, use <kbd>Run test</kbd> on a single test or <kbd>Run all</kbd> on the **Test Cases** toolbar. See [Rerun](https://docs.testsprite.com/web-portal/core/api/api-rerun.md), and set up [Auto-Auth](https://docs.testsprite.com/web-portal/core/api/auto-auth.md) so tokens refresh before every run.

## Where to Go Next

> [card] [API Discovery](https://docs.testsprite.com/web-portal/core/api/api-discovery.md)
>
> Deep dive on the discovery phase

> [card] [Plan Generation & Editing](https://docs.testsprite.com/web-portal/core/api/api-plan-gen.md)
>
> The mechanics of plan review

> [card] [Integration Tests](https://docs.testsprite.com/web-portal/core/api/integration-tests.md)
>
> Multi-step workflows that chain endpoints

> [card] [Test Schedules](https://docs.testsprite.com/web-portal/maintenance/monitoring.md)
>
> Run on a cadence to catch regressions


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.