Retrieves a single team from your account.
1 min
GET
https://api.waydev.co/v2/teams/{team_id}
Path Parameters
- team_idstringrequiredDescription
Header Parameters
- AuthorizationstringrequiredDescription
Responses
200
- objectDescription
- idnumberExample
- namestringExample
- slugstringExample
- created_atstringExample
- updated_atstringExample
- members_countnumberExample
- membersobject[]Example
[ { "id": 1465, "email": "[email protected]" }, { "id": 1466, "email": "[email protected]" } ]- idintegerExample
- emailstringExample
- lineageobject
- parent_idnumberExample
- children_countnumberExample
- ancestors_idsinteger[]Example
[ 1031, 1030 ]
- descendants_idsinteger[]Example
[ 1400, 1410 ]
- settingsobject
- ignore_messagestringExample
- ignore_locnumberExample
- include_mergesbooleanExample
- stats_timezonestringExample
401
- objectDescription
- messagestringExample
404
- objectDescription
- errorobject
- messagestringExample
curl
curl --request GET \
--url https://api.waydev.co/v2/teams/{team_id} \
--header 'accept: application/json' \
--header 'authorization: string'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.waydev.co/v2/teams/{team_id}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.waydev.co/v2/teams/{team_id}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["authorization"] = "string"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.waydev.co/v2/teams/{team_id}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'authorization': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful operation
{
"id": 1231,
"name": "Team 1",
"slug": "123131-team-1",
"created_at": "2023-10-20T07:41:22.000000Z",
"updated_at": "2024-02-12T09:49:18.000000Z",
"members_count": 2,
"members": [
{
"id": 1465,
"email": "[email protected]"
}
],
"lineage": {
"parent_id": 1031,
"children_count": 3,
"ancestors_ids": [
0
],
"descendants_ids": [
0
]
},
"settings": {
"ignore_message": "null",
"ignore_loc": 5,
"include_merges": "false",
"stats_timezone": "-07:00"
}
}401
// Unauthorized
{
"message": "Unauthorized"
}404
// Resourse not found
{
"error": {
"message": "Not Found!"
}
}