MonetaryAI / Docs
API ReferenceMemberships

Accept an invitation or activate an invited identity

Proves an existing identity's current password, or creates a new identity with a chosen password only for an email-only invitation. Token consumption and membership roles are atomic. For identities with email 2FA, returns a 202 challenge without tokens; complete /auth/login with the current password, challengeId and emailed code on this tenant host. For Google Authenticator users, returns 202 channel=TOTP; complete login on this tenant with password and totpCode or recoveryCode. Otherwise issues the session atomically.

POST
/api/v1/auth/membership-invitations/accept

Request Body

application/json
  1. body
password*string

Current or new password, at most 72 UTF-8 bytes

Formatpassword
Length0 <= length <= 72
token*string

Raw one-time invitation token

Length0 <= length <= 512

Response Body

Membership created and token pair issued

application/json
  1. response
accessToken?string

Short-lived bearer JWT

refreshToken?string

One-time opaque refresh token

curl -X POST 'https://api.monetaryai.uz/api/v1/auth/membership-invitations/accept' \  -H 'Content-Type: application/json' \  -d '{  "password": "pa$$word",  "token": "string"}'
{  "accessToken": "string",  "refreshToken": "string"}