Skip to content

Slack: Gets information about the current team

Slack team.info: arguments, response, policy and SDK examples.

← Team operations · Get started

Operation slack.team_info

Provider route: GET /team.info. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/slack with npm, or alter-sdk-slack with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { SlackIntegration } from "@alter-ai/slack";
async function execute(input: Parameters<SlackIntegration["team"]["info"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new SlackIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.team.info(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_slack import SlackIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = SlackIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.team.info(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.domainstringOptional
query.teamstringOptional

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRootSchema for successful response from team.info method
okbooleanRequired within parentMust equal: true
teamModelOptionalExpand Gets information about the current team — response body — team

Referenced models: Gets information about the current team — response body — team

Gets information about the current team — response body — team
FieldTypePresenceDescription and constraints
$objectRoot
archivedbooleanOptional
avatar_base_urlstringOptionalFormat: uri
createdJSONOptional
created (anyOf 1)integerAlternative
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
date_createJSONOptional
date_create (anyOf 1)integerAlternative
date_create (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
deletedbooleanOptional
descriptionJSONOptional
description (anyOf 1)nullAlternative
description (anyOf 2)stringAlternative
discoverableJSONOptional
discoverable (anyOf 1)nullAlternative
discoverable (anyOf 2)stringAlternative
domainstringOptional
email_domainstringOptional
enterprise_idstringOptional
enterprise_namestringOptional
external_org_migrationsModelOptionalExpand Gets information about the current team — response body — team external org migrations
has_compliance_exportbooleanOptional
iconModelOptionalExpand Gets information about the current team — response body — team icon
idstringOptional
is_assignedbooleanOptional
is_enterpriseJSONOptional
is_enterprise (anyOf 1)integerAlternative
is_enterprise (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
is_over_storage_limitbooleanOptional
limit_tsJSONOptional
limit_ts (anyOf 1)integerAlternative
limit_ts (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
localestringOptional
messages_countJSONOptional
messages_count (anyOf 1)integerAlternative
messages_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
msg_edit_window_minsJSONOptional
msg_edit_window_mins (anyOf 1)integerAlternative
msg_edit_window_mins (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
namestringOptional
over_integrations_limitbooleanOptional
over_storage_limitbooleanOptional
pay_prod_curstringOptional
planstringOptionalKnown values: "" (empty string), std, plus, compliance, enterprise
primary_ownerModelOptionalExpand Gets information about the current team — response body — team primary owner
sso_providerobjectOptional
sso_provider.labelstringOptional
sso_provider.namestringOptional
sso_provider.typestringOptional

Referenced models: Gets information about the current team — response body — team external org migrations, Gets information about the current team — response body — team icon, Gets information about the current team — response body — team primary owner

Gets information about the current team — response body — team external org migrations
FieldTypePresenceDescription and constraints
$objectRoot
currentarrayOptional
current[]objectEach item
current[].date_startedJSONOptional
current[].date_started (anyOf 1)integerAlternative
current[].date_started (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
current[].team_idstringOptional
date_updatedJSONOptional
date_updated (anyOf 1)integerAlternative
date_updated (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Gets information about the current team — response body — team icon
FieldTypePresenceDescription and constraints
$objectRoot
image_102stringOptional
image_132stringOptional
image_230stringOptional
image_34stringOptional
image_44stringOptional
image_68stringOptional
image_88stringOptional
image_defaultbooleanOptional
Gets information about the current team — response body — team primary owner
FieldTypePresenceDescription and constraints
$objectRoot
emailstringOptional
idstringOptional

SDK function policy ID: slack.team_info. Catalog operation: team_info. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["team:read"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.