curl --location --request GET 'https://api.wordsmith.ai/api/v1/teams' \
--header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch("https://api.wordsmith.ai/api/v1/teams", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.wordsmith.ai/api/v1/teams"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())
[
{
"id": "1a2b3c4d-5e6f-7081-9200-aabbccddeeff",
"name": "Legal",
"member_count": 8,
"direct_member_count": 5,
"parent_team_id": null,
"member_ids": [
"11111111-2222-3333-4444-555555555555"
]
}
]
Directory
List Teams
List the teams in your organization.
GET
/
api
/
v1
/
teams
curl --location --request GET 'https://api.wordsmith.ai/api/v1/teams' \
--header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch("https://api.wordsmith.ai/api/v1/teams", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.wordsmith.ai/api/v1/teams"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())
[
{
"id": "1a2b3c4d-5e6f-7081-9200-aabbccddeeff",
"name": "Legal",
"member_count": 8,
"direct_member_count": 5,
"parent_team_id": null,
"member_ids": [
"11111111-2222-3333-4444-555555555555"
]
}
]
Team ids are what
assigned_team_id and the sharing endpoints expect.
Teams can nest: parent_team_id is set on a sub-team, member_count counts the whole roster including sub-teams, and direct_member_count counts only this team’s own members.
curl --location --request GET 'https://api.wordsmith.ai/api/v1/teams' \
--header 'Authorization: Bearer YOUR_API_KEY'
const response = await fetch("https://api.wordsmith.ai/api/v1/teams", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.wordsmith.ai/api/v1/teams"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())
[
{
"id": "1a2b3c4d-5e6f-7081-9200-aabbccddeeff",
"name": "Legal",
"member_count": 8,
"direct_member_count": 5,
"parent_team_id": null,
"member_ids": [
"11111111-2222-3333-4444-555555555555"
]
}
]
⌘I