Make an API token
POST
The token acts as you, with your role in this workspace as it is at each call, in this workspace only. It's shown once, in token; Roster keeps only a hash. Made in the app only, never by an agent.
sessioncookie
better-auth.session_token<token>Set by POST /api/auth/sign-in/email.
ws*stringThe workspace id (from GET /api/me).
application/json- body
name*stringWhat it is for: "Claude Code on my laptop".
Length
1 <= length <= 80The token, shown this once.
application/jsoncurl -X POST 'https://app.useroster.work/api/workspaces/string/api-tokens' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "id": "7c1d…", "name": "Claude Code on my laptop", "scope": "user", "prefix": "rst_u_3kf9", "token": "rst_u_3kf9…"}API tokens GET
Tokens agents use to work in this workspace through Roster's MCP server. Your own; owners and admins see everyone's. Never the token itself: only its first characters, and when it was last used. Made and revoked in the app only.
Revoke an API token DELETE
Your own; owners and admins can revoke anyone's. It stops working at once.