---
title: Retrieves a single team from your account.
slug: retrieves-a-single-team-from-your-account
docTags: 
createdAt: 2025-01-28T10:28:11.769Z
---

{
  "id": "rGbEZkdOnS4eB6NvpT_oz",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.waydev.co/v2/teams/{team_id}",
    "name": "Retrieves a single team from your account.",
    "description": "<p>It retrieves all information (basic team fields, team members, team settings and team lineage info) related to a specific team. It also returns a list of contributors that are members in the team (at most 10 members in the list. For all members check the specific route).</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "team_id",
          "type": "string",
          "description": "Id of the Team"
        }
      ],
      "headerParameters": [
        {
          "kind": "required",
          "name": "Authorization",
          "type": "string",
          "description": "Your PAT generated in Waydev"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Successful operation",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "number",
                "example": 1231
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "example": "Team 1"
              },
              {
                "name": "slug",
                "kind": "optional",
                "type": "string",
                "example": "123131-team-1"
              },
              {
                "name": "created_at",
                "kind": "optional",
                "type": "string",
                "example": "2023-10-20T07:41:22.000000Z"
              },
              {
                "name": "updated_at",
                "kind": "optional",
                "type": "string",
                "example": "2024-02-12T09:49:18.000000Z"
              },
              {
                "name": "members_count",
                "kind": "optional",
                "type": "number",
                "example": 2
              },
              {
                "name": "members",
                "kind": "optional",
                "type": "array",
                "example": "[{\"id\":1465,\"email\":\"dev1@example.co\"},{\"id\":1466,\"email\":\"dev2@example.co\"}]",
                "itemType": "object",
                "customType": "object[]",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer",
                    "example": 1465
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string",
                    "example": "dev1@example.cp"
                  }
                ]
              },
              {
                "name": "lineage",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "parent_id",
                    "kind": "optional",
                    "type": "number",
                    "example": 1031
                  },
                  {
                    "name": "children_count",
                    "kind": "optional",
                    "type": "number",
                    "example": 3
                  },
                  {
                    "name": "ancestors_ids",
                    "kind": "optional",
                    "type": "array",
                    "example": "[1031,1030]",
                    "itemType": "integer",
                    "customType": "integer[]",
                    "itemExample": "",
                    "itemDefault": ""
                  },
                  {
                    "name": "descendants_ids",
                    "kind": "optional",
                    "type": "array",
                    "example": "[1400,1410]",
                    "itemType": "integer",
                    "customType": "integer[]",
                    "itemExample": "",
                    "itemDefault": ""
                  }
                ]
              },
              {
                "name": "settings",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "ignore_message",
                    "kind": "optional",
                    "type": "string",
                    "example": "null"
                  },
                  {
                    "name": "ignore_loc",
                    "kind": "optional",
                    "type": "number",
                    "example": 5
                  },
                  {
                    "name": "include_merges",
                    "kind": "optional",
                    "type": "boolean",
                    "example": "false"
                  },
                  {
                    "name": "stats_timezone",
                    "kind": "optional",
                    "type": "string",
                    "example": "-07:00"
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Unauthorized",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "example": "Unauthorized"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Resourse not found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Resourse not found",
            "schema": [
              {
                "name": "error",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "example": "Not Found!"
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "FMCQAliGiKz3A_bk38R9e",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://api.waydev.co/v2/teams/{team_id} \\\n     --header 'accept: application/json' \\\n     --header 'authorization: string'"
        },
        {
          "id": "iNBytUoByXWGkumAJWIBJ",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"authorization\", \"string\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.waydev.co/v2/teams/{team_id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "wn5YMdvx9SmRDDQ_LgfXo",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.waydev.co/v2/teams/{team_id}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"authorization\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "KT2vsq1JeuT8dQ3SV7k-r",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.waydev.co/v2/teams/{team_id}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'authorization': 'string'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "FMCQAliGiKz3A_bk38R9e"
    },
    "results": {
      "languages": [
        {
          "id": "nCMFj_SiU3It5hjHnOj1Q",
          "language": "200",
          "code": "// Successful operation\n{\n  \"id\": 1231,\n  \"name\": \"Team 1\",\n  \"slug\": \"123131-team-1\",\n  \"created_at\": \"2023-10-20T07:41:22.000000Z\",\n  \"updated_at\": \"2024-02-12T09:49:18.000000Z\",\n  \"members_count\": 2,\n  \"members\": [\n    {\n      \"id\": 1465,\n      \"email\": \"dev1@example.cp\"\n    }\n  ],\n  \"lineage\": {\n    \"parent_id\": 1031,\n    \"children_count\": 3,\n    \"ancestors_ids\": [\n      0\n    ],\n    \"descendants_ids\": [\n      0\n    ]\n  },\n  \"settings\": {\n    \"ignore_message\": \"null\",\n    \"ignore_loc\": 5,\n    \"include_merges\": \"false\",\n    \"stats_timezone\": \"-07:00\"\n  }\n}"
        },
        {
          "id": "MeFpZAlpoSbOY41quL7iH",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"Unauthorized\"\n}"
        },
        {
          "id": "sq3wBH6bMkB3MmYy09vzC",
          "language": "404",
          "code": "// Resourse not found\n{\n  \"error\": {\n    \"message\": \"Not Found!\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "nCMFj_SiU3It5hjHnOj1Q"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}