Qualflare API
The Qualflare REST API at api.qualflare.com/api/v1: authenticate with a project access token, page and sort lists, and find each endpoint and the MCP server.
Last updated
The Qualflare API is a REST API at https://api.qualflare.com/api/v1 that reads and changes the data of one project, the one the project access token you send belongs to.
| Base URL | https://api.qualflare.com/api/v1 |
| Authentication | Authorization: Bearer $QF_TOKEN with a project access token |
| Format | JSON; send Content-Type: application/json with a body |
| Project | The one the token belongs to; no route takes a project ID |
| Reads | Any token. Token creator: Viewer+ · project (requires the Viewer role or higher in the project) |
| Uploads | Any token. Token creator: Editor+ · project (requires the Editor role or higher in the project) |
| Other writes | A token created with Allow writes. Token creator: Editor+ · project (requires the Editor role or higher in the project) |
| Limits | Rate limits and request sizes |
| Errors | Errors and status codes |
Authentication
Send a project access token (create one) as Authorization: Bearer <token>, or in a QF_TOKEN header (the one the qf CLI sends) or an Access-Token header. A request with no token gets 401 and access token is required, and a wrong, revoked or expired token gets 401 and invalid or expired access token. The API is for servers, CI jobs and scripts: it sends CORS headers only for Qualflare's own web apps, so a web page on your own site can't call it.
Make your first request
This request lists the test suites of the token's project.
GET /api/v1/suites
Needs a project access token whose creator has the Viewer role or higher in the project.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
page | query, integer | 1 | No | Page number, 1 to 1,000 |
q | query, string | No | Text to look for in suite names and descriptions, up to 255 characters | |
sortBy | query, string | No | seq, name, priority, createdAt, updatedAt, caseCount, teamName or coverageScore | |
sortDir | query, boolean | false | No | true sorts in descending order |
curl -sS "https://api.qualflare.com/api/v1/suites?page=1" \
-H "Authorization: Bearer $QF_TOKEN"Returns 200: A page of suites: items and paging, 20 suites per page.
Conventions
- Records are addressed by their number in the project, the
seqQualflare shows on them, such as/api/v1/suite/12. A failure cluster uses itsid(Find a record's number). - Paginated lists return
itemsandpaging(page,pages,perPage,totalItems).pagetakes 1 to 1,000 and defaults to 1. Each resource has its own fixed page size. sortBytakes the fields each resource lists, andsortDir=truesorts in descending order. Launches and defects come back newest first by default.- Responses carry an
X-Request-Idheader. Quote it when you contact support.
Versioning
Every REST API route starts with /api/v1.
Check that the API answers
GET https://api.qualflare.com/health needs no token and answers {"status":"ok"}.
curl -fsS https://api.qualflare.com/healthAPI pages
- Access Tokens: create, use and revoke the token every request sends.
- Upload results with the API: send results, CTRF reports and large attachments over HTTP.
- Suites API: list and read suites, and analyze and save their coverage.
- Cases and steps API: read, create and update test cases and their steps.
- Launches API: list and read launches, and export one as CTRF.
- Test plans API: list and read test plans and their cases.
- Defects API: list, read, create and update defects.
- Milestones API: list and read milestones and their result counts.
- Failure clusters API: list and read failure clusters and sample failures.
- Public reports and badges: the badge, banner, social images and JSON of a published report.
- Errors and status codes: the error body, each status and code, and what to retry.
- Rate limits and request sizes: requests per second, body sizes and upload caps.
- Connect a coding agent (MCP): point Claude Code, Cursor or another MCP client at Qualflare.
- MCP server reference: the MCP tools, their permissions and errors.
Related
- Guides: Upload results with qf collect
- Reference: Query project data from the CLI
- CLI/API: qf login and identifiers
- Changelog: What's new in Qualflare: July 2026
Webhooks
Set up Qualflare project webhooks to get a signed HTTP POST when test results are uploaded or a defect is created, with payloads, headers and retries.
Access Tokens
Create, use and revoke Qualflare project access tokens (qfp_), the API keys of the qf CLI, scripts and MCP agents. New tokens expire after at most 90 days.