envs

Slack — a bot in a workspace

slack/bot · version 1

envs add slack/bot

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
SLACK_BOT_TOKEN required secret The bot's own token. Acts as the app, not as a person.. Shape ^xoxb-[A-Za-z0-9-]{10,}$. Rotate every 180 days. where to get it
SLACK_SIGNING_SECRET required secret Proves a request came from Slack. Without it anyone can post to your endpoint.. Shape ^[a-f0-9]{32}$. where to get it
SLACK_APP_TOKEN optional secret App-level token, needed for Socket Mode.. Shape ^xapp-[A-Za-z0-9-]{10,}$. where to get it
SLACK_USER_TOKEN optional secret Acts as the installing person. Prefer the bot token where either works.. Shape ^xoxp-[A-Za-z0-9-]{10,}$. Rotate every 180 days. where to get it

The JSON the CLI reads