Skip to main content
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.
All actions on this resource require an internal admin API key. Requests from non-admin callers are rejected with 403 Forbidden.

Upsert tenant credentials

Registers or updates the mail tenant credentials for the team that owns owner_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_email does 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_email as the team name.
  • Calling upsert again for the same owner_email with new credentials will overwrite the previously stored values — no duplicate entries are created.

Error codes