Users

Invite a teammate with a one-time API link

Changed on

Creates an invited user with the given role (requester by default) and returns a 7-day single-use API link. The API redirects to the current APP_URL dashboard with the code in the URL fragment. The browser exchanges the code at POST /api/invites/exchange for a personal MCP token. Re-inviting an invited user replaces the role and link. Active or suspended users return 409 user_exists. No email is sent.

post/api/invites

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/api/invites
  • Auth
    HTTP bearer

Request body

emailstring email required
namestring
role'requester' | 'viewer' | 'admin'

Response

The invited user, API link, dashboard URL, expiry and API reachability

inviteUrlstring required
appUrlstring required
expiresAtstring required
apiReachable'public' | 'local' required

Changes