Skip to Content
Endpoints

Projects

Get, create and update projects in your account, and list their users

The projects endpoints let you retrieve, create and update projects in your account, and list the users who can access them.

Authentication

Project visibility will depend if the user has proper access to the project. If you are the owner or an admin, you may grant access to users to a project by going to your QA Sphere account, then go to the Members page in settings to grant access to the user.

List Projects

GET/api/public/v0/project/paginated

/paginated endpoints are transitional. In API v1, the base paths will return paginated responses and the /paginated suffix will be removed.

Returns a list of all projects.

Query Parameters

ParameterTypeDescriptionDefaultExample
archivedbooleanFilter projects by archived state.No filterarchived=false
offsetnumberNumber of items to skip.0offset=10
limitnumberMaximum number of items to return. Accepted range: 0–1,000.100limit=20
sortFieldstringField to sort by: code, title, created_at or updated_at.titlesortField=title
sortOrderstringSort direction for sortField: asc or desc.ascsortOrder=asc

Response

Status: 200 OK

{
  total: number                  // Number of matching projects across all pages
  offset: number                 // Offset applied to this response
  limit: number                  // Limit applied to this response
  data: Array<{                  // Projects in this page
    id: string                   //   Project ID
    code: string                 //   Code of the project
    title: string                //   Title of the project
    description: html            //   Description of the project (Deprecated: use overviewDescription)
    overviewTitle: string        //   Title of the project's overview page
    overviewDescription: html    //   Description on the project's overview page
    links: Array<{               //   Links shown on the project's overview page
      text: string               //     Title of the link
      url: string                //     URL of the link
    }>
    createdAt: datetime          //   Creation time
    updatedAt: datetime          //   Last update time
    archivedAt: datetime | null  //   Archive time, null if not archived
  }>
}

Example Request

curl \
  -H "Authorization: ApiKey your.api.key.here" \
  https://your-company.your-region-code.qasphere.com/api/public/v0/project/paginated

Example Response

{
  "total": 1,
  "offset": 0,
  "limit": 100,
  "data": [
    {
      "id": "1CJo8oDjj_vkGo2rQAdzz4F",
      "code": "BD",
      "title": "Bistro Delivery",
      "description": "<p>Welcome to the <strong>Bistro Delivery</strong> example project. This project showcases a typical food ordering website with features like a menu, shopping cart, and order process. We've included basic test cases, organized by type, tags, and priorities, along with test runs to demonstrate how QA Sphere can streamline your testing workflow.</p>",
      "overviewTitle": "Bistro Delivery - Example",
      "overviewDescription": "<p>Welcome to the <strong>Bistro Delivery</strong> example project. This project showcases a typical food ordering website with features like a menu, shopping cart, and order process. We've included basic test cases, organized by type, tags, and priorities, along with test runs to demonstrate how QA Sphere can streamline your testing workflow.</p>",
      "links": [
        {
          "text": "Bistro Delivery Site",
          "url": "https://hypersequent.github.io/bistro/"
        },
        {
          "text": "Automation Tests",
          "url": "https://github.com/Hypersequent/bistro-e2e"
        },
        {
          "text": "QA Sphere CLI Tool",
          "url": "https://github.com/Hypersequent/qas-cli"
        }
      ],
      "createdAt": "2025-01-02T11:41:19.547371+04:00",
      "updatedAt": "2025-01-02T11:41:19.547371+04:00",
      "archivedAt": null
    }
  ]
}

List Projects (Deprecated)

Deprecated

This endpoint is deprecated. Use List Projects (GET /api/public/v0/project/paginated) instead.

GET/api/public/v0/project

Returns a list of all projects.

Response

Status: 200 OK

{
  projects: Array<{              // A list of projects
    id: string                   //   Project ID
    code: string                 //   Code of the project
    title: string                //   Title of the project
    description: html            //   Description of the project (Deprecated: use overviewDescription)
    overviewTitle: string        //   Title of the project's overview page
    overviewDescription: html    //   Description on the project's overview page
    links: Array<{               //   Links shown on the project's overview page
      text: string               //     Title of the link
      url: string                //     URL of the link
    }>
    createdAt: datetime          //   Creation time
    updatedAt: datetime          //   Last update time
    archivedAt: datetime | null  //   Archive time, null if not archived
  }>
}

Example Request

curl \
  -H "Authorization: ApiKey your.api.key.here" \
  https://your-company.your-region-code.qasphere.com/api/public/v0/project

Example Response

{
  "projects": [
    {
      "id": "1CJo8oDjj_vkGo2rQAdzz4F",
      "code": "BD",
      "title": "Bistro Delivery",
      "description": "<p>Welcome to the <strong>Bistro Delivery</strong> example project. This project showcases a typical food ordering website with features like a menu, shopping cart, and order process. We've included basic test cases, organized by type, tags, and priorities, along with test runs to demonstrate how QA Sphere can streamline your testing workflow.</p>",
      "overviewTitle": "Bistro Delivery - Example",
      "overviewDescription": "<p>Welcome to the <strong>Bistro Delivery</strong> example project. This project showcases a typical food ordering website with features like a menu, shopping cart, and order process. We've included basic test cases, organized by type, tags, and priorities, along with test runs to demonstrate how QA Sphere can streamline your testing workflow.</p>",
      "links": [
        {
          "text": "Bistro Delivery Site",
          "url": "https://hypersequent.github.io/bistro/"
        },
        {
          "text": "Automation Tests",
          "url": "https://github.com/Hypersequent/bistro-e2e"
        },
        {
          "text": "QA Sphere CLI Tool",
          "url": "https://github.com/Hypersequent/qas-cli"
        }
      ],
      "createdAt": "2025-01-02T11:41:19.547371+04:00",
      "updatedAt": "2025-01-02T11:41:19.547371+04:00",
      "archivedAt": null
    }
  ]
}

Get Project

GET/api/public/v0/project/{project_code_or_id}

Returns the project identified by code or id.

Query Parameters

ParameterTypeDescriptionDefaultExample
includestringInclude additional fields omitted by default. Accepted values: stats.Noneinclude=stats

Response

Status: 200 OK

{
  id: string                          // Project ID
  code: string                        // Code of the project
  title: string                       // Title of the project
  description: html                   // Description of the project (Deprecated: use overviewDescription)
  overviewTitle: string               // Title of the project's overview page
  overviewDescription: html           // Description on the project's overview page
  links: Array<{                      // Links shown on the project's overview page
    text: string                      //   Title of the link
    url: string                       //   URL of the link
  }>
  createdAt: datetime                 // Creation time
  updatedAt: datetime                 // Last update time
  archivedAt: datetime | null         // Archive time, null if not archived
  teamMembers: Array<{                // The project's team, as shown on its overview page, in display order
    role: string                      //   The member's role in the team, as free text (e.g., QA lead)
    user: {
      id: number                      //     User ID
      email: string                   //     Email address of the user
      name: string                    //     Name of the user
      avatar: string | null           //     Absolute URL of the avatar, null if none; fetching it requires authentication
      role: string                    //     Workspace role (`owner` | `admin` | `user` | `test-runner` | `viewer`)
    }
  }>
  stats?: {                           // Counts and latest activity of the project; only with `include=stats`
    tcases: {
      count: number                   //   Number of standalone and template test cases
      lastUpdatedAt: datetime | null  //   When a test case was last created or updated, null if none
    }
    runs: {
      count: number                   //   Number of runs; each run of a test plan counts on its own
      open: number                    //   Number of open runs
      closed: number                  //   Number of closed runs
      lastCreatedAt: datetime | null  //   When the newest run was created, null if none
    }
    results: {
      lastCreatedAt: datetime | null  //   When the newest result was added, null if none
    }
  }
}

teamMembers is a list picked by hand. It grants no access and isn't everyone who can access the project; for that, see List Project Users.

Filled test cases belong to their template, so only standalone and template test cases are counted. Deleted test cases and runs are left out, and so are results of deleted runs.

Example Request

curl \
  -H "Authorization: ApiKey your.api.key.here" \
  https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD

With the stats:

curl \
  -H "Authorization: ApiKey your.api.key.here" \
  "https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD?include=stats"

Example Response

{
  "id": "1CJo8oDjj_vkGo2rQAdzz4F",
  "code": "BD",
  "title": "Bistro Delivery",
  "description": "<p>Welcome to the <strong>Bistro Delivery</strong> example project. This project showcases a typical food ordering website with features like a menu, shopping cart, and order process. We've included basic test cases, organized by type, tags, and priorities, along with test runs to demonstrate how QA Sphere can streamline your testing workflow.</p>",
  "overviewTitle": "Bistro Delivery - Example",
  "overviewDescription": "<p>Welcome to the <strong>Bistro Delivery</strong> example project. This project showcases a typical food ordering website with features like a menu, shopping cart, and order process. We've included basic test cases, organized by type, tags, and priorities, along with test runs to demonstrate how QA Sphere can streamline your testing workflow.</p>",
  "links": [
    {
      "text": "Bistro Delivery Site",
      "url": "https://hypersequent.github.io/bistro/"
    },
    {
      "text": "Automation Tests",
      "url": "https://github.com/Hypersequent/bistro-e2e"
    },
    {
      "text": "QA Sphere CLI Tool",
      "url": "https://github.com/Hypersequent/qas-cli"
    }
  ],
  "createdAt": "2025-01-02T11:41:19.547371+04:00",
  "updatedAt": "2025-01-02T11:41:19.547371+04:00",
  "archivedAt": null,
  "teamMembers": [
    {
      "role": "Project admin",
      "user": {
        "id": 1,
        "email": "jane@example.com",
        "name": "Jane Doe",
        "avatar": null,
        "role": "owner"
      }
    }
  ]
}

Create Project

POST/api/public/v0/project

Creates a new project. Only users with role Admin or Owner are allowed to create a project.

Request Body

{
  code: string                // Unique project code (2–5 alphanumeric characters)
  title: string               // Title of the project (max 255 characters)
  links?: Array<{             // Links for the project overview
    text: string              //   Title of the link (1–255 characters)
    url: string               //   URL of the link (http or https, max 255 characters)
  }>
  overviewTitle?: string      // Overview title (max 255 characters)
  overviewDescription?: html  // Overview description
}

Example Request

curl -X POST \
  -H "Authorization: ApiKey your.api.key.here" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "BD",
    "title": "Bistro Delivery",
    "links": [
      {"url": "https://hypersequent.github.io/bistro/", "text": "Bistro Delivery Site"},
      {"url": "https://github.com/Hypersequent/bistro-e2e", "text": "Automation Tests"}
    ],
    "overviewTitle": "Bistro Delivery - Example",
    "overviewDescription": "<p>Welcome to the <strong>Bistro Delivery</strong> example project. This project showcases a typical food ordering website with features like a menu, shopping cart, and order process.</p>"
  }' \
  https://your-company.your-region-code.qasphere.com/api/public/v0/project

Response Fields

{
  id: string  // Project ID
}

Example Response

Status: 201 Created

{
  "id": "1CJo8oDjj_vkGo2rQAdzz4F"
}

Error Responses

Status CodeDescription
409Project with the same title already exists

Update Project

PATCH/api/public/v0/project/{project_code_or_id}

Changes a project's title, overview, links or team, or archives or unarchives it. Only users with role Admin or Owner can update a project. It also works on an archived project: the changes are applied and the project stays archived, unless archived is false.

Request Body

{
  title?: string              // New title (1–255 characters), unique among projects
  archived?: boolean          // `true` archives the project, `false` unarchives it
  overviewTitle?: string      // New overview title (max 255 characters)
  overviewDescription?: html  // New overview description
  links?: Array<{             // Replaces the links shown on the overview page
    text: string              //   Title of the link (1–255 characters)
    url: string               //   URL of the link (http or https, max 255 characters)
  }>,
  teamMembers?: Array<{       // Replaces the project's team, shown on its overview page
    userId: number            //   A user with access to the project (see List Project Users)
    role: string              //   The member's role in the team, as free text (1–255 characters)
    pos: number               //   Position in the team, lowest first
  }>
}
  • Omitted fields are left unchanged. links and teamMembers replace the whole list; [] clears it.
  • The team grants no access. A user who loses access to the project is removed from it.
  • The overview description is also the prompt of the project's Project info AI rule, unless that rule has its own text.

Archiving makes everything in the project read-only: its test cases, runs and other content can't be changed until it is unarchived. This endpoint is the only write that still works on an archived project.

Response

Status: 200 OK

The updated project, as Get Project returns it.

Errors

Status CodeDescription
400A team member has no access to the project or is listed twice
409A project with the same title exists

List Project Users

GET/api/public/v0/project/{project_code_or_id}/users

Returns the users who can access the project: owners, admins, and users given access to it or to all projects. Any user with access to the project can list them. Team members come first, in team order.

This is everyone with access, not the project's team (teamMembers in Get Project).

Query Parameters

ParameterTypeDescriptionDefaultExample
rolesstringFilter by workspace role. Repeat the parameter for multiple values. Accepted values: owner, admin, user, test-runner or viewer.No filterroles=user

Response

Status: 200 OK

{
  users: Array<{
    id: number             //   User ID
    email: string          //   Email address of the user
    name: string           //   Name of the user
    avatar: string | null  //   Absolute URL of the avatar, null if none; fetching it requires authentication
    role: string           //   Workspace role (`owner` | `admin` | `user` | `test-runner` | `viewer`)
  }>
}