Organizations
Assign a personal mailbox
Assigns a personal address to an existing member. Only organization owners and admins may assign it; the member receives the sole user grant.
POST
Assigns a personal address to an existing member. Only organization owners and admins may assign it; the member receives the sole user grant. Returns the mailbox ID without granting the assigner access.
apiKeyheader
x-api-key<token>userId*stringMatch
^user_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
mailboxAddress*stringSuccess
application/json- response
mailboxId*MailboxIdMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.organizations.assignPersonalMailbox({ "userId": "example", "mailboxAddress": "example"});Example Response
{ "mailboxId": "string"}