Current section
Files
Jump to
Current section
Files
priv/docs/methods/team.info.json
{
"args": {
"domain": {
"desc": "Query by domain instead of team (only when team is null). This only works for domains in the same enterprise as the querying team token. This also expects the domain to belong to a team and not the enterprise itself. This is the value set up for the 'Joining This Workspace' workspace setting. If it contains more than one domain, the field will contain multiple comma-separated domain values. If no domain is set, the field is empty.",
"required": false,
"type": "string"
},
"team": {
"desc": "Team to get info about; if omitted, will return information about the current team.",
"required": false,
"type": "string"
}
},
"desc": "Gets information about the current team.",
"errors": {
"enterprise_not_found": "The `enterprise` was not found.",
"fail_to_get_teams_for_restricted_user": "Failed to get teams for restricted user.",
"missing_user": "The `user` was not found.",
"org_not_found": "The `org` was not found.",
"team_not_found": "The `team` was not found.",
"team_not_on_enterprise": "Cannot query team by domain because team is not on an enterprise.",
"user_not_found": "The `user` was not found."
},
"rate_limit": {
"label": "Tier 3: 50+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"bot": [
{
"name": "team:read",
"url": "https://docs.slack.dev/reference/scopes/team.read"
}
],
"user": [
{
"name": "team:read",
"url": "https://docs.slack.dev/reference/scopes/team.read"
}
]
}
}