Users

If the user has the appropriate ACL, they can create other users for the application with the ID passed as a parameter

Auth: User JWT

post/v1/users/create-with-app-id/{id}

Request

  • Base URL: https://api.chat.ethora.com
  • URL: https://api.chat.ethora.com/v1/users/create-with-app-id/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

ID of the target resource. The exact type (App, File, etc.) depends on the endpoint.

Request body

emailstring

New user's email address. Must be unique under this app.

firstNamestring

Given name shown in chat / profile.

lastNamestring

Family name shown in chat / profile.

passwordstring

Optional. When supplied, it becomes the new user's permanent password (bcrypt-hashed): they sign in with it directly and no invite email is sent, since the caller is delivering the credential itself. When omitted, the server mints a temporary password, mails it out, and the user exchanges it for a permanent one via /v1/users/set-permanent-password-with-temp-password.

Response

{
  user: {
    defaultWallet: {
      walletAddress: string
    },
    _id: string,
    firstName: string,
    lastName: string,
    email: string,
    username: string,
    tags: string[],
    profileImage: string,
    emails: [
      {
        loginType: string,
        email: string,
        verified: boolean,
        _id: string
      }
    ],
    appId: string,
    xmppPassword: string,
    roles: string[],
    isProfileOpen: boolean,
    isAssetsOpen: boolean,
    isAgreeWithTerms: boolean,
    homeScreen: string,
    registrationChannelType: string,
    createdAt: string,
    updatedAt: string
  },
}

Changes

No recorded changes to this operation across all 1 revision of this API.