List Teams
curl --request GET \
--url https://api.example.com/api/v1/teams \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/teams"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/teams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/teams"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/teams")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"teams": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_type": "<string>",
"display_name": "<string>",
"status": "<string>",
"tier": "<string>",
"operation_mode": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workflow_phase": "onboarding",
"workflow_phase_label": "Setting Up",
"trigger_mode": "strategy-driven",
"default_currency": "USD",
"auto_config": {},
"orchestrator_cadence": {},
"content_strategy": {},
"stripe_subscription_id": "<string>",
"config": {},
"onboarding_step": "pending",
"connected_accounts": [],
"brand_kit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_name": "<string>",
"hired_at": "2023-11-07T05:31:56Z",
"paused_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"subscription_ends_at": "2023-11-07T05:31:56Z"
}
]
}Teams
List Teams
List the caller’s teams.
PR 5c (Class-C volume reduction, 2026-05-16 audit): emits
Cache-Control: private, max-age=15 + a weak ETag. The
browser-side cache absorbs most of the polling traffic that made
this the #1 Sentry saturation source. After max-age expires,
revalidation hits this handler with If-None-Match and gets a
304 if the team set hasn’t changed — cheap enough that bandwidth +
re-render are saved even on the cache-miss path.
The query itself (team_service.list_teams) is unchanged; the
fix is purely the response envelope. See
docs/plans/2026-05-16-session-boundary-cleanup.md §PR 5c.
GET
/
api
/
v1
/
teams
List Teams
curl --request GET \
--url https://api.example.com/api/v1/teams \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/teams"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/teams",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/teams"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/teams")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"teams": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"team_type": "<string>",
"display_name": "<string>",
"status": "<string>",
"tier": "<string>",
"operation_mode": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workflow_phase": "onboarding",
"workflow_phase_label": "Setting Up",
"trigger_mode": "strategy-driven",
"default_currency": "USD",
"auto_config": {},
"orchestrator_cadence": {},
"content_strategy": {},
"stripe_subscription_id": "<string>",
"config": {},
"onboarding_step": "pending",
"connected_accounts": [],
"brand_kit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"brand_name": "<string>",
"hired_at": "2023-11-07T05:31:56Z",
"paused_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z",
"subscription_ends_at": "2023-11-07T05:31:56Z"
}
]
}Was this page helpful?
⌘I