{
  "info": {
    "name": "QualityMax — Browse projects and test results",
    "description": "Read-only examples for the QualityMax REST API. Documentation: https://docs.qualitymax.io/reference/ — Website: https://qualitymax.io/\n\nCreate a token in Settings → API Tokens and store it in Postman Local Vault as qualitymax-token, restricted to app.qualitymax.io. The collection references the vault secret; it contains no credentials. Run List projects first, then set projectId from an accessible project. Run List automation scripts and set scriptId from a script in that project. List requests use limit and offset. These requests do not create tests or launch paid executions. Do not save private responses as public examples.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{vault:qualitymax-token}}", "type": "string" }]
  },
  "variable": [
    { "key": "baseUrl", "value": "https://app.qualitymax.io", "type": "string" },
    { "key": "projectId", "value": "", "type": "string" },
    { "key": "scriptId", "value": "", "type": "string" },
    { "key": "limit", "value": "20", "type": "string" },
    { "key": "offset", "value": "0", "type": "string" }
  ],
  "item": [
    {
      "name": "1. List projects",
      "request": {
        "method": "GET",
        "header": [{ "key": "Accept", "value": "application/json" }],
        "url": "{{baseUrl}}/api/projects?limit={{limit}}&offset={{offset}}",
        "description": "List projects accessible to your account. Copy a project id into projectId."
      }
    },
    {
      "name": "2. Get project",
      "request": {
        "method": "GET",
        "header": [{ "key": "Accept", "value": "application/json" }],
        "url": "{{baseUrl}}/api/projects/{{projectId}}",
        "description": "Read one accessible project using the projectId variable."
      }
    },
    {
      "name": "3. List test cases",
      "request": {
        "method": "GET",
        "header": [{ "key": "Accept", "value": "application/json" }],
        "url": "{{baseUrl}}/api/test-cases/project/{{projectId}}?limit={{limit}}&offset={{offset}}",
        "description": "Browse test cases in the selected project. Increase offset to read the next page."
      }
    },
    {
      "name": "4. List automation scripts",
      "request": {
        "method": "GET",
        "header": [{ "key": "Accept", "value": "application/json" }],
        "url": "{{baseUrl}}/api/automation/scripts/project/{{projectId}}?limit={{limit}}&offset={{offset}}",
        "description": "Browse script metadata in the selected project. Copy a script id into scriptId."
      }
    },
    {
      "name": "5. List script results",
      "request": {
        "method": "GET",
        "header": [{ "key": "Accept", "value": "application/json" }],
        "url": "{{baseUrl}}/api/automation/results/script/{{scriptId}}?limit={{limit}}&offset={{offset}}",
        "description": "Read existing execution results for the selected script. This does not start an execution."
      }
    }
  ]
}
