List workspaces
curl --request GET \
--url https://app.nudgen.net/api/v1/teams \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.nudgen.net/api/v1/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.nudgen.net/api/v1/teams"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"teams": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"role": "<string>",
"isBetaTester": true
}
],
"activeTeam": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"role": "<string>",
"isBetaTester": true
},
"isAdmin": true,
"canCreateTeam": true
}{
"error": "<string>"
}API reference
List workspaces
Lists workspaces available to the token owner and identifies the active workspace.
GET
/
api
/
v1
/
teams
List workspaces
curl --request GET \
--url https://app.nudgen.net/api/v1/teams \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.nudgen.net/api/v1/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.nudgen.net/api/v1/teams"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"teams": [
{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"role": "<string>",
"isBetaTester": true
}
],
"activeTeam": {
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"role": "<string>",
"isBetaTester": true
},
"isAdmin": true,
"canCreateTeam": true
}{
"error": "<string>"
}Was this page helpful?