{
  "openapi": "3.0.0",
  "info": {
    "title": "TaptiPM API — API tokens and MCP",
    "version": "1.0.0",
    "description": "The TaptiPM REST API for **workspace API tokens**: project management (projects, sprints, stories, tasks, bugs, comments), quality (test library, cycles, CI results) and the two MCP servers that AI assistants in IDEs connect to.\n\n## Authentication\nCreate a token in **Settings › API tokens** (shown once) and send it on every request: `Authorization: Bearer $TAPTIPM_API_TOKEN`. A token belongs to one workspace and acts as the person who created it, with only the scopes it carries — never more than that person may do in the app, re-checked on every call. Every token expires. Tokens are never accepted in a URL.\n\n## Where API tokens work\nAPI tokens work on the MCP endpoints and on the REST routes listed in this reference only: `/integrations/pm/…` for project management, the `/quality/…` routes shown here, and `/api-tokens/whoami`. Every other route of the TaptiPM web app (for example `GET /sprints/{id}` or `/projects`) belongs to the app's own screens and refuses API tokens with `403`, whatever scopes the token has. This is by design: those routes are shaped for the signed-in app, take internal ids, and are not covered by token scopes, project restrictions or this reference. Use the documented equivalent instead — for example `GET /integrations/pm/sprints/{sprintId}` is the REST twin of the MCP tool `get_sprint`.\n\n## Text encoding\nRequest bodies are JSON encoded as UTF-8 (RFC 8259), with or without `; charset=utf-8` in `Content-Type`. A body that is not valid UTF-8 is refused with `400 INVALID_ENCODING` naming the first invalid byte, so text is never stored with replacement characters (\"�\"). A Windows client that sends Windows-1252 text must encode it as UTF-8 first.\n\n## Scopes\nEach operation lists the scopes that allow it (any one of them, `x-required-scopes`). A token without one gets `403 INSUFFICIENT_SCOPE` and a `WWW-Authenticate` header naming the scope. Project management tokens can also be limited to chosen projects; anything outside answers `404`, exactly like an unknown key.\n\n## Rate limits\n600 requests per minute per token by default. Responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`; a `429` carries `Retry-After` (seconds). Request bodies are limited to 100 KB (`413`).\n\nEvery request is also counted per client address and endpoint: 50 a second, 300 per 10 seconds and 1000 a minute by default. Each MCP tool call is one request, so `create_work_items` (up to 50 items per call) creates 250 stories in 5 calls.\n\n## Pagination\nLists take `page` (from 1) and `pageSize` (at most 50) and answer `{ items, page, pageSize, total, hasMore }`.\n\n## Responses and errors\nSuccessful JSON answers are wrapped as `{ data, meta: { timestamp } }`. Errors answer `{ error: { code, message, details? }, meta: { timestamp, path, requestId } }`; the codes are listed in `x-taptipm-errors`.\n\n## Retries\nCreating work items (one or a batch), epics, sprints and project members, moving many work items to a status, converting a story into a bug, adding comments, and starting or completing sprints accept an `Idempotency-Key` header: a retry with the same key and body returns the first result (24 hours) instead of writing twice.\n\n## MCP\n`POST /mcp` (project management) and `POST /quality/mcp` (quality) speak JSON-RPC 2.0 over Streamable HTTP. Settings › API tokens › Connect to your IDE gives ready-made configurations. The tools are listed in `x-taptipm-mcp`."
  },
  "servers": [
    {
      "url": "https://api.taptipm.com/api/v1",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "API tokens"
    },
    {
      "name": "Integrations · Project management"
    },
    {
      "name": "MCP server"
    },
    {
      "name": "Quality · Automation insights"
    },
    {
      "name": "Quality · Automation results"
    },
    {
      "name": "Quality · Execution"
    },
    {
      "name": "Quality · MCP server"
    },
    {
      "name": "Quality · Story tests"
    },
    {
      "name": "Quality · Test cycles"
    },
    {
      "name": "Quality · Test library"
    }
  ],
  "paths": {
    "/api-tokens/whoami": {
      "get": {
        "operationId": "ApiTokensController_whoami_v1",
        "summary": "The calling API token: workspace, name, prefix, scopes, expiry (call with Bearer tpm_...)",
        "tags": [
          "API tokens"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "{ tenant: { id, name }, token: { id, name, prefix, scopes, expiresAt } }",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "tenant": {
                      "id": "00000000-0000-4000-8000-000000000003",
                      "name": "Example workspace"
                    },
                    "token": {
                      "id": "00000000-0000-4000-8000-000000000004",
                      "name": "CI pipeline",
                      "prefix": "exmpl000",
                      "scopes": [
                        "projects:read",
                        "workitems:read"
                      ],
                      "expiresAt": "2026-04-15T00:00:00.000Z",
                      "projectIds": []
                    }
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/api-tokens/whoami\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/comments/{commentId}": {
      "delete": {
        "operationId": "PmIntegrationController_deleteComment_v1",
        "summary": "Delete a comment written with the token's user's account",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "commentId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: comments:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "comments:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X DELETE \"https://api.taptipm.com/api/v1/integrations/pm/comments/00000000-0000-4000-8000-000000000030\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "patch": {
        "operationId": "PmIntegrationController_editComment_v1",
        "summary": "Edit a comment written with the token's user's account (body: { content })",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "commentId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "content": "Moved to review after the export passed in CI."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: comments:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "comments:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X PATCH \"https://api.taptipm.com/api/v1/integrations/pm/comments/00000000-0000-4000-8000-000000000030\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"content\":\"Moved to review after the export passed in CI.\"}'"
          }
        ]
      }
    },
    "/integrations/pm/epics": {
      "post": {
        "operationId": "PmPlanningController_createEpic_v1",
        "summary": "Create an epic (body: { projectKey | projectId, name, description?, priority?, status? })",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "responses": {
          "201": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: epics:manage), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "epics:manage"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/epics\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/epics/{epicId}": {
      "patch": {
        "operationId": "PmPlanningController_updateEpic_v1",
        "summary": "Change an epic (body: { name?, description?, priority?, status? })",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "epicId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: epics:manage), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "epics:manage"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X PATCH \"https://api.taptipm.com/api/v1/integrations/pm/epics/<epicId>\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/my-work": {
      "get": {
        "operationId": "PmIntegrationController_myWork_v1",
        "summary": "Open work assigned to the token's user (type, includeDone, page, pageSize)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "items": [
                      {
                        "type": "story",
                        "id": "00000000-0000-4000-8000-000000000010",
                        "key": "ABC-12",
                        "title": "Export the monthly report",
                        "status": "in_progress",
                        "priority": "high",
                        "storyPoints": 5,
                        "project": {
                          "id": "00000000-0000-4000-8000-000000000002",
                          "key": "ABC",
                          "name": "Example project"
                        },
                        "sprintId": "00000000-0000-4000-8000-000000000020",
                        "assignee": {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "name": "Example user"
                        },
                        "dueDate": "2026-02-01",
                        "updatedAt": "2026-01-15T09:30:00.000Z",
                        "url": "/browse/ABC-12"
                      }
                    ],
                    "page": 1,
                    "pageSize": 20,
                    "total": 1,
                    "hasMore": false
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/my-work\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/projects": {
      "get": {
        "operationId": "PmIntegrationController_listProjects_v1",
        "summary": "Projects the token can reach (search, page, pageSize)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "{ items: [{ id, key, name, status, methodology, owner, updatedAt }], page, pageSize, total, hasMore }",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "items": [
                      {
                        "id": "00000000-0000-4000-8000-000000000002",
                        "key": "ABC",
                        "name": "Example project",
                        "status": "active",
                        "methodology": "scrum",
                        "owner": {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "name": "Example user"
                        },
                        "updatedAt": "2026-01-15T09:30:00.000Z"
                      }
                    ],
                    "page": 1,
                    "pageSize": 20,
                    "total": 1,
                    "hasMore": false
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: projects:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "projects:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/projects\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/projects/{projectKey}": {
      "get": {
        "operationId": "PmIntegrationController_getProject_v1",
        "summary": "One project by key: members, active sprints, epics, releases, open work counts",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "projectKey",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: projects:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "projects:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/projects/ABC\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/projects/{projectKey}/epics": {
      "get": {
        "operationId": "PmPlanningController_listEpics_v1",
        "summary": "Epics of a project, oldest first, with story counts (status, page, pageSize)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "projectKey",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "{ project, items: [{ id, projectId, name, description, status, priority, ownerId, storyCount, createdAt, updatedAt }], page, pageSize, total, hasMore }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: projects:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "projects:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/projects/ABC/epics\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/projects/{projectKey}/members": {
      "get": {
        "operationId": "PmPlanningController_listMembers_v1",
        "summary": "The team of a project: id, name, e-mail, status, roles (HR-assigned), role owner|member (page, pageSize)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "projectKey",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: projects:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "projects:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/projects/ABC/members\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "post": {
        "operationId": "PmPlanningController_addMember_v1",
        "summary": "Add a person to the project team (body: { userId }; a role is accepted and ignored: the HR role applies); needs projects:members_write in effect",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "projectKey",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "responses": {
          "201": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: members:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "members:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/projects/ABC/members\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/projects/{projectKey}/members/remove": {
      "post": {
        "operationId": "PmPlanningController_removeMember_v1",
        "summary": "Remove a person from the team (body: { userId, openWork?: reassign | unassign | keep, reassignToUserId? }); 409 PROJECT_MEMBER_HAS_OPEN_WORK lists their open items",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "projectKey",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: members:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "members:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/projects/ABC/members/remove\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/projects/{projectKey}/sprints": {
      "get": {
        "operationId": "PmIntegrationController_listSprints_v1",
        "summary": "Sprints of a project (status, page, pageSize)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "projectKey",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "items": [
                      {
                        "id": "00000000-0000-4000-8000-000000000020",
                        "name": "Sprint 4",
                        "status": "active",
                        "goal": "Ship the report export",
                        "projectId": "00000000-0000-4000-8000-000000000002",
                        "startDate": "2026-01-12",
                        "endDate": "2026-01-26",
                        "startedAt": "2026-01-12T08:00:00.000Z",
                        "completedAt": null,
                        "committedPoints": 21,
                        "completedPoints": 8
                      }
                    ],
                    "page": 1,
                    "pageSize": 20,
                    "total": 1,
                    "hasMore": false
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: projects:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "projects:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/projects/ABC/sprints\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/sprints": {
      "post": {
        "operationId": "PmPlanningController_createSprint_v1",
        "summary": "Create a planned sprint (body: { projectKey | projectId, name, goal?, startDate?, endDate? }; dates YYYY-MM-DD, end ≥ start)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "responses": {
          "201": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: sprints:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "sprints:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/sprints\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/sprints/{sprintId}": {
      "get": {
        "operationId": "PmIntegrationController_getSprint_v1",
        "summary": "A sprint with its stories (stories need workitems:read)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "sprintId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "id": "00000000-0000-4000-8000-000000000020",
                    "name": "Sprint 4",
                    "status": "active",
                    "goal": "Ship the report export",
                    "projectId": "00000000-0000-4000-8000-000000000002",
                    "startDate": "2026-01-12",
                    "endDate": "2026-01-26",
                    "startedAt": "2026-01-12T08:00:00.000Z",
                    "completedAt": null,
                    "committedPoints": 21,
                    "completedPoints": 8,
                    "stories": [
                      {
                        "type": "story",
                        "id": "00000000-0000-4000-8000-000000000010",
                        "key": "ABC-12",
                        "title": "Export the monthly report",
                        "status": "in_progress",
                        "priority": "high",
                        "storyPoints": 5,
                        "project": {
                          "id": "00000000-0000-4000-8000-000000000002",
                          "key": "ABC",
                          "name": "Example project"
                        },
                        "sprintId": "00000000-0000-4000-8000-000000000020",
                        "assignee": {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "name": "Example user"
                        },
                        "dueDate": "2026-02-01",
                        "updatedAt": "2026-01-15T09:30:00.000Z",
                        "url": "/browse/ABC-12"
                      }
                    ],
                    "warnings": [],
                    "readiness": {
                      "storyCount": 1,
                      "storiesWithoutTasks": 0,
                      "unpointedStories": 0,
                      "storiesInFirstStatus": 0,
                      "taskCount": 1
                    }
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: projects:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "projects:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/sprints/00000000-0000-4000-8000-000000000020\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "patch": {
        "operationId": "PmPlanningController_updateSprint_v1",
        "summary": "Rename a sprint or change its goal or dates (body: { name?, goal?, startDate?, endDate? })",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "sprintId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: sprints:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "sprints:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X PATCH \"https://api.taptipm.com/api/v1/integrations/pm/sprints/00000000-0000-4000-8000-000000000020\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/sprints/{sprintId}/complete": {
      "post": {
        "operationId": "PmIntegrationController_completeSprint_v1",
        "summary": "Complete an active sprint; unfinished stories go to the backlog (sprints:write — high impact). Body: { note? }",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "sprintId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "note": "Two stories move to the backlog."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: sprints:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "sprints:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/sprints/00000000-0000-4000-8000-000000000020/complete\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"note\":\"Two stories move to the backlog.\"}'"
          }
        ]
      }
    },
    "/integrations/pm/sprints/{sprintId}/items": {
      "post": {
        "operationId": "PmPlanningController_addToSprint_v1",
        "summary": "Add up to 50 stories to a sprint (body: { keys: [\"ABC-12\", …] }); per-key results. Also needs workitems:write",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "sprintId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: sprints:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "sprints:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/sprints/00000000-0000-4000-8000-000000000020/items\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/sprints/{sprintId}/items/remove": {
      "post": {
        "operationId": "PmPlanningController_removeFromSprint_v1",
        "summary": "Move up to 50 stories out of a sprint to the backlog (body: { keys }); per-key results. Also needs workitems:write",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "sprintId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: sprints:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "sprints:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/sprints/00000000-0000-4000-8000-000000000020/items/remove\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/sprints/{sprintId}/start": {
      "post": {
        "operationId": "PmIntegrationController_startSprint_v1",
        "summary": "Start a planned sprint (sprints:write — high impact). Body: { goal?, endDate? }",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "sprintId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "goal": "Ship the report export",
                "endDate": "2026-01-26"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: sprints:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "sprints:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/sprints/00000000-0000-4000-8000-000000000020/start\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"goal\":\"Ship the report export\",\"endDate\":\"2026-01-26\"}'"
          }
        ]
      }
    },
    "/integrations/pm/users": {
      "get": {
        "operationId": "PmPlanningController_findUsers_v1",
        "summary": "Find staff by name or e-mail (query, includeInactive, page, pageSize): id, name, e-mail, status only",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: people:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "people:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/users\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/work-items": {
      "get": {
        "operationId": "PmIntegrationController_search_v1",
        "summary": "Search stories, tasks and bugs: projectKey, type, status, assignee (me | unassigned | id), sprintId, text, key, page, pageSize",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "{ items: [{ type, id, key, title, status, priority, project, assignee, updatedAt, url }], page, pageSize, total, hasMore }",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "items": [
                      {
                        "type": "story",
                        "id": "00000000-0000-4000-8000-000000000010",
                        "key": "ABC-12",
                        "title": "Export the monthly report",
                        "status": "in_progress",
                        "priority": "high",
                        "storyPoints": 5,
                        "project": {
                          "id": "00000000-0000-4000-8000-000000000002",
                          "key": "ABC",
                          "name": "Example project"
                        },
                        "sprintId": "00000000-0000-4000-8000-000000000020",
                        "assignee": {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "name": "Example user"
                        },
                        "dueDate": "2026-02-01",
                        "updatedAt": "2026-01-15T09:30:00.000Z",
                        "url": "/browse/ABC-12"
                      }
                    ],
                    "page": 1,
                    "pageSize": 20,
                    "total": 1,
                    "hasMore": false
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/work-items\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "post": {
        "operationId": "PmIntegrationController_create_v1",
        "summary": "Create a story (projectKey), task (parentKey = story) or bug (parentKey = story or task); body as the create_work_item tool",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "type": "task",
                "title": "Write the export tests",
                "parentKey": "ABC-12",
                "priority": "medium",
                "assignee": "me"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/work-items\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"type\":\"task\",\"title\":\"Write the export tests\",\"parentKey\":\"ABC-12\",\"priority\":\"medium\",\"assignee\":\"me\"}'"
          }
        ]
      }
    },
    "/integrations/pm/work-items/{key}": {
      "get": {
        "operationId": "PmIntegrationController_getWorkItem_v1",
        "summary": "A story, task or bug by key (ABC-12): fields, children, comments, allowed next statuses, edit access",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "key",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "type": "story",
                    "id": "00000000-0000-4000-8000-000000000010",
                    "key": "ABC-12",
                    "title": "Export the monthly report",
                    "status": "in_progress",
                    "priority": "high",
                    "storyPoints": 5,
                    "project": {
                      "id": "00000000-0000-4000-8000-000000000002",
                      "key": "ABC",
                      "name": "Example project"
                    },
                    "sprintId": "00000000-0000-4000-8000-000000000020",
                    "assignee": {
                      "id": "00000000-0000-4000-8000-000000000001",
                      "name": "Example user"
                    },
                    "dueDate": "2026-02-01",
                    "updatedAt": "2026-01-15T09:30:00.000Z",
                    "url": "/browse/ABC-12",
                    "description": "Users download the monthly report as a spreadsheet.",
                    "acceptanceCriteria": "The file lists every project of the month.",
                    "sprint": {
                      "id": "00000000-0000-4000-8000-000000000020",
                      "name": "Sprint 4",
                      "status": "active"
                    },
                    "epic": null,
                    "reporterId": "00000000-0000-4000-8000-000000000001",
                    "createdAt": "2026-01-15T09:30:00.000Z",
                    "tasks": [
                      {
                        "id": "00000000-0000-4000-8000-000000000011",
                        "key": "ABC-13",
                        "title": "Build the export endpoint",
                        "status": "dev_complete",
                        "assigneeId": "00000000-0000-4000-8000-000000000001"
                      }
                    ],
                    "bugs": [],
                    "workflow": {
                      "status": "in_progress",
                      "allowedNextStatuses": [
                        "in_review"
                      ],
                      "statuses": [
                        "new",
                        "ready",
                        "in_progress",
                        "in_review",
                        "done"
                      ],
                      "source": "default"
                    },
                    "access": {
                      "canEdit": true,
                      "canChangeAssignee": true,
                      "reason": null,
                      "policy": "projectMembers"
                    },
                    "attachments": [],
                    "recentComments": [
                      {
                        "id": "00000000-0000-4000-8000-000000000030",
                        "author": {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "name": "Example user"
                        },
                        "content": "Moved to review after the export passed locally.",
                        "parentId": null,
                        "source": "api",
                        "createdAt": "2026-01-15T09:30:00.000Z",
                        "updatedAt": "2026-01-15T09:30:00.000Z"
                      }
                    ],
                    "statusHistory": [
                      {
                        "from": "ready",
                        "to": "in_progress",
                        "actorId": "00000000-0000-4000-8000-000000000001",
                        "at": "2026-01-15T09:30:00.000Z"
                      }
                    ]
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/work-items/ABC-12\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "patch": {
        "operationId": "PmIntegrationController_update_v1",
        "summary": "Change fields of a work item (body: { fields: { … } }); status and assignee have their own routes",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "key",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "fields": {
                  "priority": "high",
                  "storyPoints": 8
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X PATCH \"https://api.taptipm.com/api/v1/integrations/pm/work-items/ABC-12\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"fields\":{\"priority\":\"high\",\"storyPoints\":8}}'"
          }
        ]
      }
    },
    "/integrations/pm/work-items/{key}/assign": {
      "post": {
        "operationId": "PmIntegrationController_assign_v1",
        "summary": "Assign (body: { assignee: \"me\" | userId | null })",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "key",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "assignee": "me"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/work-items/ABC-12/assign\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"assignee\":\"me\"}'"
          }
        ]
      }
    },
    "/integrations/pm/work-items/{key}/comments": {
      "get": {
        "operationId": "PmIntegrationController_comments_v1",
        "summary": "Comments of a work item, oldest first (page, pageSize)",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "key",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "items": [
                      {
                        "id": "00000000-0000-4000-8000-000000000030",
                        "author": {
                          "id": "00000000-0000-4000-8000-000000000001",
                          "name": "Example user"
                        },
                        "content": "Moved to review after the export passed locally.",
                        "parentId": null,
                        "source": "api",
                        "createdAt": "2026-01-15T09:30:00.000Z",
                        "updatedAt": "2026-01-15T09:30:00.000Z"
                      }
                    ],
                    "page": 1,
                    "pageSize": 20,
                    "total": 1,
                    "hasMore": false
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: comments:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "comments:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/integrations/pm/work-items/ABC-12/comments\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "post": {
        "operationId": "PmIntegrationController_addComment_v1",
        "summary": "Add a comment (body: { content, parentId? }); shown with a \"via API\" badge",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "key",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "content": "Moved to review after the export passed locally."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "item": {
                      "type": "story",
                      "id": "00000000-0000-4000-8000-000000000010",
                      "key": "ABC-12"
                    },
                    "comment": {
                      "id": "00000000-0000-4000-8000-000000000030",
                      "author": {
                        "id": "00000000-0000-4000-8000-000000000001",
                        "name": "Example user"
                      },
                      "content": "Moved to review after the export passed locally.",
                      "parentId": null,
                      "source": "api",
                      "createdAt": "2026-01-15T09:30:00.000Z",
                      "updatedAt": "2026-01-15T09:30:00.000Z"
                    },
                    "replayed": false
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: comments:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "comments:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/work-items/ABC-12/comments\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"content\":\"Moved to review after the export passed locally.\"}'"
          }
        ]
      }
    },
    "/integrations/pm/work-items/{key}/convert": {
      "post": {
        "operationId": "PmWorkItemOpsController_convert_v1",
        "summary": "Convert a story into a bug under a story or task (body: { toType: \"bug\", parentKey, severity?, environment?, stepsToReproduce?, status? }); the story is archived and its key opens the bug; the result lists field fidelity",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "key",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "toType": "bug",
                "parentKey": "ABC-10",
                "severity": "high"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:convert), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:convert"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/work-items/ABC-12/convert\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"toType\":\"bug\",\"parentKey\":\"ABC-10\",\"severity\":\"high\"}'"
          }
        ]
      }
    },
    "/integrations/pm/work-items/{key}/transitions": {
      "post": {
        "operationId": "PmIntegrationController_transition_v1",
        "summary": "Move to the next allowed status (body: { toStatus, comment? }); 409 WORKFLOW_TRANSITION_NOT_ALLOWED lists the allowed ones",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "key",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "toStatus": "in_review",
                "comment": "Ready for review."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/work-items/ABC-12/transitions\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"toStatus\":\"in_review\",\"comment\":\"Ready for review.\"}'"
          }
        ]
      }
    },
    "/integrations/pm/work-items/batch": {
      "post": {
        "operationId": "PmPlanningController_createBatch_v1",
        "summary": "Create up to 50 stories, tasks and bugs (body: { items: [ …as POST /work-items ], mode?: best_effort | all_or_nothing }); per-item results",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/work-items/batch\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/integrations/pm/work-items/transitions": {
      "post": {
        "operationId": "PmWorkItemOpsController_transitionMany_v1",
        "summary": "Move up to 50 work items to one status (body: { keys: [\"ABC-12\", …], toStatus, comment? }); each key follows its workflow like POST /work-items/:key/transitions; per-key results",
        "tags": [
          "Integrations · Project management"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Unique key (8–100 characters): a retry with the same key and body returns the first result for 24 hours; another body under the key is 409 IDEMPOTENCY_KEY_REUSED"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "keys": [
                  "ABC-12",
                  "ABC-13"
                ],
                "toStatus": "ready"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "toStatus": "ready",
                    "results": [
                      {
                        "key": "ABC-12",
                        "type": "story",
                        "status": "transitioned",
                        "fromStatus": "new",
                        "toStatus": "ready"
                      },
                      {
                        "key": "ABC-13",
                        "status": "failed",
                        "error": {
                          "status": 409,
                          "code": "WORKFLOW_TRANSITION_NOT_ALLOWED",
                          "message": "A story cannot move from \"in_progress\" to \"ready\" in this project's workflow. Allowed next: in_review."
                        }
                      }
                    ],
                    "summary": {
                      "requested": 2,
                      "transitioned": 1,
                      "unchanged": 0,
                      "failed": 1
                    },
                    "replayed": false
                  },
                  "meta": {
                    "timestamp": "2026-01-15T09:30:00.000Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: workitems:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "workitems:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/integrations/pm/work-items/transitions\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"keys\":[\"ABC-12\",\"ABC-13\"],\"toStatus\":\"ready\"}'"
          }
        ]
      }
    },
    "/mcp": {
      "post": {
        "operationId": "PmMcpController_handle_v1",
        "summary": "MCP endpoint (JSON-RPC 2.0 over Streamable HTTP): server/discover, initialize, tools/list, tools/call, resources/*, prompts/*. Configure your IDE with this URL and an API token.",
        "tags": [
          "MCP server"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "jsonrpc": "2.0",
                  "id": 1,
                  "method": "tools/list",
                  "params": {
                    "_meta": {
                      "io.modelcontextprotocol/protocolVersion": "2026-07-28"
                    }
                  }
                }
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/call",
                "params": {
                  "name": "get_work_item",
                  "arguments": {
                    "key": "ABC-12"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON-RPC response (application/json); 202 without a body for a notification"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: projects:read, workitems:read, workitems:write, comments:read, comments:write, sprints:write, members:write, people:read, epics:manage, workitems:convert), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "projects:read",
          "workitems:read",
          "workitems:write",
          "comments:read",
          "comments:write",
          "sprints:write",
          "members:write",
          "people:read",
          "epics:manage",
          "workitems:convert"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/mcp\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Accept: application/json, text/event-stream\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"get_work_item\",\"arguments\":{\"key\":\"ABC-12\"}}}'"
          }
        ]
      }
    },
    "/quality/automation-runs": {
      "get": {
        "operationId": "AutomationController_listRuns_v1",
        "summary": "Automation runs with totals and cycle (paging ≤100; filters project, branch, CI provider, failed only, search)",
        "tags": [
          "Quality · Automation results"
        ],
        "parameters": [
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "receivedAt",
                "branch"
              ]
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "branch",
            "required": false,
            "in": "query",
            "schema": {
              "maxLength": 200,
              "type": "string"
            }
          },
          {
            "name": "ciProvider",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "github",
                "gitlab",
                "azure",
                "jenkins",
                "other"
              ]
            }
          },
          {
            "name": "failedOnly",
            "required": false,
            "in": "query",
            "description": "Only runs with failed results",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "{ data: runs[], meta }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/automation-runs\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "post": {
        "operationId": "AutomationController_upload_v1",
        "summary": "Upload an automation result file (JUnit XML, Cucumber, Playwright, Cypress/mochawesome, CTRF; optionally .gz). Processed by a background job; the same file again answers with the existing upload.",
        "tags": [
          "Quality · Automation results"
        ],
        "parameters": [
          {
            "name": "wait",
            "required": false,
            "in": "query",
            "description": "Wait up to this many seconds (≤60) for processing to finish; 0 answers at once",
            "schema": {
              "minimum": 0,
              "maximum": 60,
              "type": "number"
            }
          },
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file",
                  "projectId"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "projectId": {
                    "type": "string"
                  },
                  "cycleId": {
                    "type": "string"
                  },
                  "sprintId": {
                    "type": "string",
                    "description": "Sprint of the auto-created cycle (default: the project's only active sprint); story coverage reads it"
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "junit",
                      "cucumber",
                      "playwright",
                      "cypress",
                      "ctrf"
                    ]
                  },
                  "runId": {
                    "type": "string"
                  },
                  "branch": {
                    "type": "string"
                  },
                  "buildRef": {
                    "type": "string"
                  },
                  "commitSha": {
                    "type": "string"
                  },
                  "ciProvider": {
                    "type": "string",
                    "enum": [
                      "github",
                      "gitlab",
                      "azure",
                      "jenkins",
                      "other"
                    ]
                  },
                  "pipelineRef": {
                    "type": "string"
                  },
                  "createMissing": {
                    "type": "boolean",
                    "description": "Draft tests for unmatched results; needs quality:write or the project setting (else 403 DRAFTS_NOT_ALLOWED)"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "{ upload: { id, status queued|processing|completed|failed, processed, total, summary, errorCode }, run, duplicate } — 200 when the same file was uploaded before"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:results:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:results:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/quality/automation-runs\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -F \"file=@results/junit.xml\" \\\n  -F \"projectId=00000000-0000-4000-8000-000000000002\""
          }
        ]
      }
    },
    "/quality/automation-runs/{id}": {
      "get": {
        "operationId": "AutomationController_getRun_v1",
        "summary": "One automation run with its uploads and cycle",
        "tags": [
          "Quality · Automation results"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/automation-runs/00000000-0000-4000-8000-000000000040\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/automation-runs/{id}/results": {
      "get": {
        "operationId": "AutomationController_listResults_v1",
        "summary": "Results of a run (drill-down; filters status, matched / unmatched, failure signature, upload, search)",
        "tags": [
          "Quality · Automation results"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "passed",
                "failed",
                "skipped",
                "blocked"
              ]
            }
          },
          {
            "name": "match",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "matched",
                "unmatched"
              ]
            }
          },
          {
            "name": "signature",
            "required": false,
            "in": "query",
            "description": "Failure signature (16 hex characters)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uploadId",
            "required": false,
            "in": "query",
            "description": "Only the results of this upload",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/automation-runs/00000000-0000-4000-8000-000000000040/results\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/automation-uploads/{id}": {
      "get": {
        "operationId": "AutomationController_getUpload_v1",
        "summary": "Status and summary of one upload (without quality:read a CI token reads only the uploads it posted)",
        "tags": [
          "Quality · Automation results"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "{ upload, run }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read, quality:results:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read",
          "quality:results:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/automation-uploads/00000000-0000-4000-8000-000000000040\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/automation/failure-clusters": {
      "get": {
        "operationId": "AutomationInsightsController_clusters_v1",
        "summary": "Failures clustered by normalised error signature (in a window, or one run)",
        "tags": [
          "Quality · Automation insights"
        ],
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "windowDays",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 90,
              "default": 14,
              "type": "number"
            }
          },
          {
            "name": "runId",
            "required": false,
            "in": "query",
            "description": "Only failures of this automation run",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "{ data: [{ signature, failures, tests, runs, errorType, sampleMessage, sampleTests }], meta }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/automation/failure-clusters\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/automation/flaky-tests": {
      "get": {
        "operationId": "AutomationInsightsController_flaky_v1",
        "summary": "Flaky tests: pass/fail flip rate over a window (suggestions only — nothing is skipped automatically)",
        "tags": [
          "Quality · Automation insights"
        ],
        "parameters": [
          {
            "name": "projectId",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "windowDays",
            "required": false,
            "in": "query",
            "schema": {
              "minimum": 1,
              "maximum": 90,
              "default": 14,
              "type": "number"
            }
          },
          {
            "name": "minRuns",
            "required": false,
            "in": "query",
            "description": "Pass/fail results needed in the window",
            "schema": {
              "minimum": 2,
              "maximum": 100,
              "default": 5,
              "type": "number"
            }
          },
          {
            "name": "minFlipRate",
            "required": false,
            "in": "query",
            "description": "Flips between consecutive results / (results - 1)",
            "schema": {
              "minimum": 0.05,
              "maximum": 1,
              "default": 0.2,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "{ data: [{ automationKey, runs, failures, flips, flipRate, failRate, suggestion, reason, testCase }], meta }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/automation/flaky-tests\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/executions": {
      "get": {
        "operationId": "TestExecutionsController_list_v1",
        "summary": "List executions (paging ≤100; filters cycle, case, tester, category, finished, search)",
        "tags": [
          "Quality · Execution"
        ],
        "parameters": [
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "startedAt",
                "finishedAt",
                "createdAt"
              ]
            }
          },
          {
            "name": "testCycleId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "testCaseId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "executedById",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "statusCategory",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "passed",
                "failed",
                "blocked",
                "not_run"
              ]
            }
          },
          {
            "name": "mine",
            "required": false,
            "in": "query",
            "description": "Only my executions",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "finished",
            "required": false,
            "in": "query",
            "description": "true = finished only, false = in progress only",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/executions\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/executions/{id}": {
      "get": {
        "operationId": "TestExecutionsController_get_v1",
        "summary": "Get an execution with its steps, step results, evidence and linked bugs",
        "tags": [
          "Quality · Execution"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/executions/00000000-0000-4000-8000-000000000040\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/mcp": {
      "delete": {
        "operationId": "QualityMcpController_endSession_v1",
        "summary": "Stateless server: there is no session to end (405)",
        "tags": [
          "Quality · MCP server"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read, quality:write, quality:results:write, quality:coverage:read, quality:defects:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read",
          "quality:write",
          "quality:results:write",
          "quality:coverage:read",
          "quality:defects:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X DELETE \"https://api.taptipm.com/api/v1/quality/mcp\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Accept: application/json, text/event-stream\""
          }
        ]
      },
      "get": {
        "operationId": "QualityMcpController_stream_v1",
        "summary": "No server-sent event stream: this server answers every request with JSON (405)",
        "tags": [
          "Quality · MCP server"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read, quality:write, quality:results:write, quality:coverage:read, quality:defects:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read",
          "quality:write",
          "quality:results:write",
          "quality:coverage:read",
          "quality:defects:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/mcp\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Accept: application/json, text/event-stream\""
          }
        ]
      },
      "post": {
        "operationId": "QualityMcpController_handle_v1",
        "summary": "MCP JSON-RPC endpoint (initialize, ping, tools/list, tools/call). Configure an MCP client with this URL and an API token.",
        "tags": [
          "Quality · MCP server"
        ],
        "parameters": [
          {
            "name": "X-Request-ID",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional correlation id, echoed in the response and the audit log"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "example": {
                  "jsonrpc": "2.0",
                  "id": 1,
                  "method": "tools/list"
                }
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/list"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response (202 without body for notifications)"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read, quality:write, quality:results:write, quality:coverage:read, quality:defects:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read",
          "quality:write",
          "quality:results:write",
          "quality:coverage:read",
          "quality:defects:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/quality/mcp\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\" \\\n  -H \"Accept: application/json, text/event-stream\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}'"
          }
        ]
      }
    },
    "/quality/stories/{storyId}/tests": {
      "get": {
        "operationId": "StoryTestsController_panel_v1",
        "summary": "Story \"Tests\" panel: covering tests with their latest sprint-cycle result, acceptance criteria coverage, AI availability",
        "tags": [
          "Quality · Story tests"
        ],
        "parameters": [
          {
            "name": "storyId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:coverage:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:coverage:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/stories/00000000-0000-4000-8000-000000000010/tests\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/test-cases": {
      "get": {
        "operationId": "TestCasesController_list_v1",
        "summary": "List test cases (server-side paging ≤100, filters, sort: key | title | priority | status | createdAt | updatedAt)",
        "tags": [
          "Quality · Test library"
        ],
        "parameters": [
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "key",
                "title",
                "priority",
                "status",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "workspaceOnly",
            "required": false,
            "in": "query",
            "description": "Only the workspace library (no project)",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "folderId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeSubfolders",
            "required": false,
            "in": "query",
            "description": "With folderId: include every subfolder",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "draft",
                "ready_for_review",
                "approved",
                "needs_update",
                "deprecated"
              ]
            }
          },
          {
            "name": "priority",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ]
            }
          },
          {
            "name": "type",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "functional",
                "regression",
                "smoke",
                "e2e",
                "api",
                "performance",
                "security",
                "accessibility"
              ]
            }
          },
          {
            "name": "automationStatus",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "manual",
                "automated",
                "to_automate"
              ]
            }
          },
          {
            "name": "ownerId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "required": false,
            "in": "query",
            "schema": {
              "maxLength": 50,
              "type": "string"
            }
          },
          {
            "name": "isTemplate",
            "required": false,
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "source",
            "required": false,
            "in": "query",
            "description": "manual | ai | import | incident | defect (AI drafts: source=ai; shift-right drafts: incident / defect)",
            "schema": {
              "type": "string",
              "enum": [
                "manual",
                "ai",
                "import",
                "incident",
                "defect"
              ]
            }
          },
          {
            "name": "storyId",
            "required": false,
            "in": "query",
            "description": "Only tests that cover this story",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "{ data: testCases[], meta: { total, page, limit, totalPages } }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/test-cases\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "post": {
        "operationId": "TestCasesController_create_v1",
        "summary": "Create a test case: issues the next key (e.g. ECOM-T12) and version 1 with its steps",
        "tags": [
          "Quality · Test library"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestCaseDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created test case (ETag = lockVersion)"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/quality/test-cases\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/test-cases/{id}": {
      "get": {
        "operationId": "TestCasesController_get_v1",
        "summary": "Get a test case with its current version and steps (ETag = lockVersion)",
        "tags": [
          "Quality · Test library"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Test case id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/test-cases/00000000-0000-4000-8000-000000000040\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/test-cycles": {
      "get": {
        "operationId": "TestCyclesController_list_v1",
        "summary": "List test cycles with progress (server paging ≤100; filters project, sprint, status, search)",
        "tags": [
          "Quality · Test cycles"
        ],
        "parameters": [
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "key",
                "name",
                "status",
                "plannedStart",
                "createdAt",
                "updatedAt"
              ]
            }
          },
          {
            "name": "projectId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sprintId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "not_started",
                "in_progress",
                "completed"
              ]
            }
          },
          {
            "name": "testPlanId",
            "required": false,
            "in": "query",
            "description": "Cycles of this test plan",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "releaseId",
            "required": false,
            "in": "query",
            "description": "Cycles bound to this release (directly or through a plan)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "{ data: cycles[] (with progress), meta }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/test-cycles\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "post": {
        "operationId": "TestCyclesController_create_v1",
        "summary": "Create a test cycle (key PROJ-C<n>)",
        "tags": [
          "Quality · Test cycles"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestCycleDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The cycle (ETag = lockVersion)"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/quality/test-cycles\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/test-cycles/{id}": {
      "get": {
        "operationId": "TestCyclesController_get_v1",
        "summary": "Get a test cycle with progress (ETag = lockVersion)",
        "tags": [
          "Quality · Test cycles"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/test-cycles/00000000-0000-4000-8000-000000000040\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    },
    "/quality/test-cycles/{id}/items": {
      "get": {
        "operationId": "TestCyclesController_listItems_v1",
        "summary": "List the items of a cycle (paging ≤100; filters status, assignee, mine, search)",
        "tags": [
          "Quality · Test cycles"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "status",
                "updatedAt"
              ]
            }
          },
          {
            "name": "status",
            "required": false,
            "in": "query",
            "description": "Latest status name (pass, fail, blocked, skipped, not_run)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "assigneeId",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mine",
            "required": false,
            "in": "query",
            "description": "Only items assigned to the caller",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:read), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:read"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X GET \"https://api.taptipm.com/api/v1/quality/test-cycles/00000000-0000-4000-8000-000000000040/items\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      },
      "post": {
        "operationId": "TestCyclesController_addItems_v1",
        "summary": "Add test cases to a cycle by ids, folder or covered stories (pinned to their current version)",
        "tags": [
          "Quality · Test cycles"
        ],
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddTestCycleItemsDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "{ added, skippedExisting, coveredStoryIds[] }"
          },
          "400": {
            "description": "VALIDATION_ERROR / INVALID_ARGUMENTS: the input does not match the schema",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, unknown, revoked or expired token (WWW-Authenticate: Bearer error=\"invalid_token\")",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "INSUFFICIENT_SCOPE (needs one of: quality:write), or API tokens are turned off for the workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found — or outside the projects the token may reach (the same answer, by design)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "TOO_MANY_REQUESTS: wait Retry-After seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ],
        "x-required-scopes": [
          "quality:write"
        ],
        "x-codeSamples": [
          {
            "lang": "curl",
            "label": "curl",
            "source": "curl -X POST \"https://api.taptipm.com/api/v1/quality/test-cycles/00000000-0000-4000-8000-000000000040/items\" \\\n  -H \"Authorization: Bearer $TAPTIPM_API_TOKEN\""
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "TaptiPM API token",
        "description": "A workspace API token from Settings › API tokens, e.g. from the TAPTIPM_API_TOKEN environment variable."
      }
    },
    "schemas": {
      "AddTestCycleItemsDto": {
        "type": "object",
        "properties": {
          "testCaseIds": {
            "maxItems": 500,
            "description": "Add these test cases (search result)",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "folderId": {
            "type": "string",
            "description": "Add every case of this folder"
          },
          "includeSubfolders": {
            "type": "boolean",
            "description": "With folderId: include subfolders"
          },
          "storyIds": {
            "maxItems": 200,
            "description": "Add the tests that cover these stories",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "assigneeId": {
            "type": "string",
            "description": "Assign the new items to this tester"
          }
        }
      },
      "CreateTestCaseDto": {
        "type": "object",
        "properties": {
          "objective": {
            "type": "string",
            "maxLength": 10000
          },
          "preconditions": {
            "type": "string",
            "maxLength": 10000
          },
          "priority": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "functional",
              "regression",
              "smoke",
              "e2e",
              "api",
              "performance",
              "security",
              "accessibility"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "steps",
              "gherkin",
              "plain"
            ]
          },
          "automationStatus": {
            "type": "string",
            "enum": [
              "manual",
              "automated",
              "to_automate"
            ]
          },
          "automationRef": {
            "type": "string",
            "description": "Spec path or test id",
            "maxLength": 500
          },
          "estimatedMinutes": {
            "type": "number",
            "minimum": 0,
            "maximum": 100000
          },
          "ownerId": {
            "type": "string",
            "description": "Owner (user id in this workspace)"
          },
          "labels": {
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isTemplate": {
            "type": "boolean",
            "description": "Shared steps / template case"
          },
          "steps": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TestStepInputDto"
            }
          },
          "gherkin": {
            "type": "string",
            "description": "Gherkin scenario(s) for format = gherkin",
            "maxLength": 20000
          },
          "dataSets": {
            "description": "Phase 5 data sets: the case runs once per row; steps use <parameter>. rows: [] removes them. For format = gherkin they come from the Examples table.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSetsInputDto"
              }
            ]
          },
          "changeNote": {
            "type": "string",
            "description": "Why the steps changed",
            "maxLength": 1000
          },
          "title": {
            "type": "string",
            "example": "Guest checkout with a saved card",
            "maxLength": 300
          },
          "projectId": {
            "type": "string",
            "description": "Project id; omit for the workspace library (key prefix LIB)"
          },
          "folderId": {
            "type": "string",
            "description": "Folder id (same project)"
          }
        },
        "required": [
          "title"
        ]
      },
      "CreateTestCycleDto": {
        "type": "object",
        "properties": {
          "sprintId": {
            "type": "string",
            "description": "Sprint the cycle tests (sprint test cycle, §6.4)"
          },
          "environmentId": {
            "type": "string",
            "description": "Environment (workspace or same project)"
          },
          "plannedStart": {
            "type": "string",
            "example": "2026-11-02"
          },
          "plannedEnd": {
            "type": "string",
            "example": "2026-11-13"
          },
          "ownerId": {
            "type": "string",
            "description": "Owner (user id in this workspace)"
          },
          "buildRef": {
            "type": "string",
            "example": "build 2026.11.02-1",
            "maxLength": 200
          },
          "testPlanId": {
            "type": "object",
            "description": "Test plan the cycle rolls up into (same project, not completed or cancelled); null unbinds",
            "nullable": true
          },
          "releaseId": {
            "type": "object",
            "description": "Release the cycle tests (regression / UAT, same project); defaults to the plan's release; null unbinds",
            "nullable": true
          },
          "projectId": {
            "type": "string",
            "description": "Project the cycle belongs to (key prefix PROJ-C…)"
          },
          "name": {
            "type": "string",
            "example": "Sprint 14 regression",
            "maxLength": 200
          }
        },
        "required": [
          "projectId",
          "name"
        ]
      },
      "DataSetRowInputDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "description": "Row name; \"Row N\" when omitted"
          },
          "values": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "values"
        ]
      },
      "DataSetsInputDto": {
        "type": "object",
        "properties": {
          "parameters": {
            "maxItems": 20,
            "example": [
              "email",
              "role"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rows": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataSetRowInputDto"
            }
          }
        },
        "required": [
          "parameters",
          "rows"
        ]
      },
      "TestStepInputDto": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "example": "Open the cart and press Checkout",
            "maxLength": 4000,
            "description": "Optional for a call step (defaults to \"Call <key>: <title>\")"
          },
          "testData": {
            "type": "string",
            "maxLength": 4000
          },
          "expectedResult": {
            "type": "string",
            "maxLength": 4000
          },
          "callTestCaseId": {
            "type": "string",
            "description": "Phase 5 call-to-test: the test case this step runs (same project or the workspace library)"
          },
          "callVersionPolicy": {
            "type": "string",
            "enum": [
              "latest",
              "pinned"
            ],
            "description": "latest = the called test's current version when a run starts; pinned = one version"
          },
          "callVersion": {
            "type": "number",
            "minimum": 1,
            "description": "With callVersionPolicy = pinned: the version number (default: the current version)"
          }
        },
        "required": [
          "action"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error",
          "meta"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "example": "INSUFFICIENT_SCOPE"
              },
              "message": {
                "type": "string"
              },
              "details": {
                "type": "array",
                "items": {}
              }
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "timestamp": {
                "type": "string",
                "format": "date-time"
              },
              "path": {
                "type": "string"
              },
              "requestId": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiToken": []
    }
  ],
  "x-taptipm-scopes": [
    {
      "scope": "comments:read",
      "label": "Read comments",
      "description": "Read the comments of stories, tasks and bugs.",
      "module": "Project management",
      "risk": "read",
      "supportsProjectRestriction": true
    },
    {
      "scope": "comments:write",
      "label": "Write comments",
      "description": "Add comments (shown with a \"via API\" badge) and edit or delete the comments written with your account.",
      "module": "Project management",
      "risk": "write",
      "supportsProjectRestriction": true
    },
    {
      "scope": "epics:manage",
      "label": "Create and change epics",
      "description": "Create epics in a project and change their name, description, priority and status (create_epic, update_epic). Needs the right to manage epics.",
      "module": "Project management",
      "risk": "write",
      "supportsProjectRestriction": true
    },
    {
      "scope": "members:write",
      "label": "Manage project teams",
      "description": "Add people to a project with a project role and remove them (their open work is reassigned, unassigned or kept, as you choose). Needs the right to manage project teams; it never changes the project itself.",
      "module": "Project management",
      "risk": "high",
      "supportsProjectRestriction": true
    },
    {
      "scope": "people:read",
      "label": "Find people",
      "description": "Look up staff of the workspace by name or e-mail: id, name, e-mail and status only (to assign work or add them to a team). A token limited to projects finds only the people of those projects. Needs the right to see the user list.",
      "module": "Project management",
      "risk": "read",
      "supportsProjectRestriction": true
    },
    {
      "scope": "projects:read",
      "label": "Read projects",
      "description": "See projects, their members, sprints, epics and releases.",
      "module": "Project management",
      "risk": "read",
      "supportsProjectRestriction": true
    },
    {
      "scope": "quality:coverage:read",
      "label": "Read story coverage",
      "description": "Read story test coverage and acceptance criteria (story content) — for the Quality MCP server.",
      "module": "Quality",
      "risk": "read",
      "supportsProjectRestriction": false
    },
    {
      "scope": "quality:defects:write",
      "label": "Raise bugs from failed tests",
      "description": "Raise a bug from a failed test run, pre-filled as in the runner (Quality MCP server).",
      "module": "Quality",
      "risk": "write",
      "supportsProjectRestriction": false
    },
    {
      "scope": "quality:read",
      "label": "Read quality data",
      "description": "Read test cases, cycles, executions and coverage.",
      "module": "Quality",
      "risk": "read",
      "supportsProjectRestriction": false
    },
    {
      "scope": "quality:results:write",
      "label": "Upload test results",
      "description": "Post automation results from CI (JUnit, Cucumber, Playwright, CTRF).",
      "module": "Quality",
      "risk": "write",
      "supportsProjectRestriction": false
    },
    {
      "scope": "quality:write",
      "label": "Write quality data",
      "description": "Create and update test cases and cycles (drafts, as in the UI).",
      "module": "Quality",
      "risk": "write",
      "supportsProjectRestriction": false
    },
    {
      "scope": "sprints:write",
      "label": "Start and complete sprints",
      "description": "Start a planned sprint and complete an active one (unfinished work goes to the backlog). Changes the plan of a whole team.",
      "module": "Project management",
      "risk": "high",
      "supportsProjectRestriction": true
    },
    {
      "scope": "workitems:convert",
      "label": "Convert stories into bugs",
      "description": "Turn a story filed by mistake into a bug (convert_work_item). The story is archived and its key opens the new bug. Needs the right to delete work items.",
      "module": "Project management",
      "risk": "high",
      "supportsProjectRestriction": true
    },
    {
      "scope": "workitems:read",
      "label": "Read work items",
      "description": "See stories, tasks and bugs: keys, fields, statuses, the next allowed statuses, status history and attachment names.",
      "module": "Project management",
      "risk": "read",
      "supportsProjectRestriction": true
    },
    {
      "scope": "workitems:write",
      "label": "Update work items",
      "description": "Create stories, tasks and bugs, edit their fields, assign them and move them to the next workflow status — as you could in the app, never skipping a step. No deleting.",
      "module": "Project management",
      "risk": "write",
      "supportsProjectRestriction": true
    }
  ],
  "x-taptipm-errors": [
    {
      "status": 400,
      "code": "VALIDATION_ERROR / INVALID_ARGUMENTS",
      "meaning": "The input does not match the schema; the message names the field."
    },
    {
      "status": 401,
      "code": "UNAUTHORIZED",
      "meaning": "Missing, unknown, revoked or expired token, or its user is no longer active (WWW-Authenticate: Bearer error=\"invalid_token\")."
    },
    {
      "status": 403,
      "code": "INSUFFICIENT_SCOPE",
      "meaning": "The token lacks the scope the operation needs (WWW-Authenticate names it). Create a token with that scope."
    },
    {
      "status": 403,
      "code": "API_TOKENS_DISABLED / MCP_SERVER_DISABLED",
      "meaning": "An administrator turned API tokens or the MCP server off for the workspace."
    },
    {
      "status": 403,
      "code": "WORK_ITEM_EDIT_NOT_ALLOWED",
      "meaning": "The workspace edit policy does not let the token's user edit or reassign this item."
    },
    {
      "status": 404,
      "code": "NOT_FOUND",
      "meaning": "Unknown — or outside the projects the token may reach (the same answer, by design)."
    },
    {
      "status": 409,
      "code": "WORKFLOW_TRANSITION_NOT_ALLOWED",
      "meaning": "The status is not a next step of the workflow; details list the allowed statuses."
    },
    {
      "status": 409,
      "code": "WORK_ITEM_STATUS_CHANGED_MEANWHILE",
      "meaning": "Someone moved the item first; read it again and retry."
    },
    {
      "status": 409,
      "code": "IDEMPOTENCY_KEY_REUSED",
      "meaning": "The idempotency key was used for a different request; use a new key."
    },
    {
      "status": 400,
      "code": "INVALID_ENCODING",
      "meaning": "The request body is not valid UTF-8 (the message names the first invalid byte); send JSON encoded as UTF-8."
    },
    {
      "status": 400,
      "code": "INVALID_STATUS_ON_CREATE",
      "meaning": "The status given on create cannot be reached from the workflow's first status; details list the statuses a new item may start in."
    },
    {
      "status": 409,
      "code": "STORY_HAS_CHILDREN",
      "meaning": "convert_work_item: the story still has tasks or bugs; move or close them first."
    },
    {
      "status": 409,
      "code": "WORK_ITEM_ALREADY_CONVERTED",
      "meaning": "convert_work_item: the key belongs to a story that was already converted; it now opens the bug."
    },
    {
      "status": 413,
      "code": "PAYLOAD_TOO_LARGE",
      "meaning": "The request body is larger than the limit."
    },
    {
      "status": 429,
      "code": "TOO_MANY_REQUESTS",
      "meaning": "The token's rate limit is used up; wait Retry-After seconds."
    }
  ],
  "x-taptipm-mcp": [
    {
      "path": "/mcp",
      "title": "TaptiPM project management",
      "protocolVersions": [
        "2026-07-28",
        "2025-11-25",
        "2025-06-18",
        "2025-03-26"
      ],
      "tools": [
        {
          "name": "list_projects",
          "title": "List projects",
          "scope": "projects:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "get_project",
          "title": "Get a project",
          "scope": "projects:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "list_sprints",
          "title": "List sprints",
          "scope": "projects:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "get_sprint",
          "title": "Get a sprint",
          "scope": "projects:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "search_work_items",
          "title": "Search work items",
          "scope": "workitems:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "get_work_item",
          "title": "Get a work item",
          "scope": "workitems:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "list_my_work",
          "title": "List my work",
          "scope": "workitems:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "create_work_item",
          "title": "Create a work item",
          "scope": "workitems:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "update_work_item",
          "title": "Update a work item",
          "scope": "workitems:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "assign_work_item",
          "title": "Assign a work item",
          "scope": "workitems:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "transition_work_item",
          "title": "Move a work item to its next status",
          "scope": "workitems:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "list_comments",
          "title": "List comments",
          "scope": "comments:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "add_comment",
          "title": "Add a comment",
          "scope": "comments:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "edit_comment",
          "title": "Edit my comment",
          "scope": "comments:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "delete_comment",
          "title": "Delete my comment",
          "scope": "comments:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": true,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "start_sprint",
          "title": "Start a sprint",
          "scope": "sprints:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "complete_sprint",
          "title": "Complete a sprint",
          "scope": "sprints:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "list_epics",
          "title": "List epics",
          "scope": "projects:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "create_epic",
          "title": "Create an epic",
          "scope": "epics:manage",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "update_epic",
          "title": "Update an epic",
          "scope": "epics:manage",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "create_sprint",
          "title": "Create a sprint",
          "scope": "sprints:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "update_sprint",
          "title": "Update a sprint",
          "scope": "sprints:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "add_to_sprint",
          "title": "Add stories to a sprint",
          "scope": "sprints:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "remove_from_sprint",
          "title": "Remove stories from a sprint",
          "scope": "sprints:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "create_work_items",
          "title": "Create many work items",
          "scope": "workitems:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "list_project_members",
          "title": "List project members",
          "scope": "projects:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "add_project_member",
          "title": "Add a project member",
          "scope": "members:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "remove_project_member",
          "title": "Remove a project member",
          "scope": "members:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": true,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "find_users",
          "title": "Find people",
          "scope": "people:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "transition_work_items",
          "title": "Move many work items to a status",
          "scope": "workitems:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "convert_work_item",
          "title": "Convert a story into a bug",
          "scope": "workitems:convert",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        }
      ]
    },
    {
      "path": "/quality/mcp",
      "title": "TaptiPM Quality",
      "protocolVersions": [
        "2025-06-18",
        "2025-03-26",
        "2024-11-05"
      ],
      "tools": [
        {
          "name": "search_tests",
          "title": "Search test cases",
          "scope": "quality:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "get_test",
          "title": "Get a test case",
          "scope": "quality:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "create_test_draft",
          "title": "Create a draft test case",
          "scope": "quality:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        },
        {
          "name": "get_story_coverage",
          "title": "Story test coverage",
          "scope": "quality:coverage:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "list_uncovered_criteria",
          "title": "Uncovered acceptance criteria",
          "scope": "quality:coverage:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "get_cycle_status",
          "title": "Test cycle status",
          "scope": "quality:read",
          "annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "record_automation_results",
          "title": "Record automation results",
          "scope": "quality:results:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": true,
            "openWorldHint": false
          }
        },
        {
          "name": "create_bug_from_failure",
          "title": "Raise a bug from a failed run",
          "scope": "quality:defects:write",
          "annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          }
        }
      ]
    }
  ],
  "x-taptipm-limits": {
    "rateLimitPerMinute": 600,
    "maxPageSize": 50,
    "maxRequestKb": 100
  }
}