@textile/hub > Users > setupMailbox
Users.setupMailbox() method
Setup a user's inbox. This is required for each new user. An inbox must be setup by the inbox owner (keys) before messages can be sent to it.
Signature:
setupMailbox(): Promise<string>;
Returns:
Promise<string>
mailboxID
Example
import { Users } from "@textile/hub"
async function example(users: Users) {
return await users.setupMailbox()
}