List Teams
curl --request GET \
--url https://statsigapi.net/console/v1/users/teams \
--header 'STATSIG-API-KEY: <api-key>'import requests
url = "https://statsigapi.net/console/v1/users/teams"
headers = {"STATSIG-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'STATSIG-API-KEY': '<api-key>'}};
fetch('https://statsigapi.net/console/v1/users/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://statsigapi.net/console/v1/users/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 => [
"STATSIG-API-KEY: <api-key>"
],
]);
$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://statsigapi.net/console/v1/users/teams"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("STATSIG-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://statsigapi.net/console/v1/users/teams")
.header("STATSIG-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://statsigapi.net/console/v1/users/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["STATSIG-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Teams listed successfully.",
"data": [
{
"name": "test",
"members": [
{
"email": "Test User@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "Test User@statsig.com",
"firstName": "test",
"lastName": "",
"role": "admin"
},
{
"email": "Test User@statsig.com",
"firstName": "test",
"lastName": "",
"role": "admin"
}
],
"admins": [],
"defaultGateMetrics": [],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": []
},
{
"name": "Console Team",
"members": [
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test",
"lastName": "User",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test",
"lastName": "User",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test",
"lastName": "User",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test2",
"lastName": "User2",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "",
"role": "member"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "member"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "member"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "Owner"
}
],
"admins": [],
"defaultGateMetrics": [],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": []
},
{
"name": "WHN-ish Team",
"members": [
{
"email": "d@statsig.com",
"firstName": "d",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "test",
"role": "admin"
}
],
"admins": [
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "test",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "test",
"role": "admin"
}
],
"defaultGateMetrics": [
{
"name": "MA Custom Metric 2",
"type": "event_user"
},
{
"name": "MA Custom Metric 9",
"type": "event_count_custom"
},
{
"name": "MA Custom Metric 3",
"type": "event_count_custom"
}
],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [
{
"name": "MA Custom Metric 2",
"type": "event_user"
},
{
"name": "MA Custom Metric 9",
"type": "event_count_custom"
},
{
"name": "MA Custom Metric 3",
"type": "event_count_custom"
}
],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "team_only",
"reviewApproval": "team_only",
"defaultTargetApplications": []
}
],
"pagination": {
"itemsPerPage": 3,
"pageNumber": 1,
"totalItems": 8,
"nextPage": "/console/v1/users/teams?page=2&limit=3",
"previousPage": null,
"all": "/console/v1/users/teams"
}
}{
"status": 400,
"message": "Invalid request. Please check the request input and try again."
}{
"status": 401,
"message": "This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx"
}Users
List Teams
GET
/
console
/
v1
/
users
/
teams
List Teams
curl --request GET \
--url https://statsigapi.net/console/v1/users/teams \
--header 'STATSIG-API-KEY: <api-key>'import requests
url = "https://statsigapi.net/console/v1/users/teams"
headers = {"STATSIG-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'STATSIG-API-KEY': '<api-key>'}};
fetch('https://statsigapi.net/console/v1/users/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://statsigapi.net/console/v1/users/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 => [
"STATSIG-API-KEY: <api-key>"
],
]);
$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://statsigapi.net/console/v1/users/teams"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("STATSIG-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://statsigapi.net/console/v1/users/teams")
.header("STATSIG-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://statsigapi.net/console/v1/users/teams")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["STATSIG-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Teams listed successfully.",
"data": [
{
"name": "test",
"members": [
{
"email": "Test User@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "Test User@statsig.com",
"firstName": "test",
"lastName": "",
"role": "admin"
},
{
"email": "Test User@statsig.com",
"firstName": "test",
"lastName": "",
"role": "admin"
}
],
"admins": [],
"defaultGateMetrics": [],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": []
},
{
"name": "Console Team",
"members": [
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test",
"lastName": "User",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test",
"lastName": "User",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test",
"lastName": "User",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "Test2",
"lastName": "User2",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "",
"role": "member"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "member"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "member"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "user",
"role": "Owner"
}
],
"admins": [],
"defaultGateMetrics": [],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "anyone",
"reviewApproval": "anyone",
"defaultTargetApplications": []
},
{
"name": "WHN-ish Team",
"members": [
{
"email": "d@statsig.com",
"firstName": "d",
"lastName": "user",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "test",
"role": "admin"
}
],
"admins": [
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "test",
"role": "admin"
},
{
"email": "test@statsig.com",
"firstName": "test",
"lastName": "test",
"role": "admin"
}
],
"defaultGateMetrics": [
{
"name": "MA Custom Metric 2",
"type": "event_user"
},
{
"name": "MA Custom Metric 9",
"type": "event_count_custom"
},
{
"name": "MA Custom Metric 3",
"type": "event_count_custom"
}
],
"defaultExperimentPrimaryMetrics": [],
"defaultExperimentSecondaryMetrics": [
{
"name": "MA Custom Metric 2",
"type": "event_user"
},
{
"name": "MA Custom Metric 9",
"type": "event_count_custom"
},
{
"name": "MA Custom Metric 3",
"type": "event_count_custom"
}
],
"defaultHoldoutMetrics": [],
"changeTeamConfigs": "team_only",
"reviewApproval": "team_only",
"defaultTargetApplications": []
}
],
"pagination": {
"itemsPerPage": 3,
"pageNumber": 1,
"totalItems": 8,
"nextPage": "/console/v1/users/teams?page=2&limit=3",
"previousPage": null,
"all": "/console/v1/users/teams"
}
}{
"status": 400,
"message": "Invalid request. Please check the request input and try again."
}{
"status": 401,
"message": "This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx"
}Authorizations
Headers
Optional header to respect review settings for mutation endpoints.
Response
Get teams response
⌘I

