Accept an invitation
POST
sessioncookie
better-auth.session_token<token>Set by POST /api/auth/sign-in/email.
application/json- body
invitationId*stringThe invitation and your new membership.
curl -X POST 'https://app.useroster.work/api/auth/organization/accept-invitation' \ -H 'Content-Type: application/json' \ -d '{ "invitationId": "string"}'Example Response
Empty
Invite someone POST
Emails them a link to `/invite/<id>` (or, without mail set up, the app shows the link to copy). Owners and admins only.
Workspace settings GET
Settings for the whole workspace. `discloseAi`: hires say they're an AI assistant in first messages to people outside the team, on email and WhatsApp. `teamDomains`: the domains your team's own addresses are at; inviting or first writing to people there needs no approval (empty: the domains of members' sign-in emails, leaving out public mail providers).