Save Socket Mode tokens
PUT
Only when Roster has no https address: the app's bot token and app-level token.
sessioncookie
better-auth.session_token<token>Set by POST /api/auth/sign-in/email.
ws*stringThe workspace id (from GET /api/me).
connection*stringThe connection's id (from GET /api/workspaces/:ws/connections).
hire*stringThe hire's id.
application/json- body
botToken?stringMatch
^xoxb-appToken?stringMatch
^xapp-{ ok: true }.
curl -X PUT 'https://app.useroster.work/api/workspaces/string/slack/string/hires/string/tokens' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty
The install link GET
Where a person clicks **Allow** to let the hire's app into the Slack workspace.
How to set up a hire's Teams bot GET
The messaging endpoint to paste into the hire's bot, whether Teams can reach it (https), the bot ID saved so far and the pages to make the bot on. Save the bot's ID and client secret with `PUT /hires/:id/chat/:connection` (values `appId`, `clientSecret`); Roster checks them with Microsoft first.