Files

39 lines
879 B
YAML

tags:
- Teams
operationId: list-all-teams
summary: List all teams
security:
- userApiKey: []
description: List all teams available in the current account
x-codeSamples:
- lang: python
label: "List all teams"
source: |
from chatwoot import ChatwootClient
client = ChatwootClient(
base_url="https://app.chatwoot.com",
api_token="your-api-token"
)
teams = client.teams.list(account_id=1)
for team in teams:
print(team.id, team.name)
responses:
'200':
description: Success
content:
application/json:
schema:
type: array
description: 'Array of teams'
items:
$ref: '#/components/schemas/team'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/bad_request_error'