mail-tenant-credentials is an admin-only resource that lets the mail system push the credentials it issued (or reissued) for a Voice team back into HelpGenie Voice. It is the inbound counterpart to the outbound tenant-provisioning call made when a genie mailbox is first created.
If the owner_email address has no Voice account yet, one is created automatically. If that account has no team, a team is created as well — so the mail system always receives a stable team_id to store on its side.
Upsert tenant credentials
Registers or updates the mail tenant credentials for the team that ownsowner_email. Creates a Voice account and team for owner_email if neither exists yet.
string
required
Must be
"mail-tenant-credentials"string
required
Must be
"upsert"object
required
boolean
Whether the credentials were stored successfully.
object
Side effects
- If
owner_emaildoes not match any existing Voice account, a new account is created with a temporary password. The owner will need to complete account setup before logging in directly. - If the resolved account has no team, a team is created automatically using the local part of
owner_emailas the team name. - Calling
upsertagain for the sameowner_emailwith new credentials will overwrite the previously stored values — no duplicate entries are created.

