- Bot Token (starts with
xoxb-): Used for actions performed by your app’s bot - User Token (starts with
xoxp-): Used for actions performed on behalf of the authorizing user
When You Need the User Token
Some Slack API endpoints require user-scoped permissions and will only accept user tokens (e.g., certain user profile operations). If you try to call these endpoints with the bot token, Slack will reject the request.How to Use the User Token
- Fetch the raw connection to get the user token:
- Override the authorization header when making proxy calls: