GET
/api/v1/teamsCode Examples
Response
Returns200 OK with a data array of team objects.
Response Fields
array
required
Array of team objects in the workspace.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use GET /api/v1/teams to retrieve all agent teams in your ChatbotX workspace, including each team’s name, membership list, and user profile details.
/api/v1/teamscurl --request GET \
--url https://app.chatbotx.io/api/v1/teams \
--header 'Authorization: Bearer <token>'
import requests
url = "https://app.chatbotx.io/api/v1/teams"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.json())
const options = {
method: 'GET',
headers: { Authorization: 'Bearer <token>' }
};
fetch('https://app.chatbotx.io/api/v1/teams', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
200 OK with a data array of team objects.
Show data item fields
id — unique membership record IDinboxTeamId — the team this record belongs touserId — the ID of the useruser — the user’s full profile, including id, name, email, image, emailVerified, and isAnonymous{
"data": [
{
"id": "team_001",
"name": "Technical Support",
"workspaceId": "42",
"createdAt": "2023-03-10T07:00:00Z",
"updatedAt": "2024-02-01T11:00:00Z",
"inboxTeamMembers": [
{
"id": "tm_001",
"inboxTeamId": "team_001",
"userId": "usr_agent_01",
"user": {
"id": "usr_agent_01",
"name": "Jane Smith",
"email": "jane@acme.com",
"image": "https://cdn.chatbotx.io/avatars/jane.png",
"emailVerified": true,
"isAnonymous": false,
"createdAt": "2023-01-20T08:00:00Z",
"updatedAt": "2024-01-10T09:30:00Z"
}
}
]
}
]
}