Mattermost documents the id on the System Console user page and on GET /api/v4/users/username/<username>. /users/me with the bot token is the bot.
Mattermost documents the id on the System Console user page and on GET /api/v4/users/username/<username>. /users/me with the bot token is the bot.