Get a team
curl --request GET \
--url https://my.server.express/api/v1/user/teams/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/user/teams/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/user/teams/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"role": "OWNER",
"isOwner": true,
"canManage": true,
"createdAt": "2023-11-07T05:31:56Z",
"members": [
{
"userId": "<string>",
"name": "<string>",
"email": "[email protected]",
"role": "OWNER",
"isOwner": true,
"isYou": true,
"joinedAt": "2023-11-07T05:31:56Z"
}
],
"invites": [
{
"id": "<string>",
"email": "[email protected]",
"role": "OWNER",
"expired": true,
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"services": [
{
"id": "<string>",
"label": "<string>",
"type": "DEDICATED",
"status": "ACTIVE",
"ownedByYou": true,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Teams
Get a team
Members, pending invites and shared services. Any member may read it; invites is empty unless the caller can manage
(OWNER or ADMIN). Expired invites stay listed with expired: true. Unpaid dedicated orders are left out of services.
A team you’re not in is 404.
GET
/
v1
/
user
/
teams
/
{id}
Get a team
curl --request GET \
--url https://my.server.express/api/v1/user/teams/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/user/teams/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/user/teams/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"role": "OWNER",
"isOwner": true,
"canManage": true,
"createdAt": "2023-11-07T05:31:56Z",
"members": [
{
"userId": "<string>",
"name": "<string>",
"email": "[email protected]",
"role": "OWNER",
"isOwner": true,
"isYou": true,
"joinedAt": "2023-11-07T05:31:56Z"
}
],
"invites": [
{
"id": "<string>",
"email": "[email protected]",
"role": "OWNER",
"expired": true,
"expiresAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"services": [
{
"id": "<string>",
"label": "<string>",
"type": "DEDICATED",
"status": "ACTIVE",
"ownedByYou": true,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}