Integrations
Slack
Connect a Slack app bot token to Alter Vault for governed access to the Slack Web API
Managed SDK operations
Section titled “Managed SDK operations”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.
Overview
Section titled “Overview”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.
| Property | Value |
|---|---|
| Template ID | slack |
| Category | Communication |
| Credential Type | Bot User OAuth Token (xoxb-…) |
| API host | slack.com |
Step 1: Get the bot token
Section titled “Step 1: Get the bot token”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-.
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”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:
alter managed-secrets create --name slack-workspace --template slack --credential-value -alter managed-secrets set-allowed-hosts <provider-slug> --host slack.comUsing in Code
Section titled “Using in Code”from alter_sdk import Appfrom 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()Policy
Section titled “Policy”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.getUploadURLExternalreturns go tofiles.slack.com; add that host if the integration uploads files.
Policy-cataloged operations
Section titled “Policy-cataloged operations”Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.
| Operation ID | Families | Method | Provider path | Notes |
|---|---|---|---|---|
api_test | read | GET | /api/api.test | — |
auth_test | read | GET | /api/auth.test | — |
bots_info | read | GET | /api/bots.info | — |
calls_info | read | GET | /api/calls.info | — |
chat_getPermalink | read | GET | /api/chat.getPermalink | — |
chat_scheduledMessages_list | read | GET | /api/chat.scheduledMessages.list | — |
conversations_history | read | GET | /api/conversations.history | — |
conversations_info | read | GET | /api/conversations.info | — |
conversations_list | read | GET | /api/conversations.list | — |
conversations_members | read | GET | /api/conversations.members | — |
conversations_replies | read | GET | /api/conversations.replies | — |
dnd_info | read | GET | /api/dnd.info | — |
dnd_teamInfo | read | GET | /api/dnd.teamInfo | — |
emoji_list | read | GET | /api/emoji.list | — |
files_info | read | GET | /api/files.info | — |
files_list | read | GET | /api/files.list | — |
files_remote_info | read | GET | /api/files.remote.info | — |
files_remote_list | read | GET | /api/files.remote.list | — |
files_remote_share | send, write | GET | /api/files.remote.share | — |
migration_exchange | read | GET | /api/migration.exchange | — |
pins_list | read | GET | /api/pins.list | — |
reactions_get | read | GET | /api/reactions.get | — |
reactions_list | read | GET | /api/reactions.list | — |
search_messages | read | GET | /api/search.messages | Retained 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_info | read | GET | /api/team.info | — |
team_profile_get | read | GET | /api/team.profile.get | — |
usergroups_list | read | GET | /api/usergroups.list | — |
usergroups_users_list | read | GET | /api/usergroups.users.list | — |
users_conversations | read | GET | /api/users.conversations | — |
users_getPresence | read | GET | /api/users.getPresence | — |
users_info | read | GET | /api/users.info | — |
users_list | read | GET | /api/users.list | — |
users_lookupByEmail | read | GET | /api/users.lookupByEmail | — |
users_profile_get | read | GET | /api/users.profile.get | — |
calls_add | write | POST | /api/calls.add | — |
calls_end | write | POST | /api/calls.end | — |
calls_participants_add | write | POST | /api/calls.participants.add | — |
calls_participants_remove | write | POST | /api/calls.participants.remove | — |
calls_update | write | POST | /api/calls.update | — |
chat_delete | delete, write | POST | /api/chat.delete | — |
chat_deleteScheduledMessage | delete, write | POST | /api/chat.deleteScheduledMessage | — |
chat_meMessage | send, write | POST | /api/chat.meMessage | — |
chat_postEphemeral | send, write | POST | /api/chat.postEphemeral | — |
chat_postMessage | send, write | POST | /api/chat.postMessage | — |
chat_scheduleMessage | send, write | POST | /api/chat.scheduleMessage | — |
chat_unfurl | send, write | POST | /api/chat.unfurl | — |
chat_update | send, write | POST | /api/chat.update | — |
conversations_archive | write | POST | /api/conversations.archive | — |
conversations_close | write | POST | /api/conversations.close | — |
conversations_create | write | POST | /api/conversations.create | — |
conversations_invite | admin, write | POST | /api/conversations.invite | — |
conversations_join | write | POST | /api/conversations.join | — |
conversations_kick | admin, write | POST | /api/conversations.kick | — |
conversations_leave | write | POST | /api/conversations.leave | — |
conversations_mark | write | POST | /api/conversations.mark | — |
conversations_open | write | POST | /api/conversations.open | — |
conversations_rename | write | POST | /api/conversations.rename | — |
conversations_setPurpose | write | POST | /api/conversations.setPurpose | — |
conversations_setTopic | write | POST | /api/conversations.setTopic | — |
conversations_unarchive | write | POST | /api/conversations.unarchive | — |
dialog_open | write | POST | /api/dialog.open | — |
files_comments_delete | delete, write | POST | /api/files.comments.delete | — |
files_delete | delete, write | POST | /api/files.delete | — |
files_remote_add | write | POST | /api/files.remote.add | — |
files_remote_remove | delete, write | POST | /api/files.remote.remove | — |
files_remote_update | write | POST | /api/files.remote.update | — |
files_revokePublicURL | write | POST | /api/files.revokePublicURL | — |
files_upload | write | POST | /api/files.upload | Retained 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_add | write | POST | /api/pins.add | — |
pins_remove | delete, write | POST | /api/pins.remove | — |
reactions_add | write | POST | /api/reactions.add | — |
reactions_remove | write | POST | /api/reactions.remove | — |
usergroups_create | write | POST | /api/usergroups.create | — |
usergroups_disable | write | POST | /api/usergroups.disable | — |
usergroups_enable | write | POST | /api/usergroups.enable | — |
usergroups_update | write | POST | /api/usergroups.update | — |
usergroups_users_update | admin, write | POST | /api/usergroups.users.update | — |
users_setPresence | write | POST | /api/users.setPresence | — |
views_open | write | POST | /api/views.open | — |
views_publish | write | POST | /api/views.publish | — |
views_push | write | POST | /api/views.push | — |
views_update | write | POST | /api/views.update | — |
apps_manifest_create | admin | GET | /api/apps.manifest.create | refused 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 | admin | GET | /api/apps.uninstall | refused 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 | admin | GET | /api/auth.revoke | refused 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 | admin | GET | /api/oauth.access | refused 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 | admin | GET | /api/oauth.token | refused 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 | admin | GET | /api/oauth.v2.access | refused 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 | admin | GET | /api/oauth.v2.exchange | refused 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 | admin | GET | /api/openid.connect.token | refused 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 | admin | GET | /api/tooling.tokens.rotate | refused 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_post | admin | POST | /api/apps.manifest.create | refused 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_post | admin | POST | /api/apps.uninstall | refused 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_post | admin | POST | /api/auth.revoke | refused 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_post | admin | POST | /api/oauth.access | refused 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_post | admin | POST | /api/oauth.token | refused 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_post | admin | POST | /api/oauth.v2.access | refused 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_post | admin | POST | /api/oauth.v2.exchange | refused 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_post | admin | POST | /api/openid.connect.token | refused 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_post | admin | POST | /api/tooling.tokens.rotate | refused 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 |