List the teams of the account
GET /account_teams
/account_teamsLists the teams the users of the account are grouped in, by name, with how many active users each one has.
When to use: To find the uuid of a team before writing it in a workflow (create_workflow, update_workflow): the approver {"type": "team", "uuid": …} of human-review and ai-agent, the recipients {"team": …} of internal-notification-send and {"kind": "team", "id": …} in a round robin rotation of the field rows. To see who is in a team, call list_account_members with team (it needs account.users.read or account.teams.read; with only automations.work a team gives only its member_count, as in the workflow editor).
When not to use: For one person, use list_account_members. A team with member_count 0 has nobody to approve, receive or take a turn.
Filters: No filters. All the teams come in one response; there is no pagination.
Permissions: Requires any of the account.teams.read or automations.work capabilities.
Value for the X-Auth-Token header parameter.
In: header
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/account_teams" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "member_count": 0 }]