curl --location --request GET 'https://slack.com/api/admin.teams.list' \
--header 'token;'
{
"ok": true,
"teams": [
{
"discoverability": "hidden",
"id": "T1234",
"name": "My Team",
"primary_owner": {
"email": "bront@slack.com",
"user_id": "W1234"
},
"team_url": "https://subarachnoid.slack.com/"
}
]
}
cursor
to next_cursor
returned by the previous call to list items in the next page.admin.teams:read