{
  "info": {
    "_postman_id": "ea8e3de8-806c-4e8f-b5fb-0804f8e0228e",
    "name": "TeamCity REST Agent Pools Investigations API",
    "description": "The TeamCity REST API provides programmatic access to JetBrains TeamCity continuous integration and deployment server. It allows you to manage projects, build configurations, builds, agents, users, VCS roots, changes, tests, and other TeamCity resources.\n\nContact Support:\n Name: JetBrains\n Email: teamcity-support@jetbrains.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T03:08:55.000Z",
    "updatedAt": "2026-07-28T03:08:55.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-ea8e3de8-806c-4e8f-b5fb-0804f8e0228e"
  },
  "item": [
    {
      "name": "investigations",
      "item": [
        {
          "name": "Get All Investigations",
          "id": "b32c8b3d-1f7b-41af-9bb3-43b27557a017",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/investigations?locator=<string>&fields=<string>",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "investigations"
              ],
              "query": [
                {
                  "description": "TeamCity locator string to filter results",
                  "key": "locator",
                  "value": "<string>"
                },
                {
                  "description": "Fields to include in the response (for partial responses)",
                  "key": "fields",
                  "value": "<string>"
                }
              ]
            },
            "description": "Returns a list of all investigations."
          },
          "response": [
            {
              "id": "aa5b20dc-56d5-4873-b7dd-19a27bbd880e",
              "name": "Successful response",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/investigations?locator=<string>&fields=<string>",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "investigations"
                  ],
                  "query": [
                    {
                      "description": "TeamCity locator string to filter results",
                      "key": "locator",
                      "value": "<string>"
                    },
                    {
                      "description": "Fields to include in the response (for partial responses)",
                      "key": "fields",
                      "value": "<string>"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"count\": \"<integer>\",\n  \"investigation\": [\n    {\n      \"id\": \"<string>\",\n      \"state\": \"TAKEN\",\n      \"assignee\": {\n        \"id\": \"<long>\",\n        \"username\": \"<string>\",\n        \"name\": \"<string>\",\n        \"email\": \"<string>\",\n        \"href\": \"<string>\",\n        \"lastLogin\": \"<string>\",\n        \"roles\": {\n          \"role\": [\n            {\n              \"roleId\": \"<string>\",\n              \"scope\": \"<string>\",\n              \"href\": \"<string>\"\n            },\n            {\n              \"roleId\": \"<string>\",\n              \"scope\": \"<string>\",\n              \"href\": \"<string>\"\n            }\n          ]\n        },\n        \"groups\": {\n          \"count\": \"<integer>\",\n          \"group\": [\n            {\n              \"key\": \"<string>\",\n              \"name\": \"<string>\",\n              \"description\": \"<string>\",\n              \"href\": \"<string>\",\n              \"roles\": {\n                \"role\": [\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  },\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  }\n                ]\n              }\n            },\n            {\n              \"key\": \"<string>\",\n              \"name\": \"<string>\",\n              \"description\": \"<string>\",\n              \"href\": \"<string>\",\n              \"roles\": {\n                \"role\": [\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  },\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  }\n                ]\n              }\n            }\n          ]\n        }\n      },\n      \"assignment\": {\n        \"user\": {\n          \"id\": \"<long>\",\n          \"username\": \"<string>\",\n          \"name\": \"<string>\",\n          \"email\": \"<string>\",\n          \"href\": \"<string>\",\n          \"lastLogin\": \"<string>\",\n          \"roles\": {\n            \"role\": [\n              {\n                \"roleId\": \"<string>\",\n                \"scope\": \"<string>\",\n                \"href\": \"<string>\"\n              },\n              {\n                \"roleId\": \"<string>\",\n                \"scope\": \"<string>\",\n                \"href\": \"<string>\"\n              }\n            ]\n          },\n          \"groups\": {\n            \"count\": \"<integer>\",\n            \"group\": [\n              {\n                \"key\": \"<string>\",\n                \"name\": \"<string>\",\n                \"description\": \"<string>\",\n                \"href\": \"<string>\",\n                \"roles\": {\n                  \"role\": [\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    },\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    }\n                  ]\n                }\n              },\n              {\n                \"key\": \"<string>\",\n                \"name\": \"<string>\",\n                \"description\": \"<string>\",\n                \"href\": \"<string>\",\n                \"roles\": {\n                  \"role\": [\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    },\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    }\n                  ]\n                }\n              }\n            ]\n          }\n        },\n        \"timestamp\": \"<string>\",\n        \"text\": \"<string>\"\n      },\n      \"scope\": {},\n      \"target\": {},\n      \"resolution\": {}\n    },\n    {\n      \"id\": \"<string>\",\n      \"state\": \"GIVEN_UP\",\n      \"assignee\": {\n        \"id\": \"<long>\",\n        \"username\": \"<string>\",\n        \"name\": \"<string>\",\n        \"email\": \"<string>\",\n        \"href\": \"<string>\",\n        \"lastLogin\": \"<string>\",\n        \"roles\": {\n          \"role\": [\n            {\n              \"roleId\": \"<string>\",\n              \"scope\": \"<string>\",\n              \"href\": \"<string>\"\n            },\n            {\n              \"roleId\": \"<string>\",\n              \"scope\": \"<string>\",\n              \"href\": \"<string>\"\n            }\n          ]\n        },\n        \"groups\": {\n          \"count\": \"<integer>\",\n          \"group\": [\n            {\n              \"key\": \"<string>\",\n              \"name\": \"<string>\",\n              \"description\": \"<string>\",\n              \"href\": \"<string>\",\n              \"roles\": {\n                \"role\": [\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  },\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  }\n                ]\n              }\n            },\n            {\n              \"key\": \"<string>\",\n              \"name\": \"<string>\",\n              \"description\": \"<string>\",\n              \"href\": \"<string>\",\n              \"roles\": {\n                \"role\": [\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  },\n                  {\n                    \"roleId\": \"<string>\",\n                    \"scope\": \"<string>\",\n                    \"href\": \"<string>\"\n                  }\n                ]\n              }\n            }\n          ]\n        }\n      },\n      \"assignment\": {\n        \"user\": {\n          \"id\": \"<long>\",\n          \"username\": \"<string>\",\n          \"name\": \"<string>\",\n          \"email\": \"<string>\",\n          \"href\": \"<string>\",\n          \"lastLogin\": \"<string>\",\n          \"roles\": {\n            \"role\": [\n              {\n                \"roleId\": \"<string>\",\n                \"scope\": \"<string>\",\n                \"href\": \"<string>\"\n              },\n              {\n                \"roleId\": \"<string>\",\n                \"scope\": \"<string>\",\n                \"href\": \"<string>\"\n              }\n            ]\n          },\n          \"groups\": {\n            \"count\": \"<integer>\",\n            \"group\": [\n              {\n                \"key\": \"<string>\",\n                \"name\": \"<string>\",\n                \"description\": \"<string>\",\n                \"href\": \"<string>\",\n                \"roles\": {\n                  \"role\": [\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    },\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    }\n                  ]\n                }\n              },\n              {\n                \"key\": \"<string>\",\n                \"name\": \"<string>\",\n                \"description\": \"<string>\",\n                \"href\": \"<string>\",\n                \"roles\": {\n                  \"role\": [\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    },\n                    {\n                      \"roleId\": \"<string>\",\n                      \"scope\": \"<string>\",\n                      \"href\": \"<string>\"\n                    }\n                  ]\n                }\n              }\n            ]\n          }\n        },\n        \"timestamp\": \"<string>\",\n        \"text\": \"<string>\"\n      },\n      \"scope\": {},\n      \"target\": {},\n      \"resolution\": {}\n    }\n  ]\n}",
              "createdAt": "2026-07-28T03:08:55.000Z",
              "updatedAt": "2026-07-28T03:08:55.000Z",
              "uid": "35240-aa5b20dc-56d5-4873-b7dd-19a27bbd880e"
            }
          ],
          "createdAt": "2026-07-28T03:08:55.000Z",
          "updatedAt": "2026-07-28T03:08:55.000Z",
          "uid": "35240-b32c8b3d-1f7b-41af-9bb3-43b27557a017"
        }
      ],
      "id": "fe9f7306-3698-45c2-9b67-4cc2f8c7595b",
      "createdAt": "2026-07-28T03:08:55.000Z",
      "updatedAt": "2026-07-28T03:08:55.000Z",
      "uid": "35240-fe9f7306-3698-45c2-9b67-4cc2f8c7595b"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "server",
      "value": "teamcity.example.com"
    },
    {
      "key": "baseUrl",
      "value": "https://{{server}}/app/rest"
    }
  ]
}