Skip to content

Integrations

Slack

Connect a Slack app bot token to Alter Vault for governed access to the Slack Web API

The Slack Web API methods a bot token can call are available through SlackIntegration from the separate @alter-ai/slack (TypeScript) or alter-sdk-slack (Python) package and alter integrations, on a bot token stored as a managed secret as well as on an OAuth connection. See managed Slack and the operation reference. Raw provider requests remain available.

A workspace can install its own Slack app and store the app’s bot token in Alter Vault. Agents and services then call the Slack Web API through Alter without ever holding the token, and every call is governed by Alter policy, the same policy that governs a Slack OAuth connection: a rule on a message’s channel matches the same requests on either kind.

This page covers a bot token the workspace stores itself. To connect users’ workspaces through Alter’s Connect flow (OAuth), see Slack OAuth.

PropertyValue
Template IDslack
CategoryCommunication
Credential TypeBot User OAuth Token (xoxb-…)
API hostslack.com

Open the Slack app

Open Your Apps and choose the workspace’s Slack app, or click Create New App.

Add bot scopes

Open OAuth & Permissions and add the Bot Token Scopes the integration needs, for example chat:write to post messages and reactions:read to read reactions. See the scope list.

Install the app

Click Install to Workspace (or Reinstall after changing scopes) and approve the install.

Copy the token

Copy the Bot User OAuth Token, which starts with xoxb-.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Slack

Go to Managed Secrets > Add Provider > Slack.

Enter the token

Paste the bot token into the credential field and set the allowed host to slack.com.

Save

Click Save. You’ll receive a grant_id to use with the SDK. Alter checks the token with Slack when you save: a token Slack reports as invalid, revoked, expired or of a type the Web API refuses is refused, and any other answer saves the token with a “could not verify” notice.

The same save works from the CLI:

Terminal window
alter managed-secrets create --name slack-workspace --template slack --credential-value -
alter managed-secrets set-allowed-hosts <provider-slug> --host slack.com
from alter_sdk import App
from alter_sdk_slack import SlackIntegration
async def post_summary(api_key: str, grant_id: str):
async with App(api_key=api_key) as app:
client = SlackIntegration(app, {"grant_id": grant_id})
call = await client.chat.post_message(
{"body": {"channel": "C0123456789", "text": "Run summary is ready"}}
)
result = await call.wait()
return result.body_json()

Every call made with a Slack grant runs through Alter’s policy rules, with the same operations, families and parameters as a Slack OAuth connection: see managed Slack. For example, a content rule that denies chat.postMessage when channel is not in a list of channel IDs limits the bot to those channels.

Use alter policy simulate or Explain a request in the Developer Portal to see which operation and family a Slack request classifies as before you rely on a rule. See Policies and Set policies.

  • The token is injected as Authorization: Bearer <token>.
  • A bot token can do only what its Bot Token Scopes allow, in the conversations the bot is a member of.
  • Slack revokes the token when the app is uninstalled. Rotate the secret in Alter with the new token after reinstalling (Developer Portal, or alter managed-secrets credentials rotate).
  • Slack answers most failures with HTTP 200 and {"ok": false}; managed SDK calls report them as provider faults.
  • Uploads to the URL that files.getUploadURLExternal returns go to files.slack.com; add that host if the integration uploads files.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider pathNotes
api_testreadGET/api/api.test—
auth_testreadGET/api/auth.test—
bots_inforeadGET/api/bots.info—
calls_inforeadGET/api/calls.info—
chat_getPermalinkreadGET/api/chat.getPermalink—
chat_scheduledMessages_listreadGET/api/chat.scheduledMessages.list—
conversations_historyreadGET/api/conversations.history—
conversations_inforeadGET/api/conversations.info—
conversations_listreadGET/api/conversations.list—
conversations_membersreadGET/api/conversations.members—
conversations_repliesreadGET/api/conversations.replies—
dnd_inforeadGET/api/dnd.info—
dnd_teamInforeadGET/api/dnd.teamInfo—
emoji_listreadGET/api/emoji.list—
files_inforeadGET/api/files.info—
files_listreadGET/api/files.list—
files_remote_inforeadGET/api/files.remote.info—
files_remote_listreadGET/api/files.remote.list—
files_remote_sharesend, writeGET/api/files.remote.share—
migration_exchangereadGET/api/migration.exchange—
pins_listreadGET/api/pins.list—
reactions_getreadGET/api/reactions.get—
reactions_listreadGET/api/reactions.list—
search_messagesreadGET/api/search.messagesRetained policy identity: in Slack’s description, but it needs a user token this connection never holds, so the managed contract does not publish it
team_inforeadGET/api/team.info—
team_profile_getreadGET/api/team.profile.get—
usergroups_listreadGET/api/usergroups.list—
usergroups_users_listreadGET/api/usergroups.users.list—
users_conversationsreadGET/api/users.conversations—
users_getPresencereadGET/api/users.getPresence—
users_inforeadGET/api/users.info—
users_listreadGET/api/users.list—
users_lookupByEmailreadGET/api/users.lookupByEmail—
users_profile_getreadGET/api/users.profile.get—
calls_addwritePOST/api/calls.add—
calls_endwritePOST/api/calls.end—
calls_participants_addwritePOST/api/calls.participants.add—
calls_participants_removewritePOST/api/calls.participants.remove—
calls_updatewritePOST/api/calls.update—
chat_deletedelete, writePOST/api/chat.delete—
chat_deleteScheduledMessagedelete, writePOST/api/chat.deleteScheduledMessage—
chat_meMessagesend, writePOST/api/chat.meMessage—
chat_postEphemeralsend, writePOST/api/chat.postEphemeral—
chat_postMessagesend, writePOST/api/chat.postMessage—
chat_scheduleMessagesend, writePOST/api/chat.scheduleMessage—
chat_unfurlsend, writePOST/api/chat.unfurl—
chat_updatesend, writePOST/api/chat.update—
conversations_archivewritePOST/api/conversations.archive—
conversations_closewritePOST/api/conversations.close—
conversations_createwritePOST/api/conversations.create—
conversations_inviteadmin, writePOST/api/conversations.invite—
conversations_joinwritePOST/api/conversations.join—
conversations_kickadmin, writePOST/api/conversations.kick—
conversations_leavewritePOST/api/conversations.leave—
conversations_markwritePOST/api/conversations.mark—
conversations_openwritePOST/api/conversations.open—
conversations_renamewritePOST/api/conversations.rename—
conversations_setPurposewritePOST/api/conversations.setPurpose—
conversations_setTopicwritePOST/api/conversations.setTopic—
conversations_unarchivewritePOST/api/conversations.unarchive—
dialog_openwritePOST/api/dialog.open—
files_comments_deletedelete, writePOST/api/files.comments.delete—
files_deletedelete, writePOST/api/files.delete—
files_remote_addwritePOST/api/files.remote.add—
files_remote_removedelete, writePOST/api/files.remote.remove—
files_remote_updatewritePOST/api/files.remote.update—
files_revokePublicURLwritePOST/api/files.revokePublicURL—
files_uploadwritePOST/api/files.uploadRetained policy identity: Slack retired files.upload on 2025-11-12, so the managed contract does not publish it; cataloged so existing rules keep matching a raw call
pins_addwritePOST/api/pins.add—
pins_removedelete, writePOST/api/pins.remove—
reactions_addwritePOST/api/reactions.add—
reactions_removewritePOST/api/reactions.remove—
usergroups_createwritePOST/api/usergroups.create—
usergroups_disablewritePOST/api/usergroups.disable—
usergroups_enablewritePOST/api/usergroups.enable—
usergroups_updatewritePOST/api/usergroups.update—
usergroups_users_updateadmin, writePOST/api/usergroups.users.update—
users_setPresencewritePOST/api/users.setPresence—
views_openwritePOST/api/views.open—
views_publishwritePOST/api/views.publish—
views_pushwritePOST/api/views.push—
views_updatewritePOST/api/views.update—
apps_manifest_createadminGET/api/apps.manifest.createrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
apps_uninstalladminGET/api/apps.uninstallrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
auth_revokeadminGET/api/auth.revokerefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
oauth_accessadminGET/api/oauth.accessrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); Credential endpoint: cataloged only so the policy chain refuses it as credential minting; never published as an operation
oauth_tokenadminGET/api/oauth.tokenrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); Credential endpoint: cataloged only so the policy chain refuses it as credential minting; never published as an operation
oauth_v2_accessadminGET/api/oauth.v2.accessrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); Credential endpoint: cataloged only so the policy chain refuses it as credential minting; never published as an operation
oauth_v2_exchangeadminGET/api/oauth.v2.exchangerefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
openid_connect_tokenadminGET/api/openid.connect.tokenrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
tooling_tokens_rotateadminGET/api/tooling.tokens.rotaterefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
apps_manifest_create_postadminPOST/api/apps.manifest.createrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
apps_uninstall_postadminPOST/api/apps.uninstallrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
auth_revoke_postadminPOST/api/auth.revokerefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
oauth_access_postadminPOST/api/oauth.accessrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); Credential endpoint: cataloged only so the policy chain refuses it as credential minting; never published as an operation
oauth_token_postadminPOST/api/oauth.tokenrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); Credential endpoint: cataloged only so the policy chain refuses it as credential minting; never published as an operation
oauth_v2_access_postadminPOST/api/oauth.v2.accessrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); Credential endpoint: cataloged only so the policy chain refuses it as credential minting; never published as an operation
oauth_v2_exchange_postadminPOST/api/oauth.v2.exchangerefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
openid_connect_token_postadminPOST/api/openid.connect.tokenrefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec
tooling_tokens_rotate_postadminPOST/api/tooling.tokens.rotaterefused by default: hands the caller a provider credential, or revokes the connection’s own (a credential_minting rule can allow it); served by the provider but absent from its published spec

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.