Skip to content

client.organizations

Partner accounts: your client organisations. Act inside one with the Mv-Account header. These methods are on client.organizations, where client is a MoreVoice client (see the Python SDK). On AsyncMoreVoice the same methods are awaited. Each one returns the response object and raises an exception when the API answers with an error.

Create a client organization. Creates a client organisation under your partner account (live keys only). With admin_email, that person is invited as its owner (the invitation link is emailed, never returned). With child capabilities on for your account, it gets your defaults (GET /v1/partner/child_defaults) before this answers: their flags, and their plan when it is a wholesale client created without plan.

client.organizations
def create(self, body: _m.OrganizationCreateParamsInput | Mapping[str, Any], *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.Organization

client.organizations.create() · await async_client.organizations.create() · POST /organizations · API reference

Field Type Required Description
name string yes The client’s name.
admin_email string no The client’s first admin: invited as its owner by email.
billing_mode "wholesale" | "direct" no Default wholesale (billed to you).
country string no ISO 3166-1 alpha-2 (default: yours).
locale "he" | "en" no Default: yours.
plan "starter" | "growth" | "business" | "enterprise" no A plan your wholesale price book offers (default starter).

Organization:

Field Type Description
id string The client organisation’s ID. Send it as Mv-Account to act inside it.
object "organization" Always organization.
livemode boolean true in live mode, false in test mode.
name string —
slug string —
status "trial" | "active" | "past_due" | "suspended" | "closed" trial, active, past_due, suspended or closed.
suspend_reason "partner" | "partner_account" | "billing" | "platform" | null Who holds a suspension: partner (you suspended it; POST /v1/organizations/{id}/resume lifts it), partner_account (your own partner account is suspended), billing (unpaid billing) or platform (platform staff). Null unless status is suspended.
plan string The organisation’s plan (starter, growth, business, enterprise).
billing_mode "wholesale" | "direct" wholesale: its usage is billed on your partner invoice; direct: it is billed directly, not through you.
region string The data region it lives in (always yours).
country string ISO 3166-1 alpha-2.
locale "he" | "en" —
parent string Your (the partner’s) organisation ID.
members integer Active members (seats in use).
created string An ISO-8601 timestamp in UTC.
features PlanFeatures The plan’s features, by key (voice_ai, pbx, campaigns, media_streams, did_provisioning, …): true when the organisation’s plan includes it. New keys may appear.
limits PlanLimits The plan’s main limits.
flags CapabilityFlags The features a partner can switch on for its client organisations (v1.transcript_stream, tools.contract_v1, media_streams, …), each true when it works for this organisation now (a plan feature such as media_streams also needs a plan that includes it). Other platform settings are not listed.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
organization = client.organizations.create({
"admin_email": "owner@haifa-dental.example",
"name": "Haifa Dental Clinic",
"plan": "growth",
})
print(organization)

List client organizations. Your partner account’s client organisations, newest first. Act inside one by sending its ID as the Mv-Account header.

client.organizations
def list(self, *, limit: int | Unset = 20, starting_after: str | Unset = UNSET, ending_before: str | Unset = UNSET, status: _m.OrganizationsListStatus | Unset = UNSET, more_voice_version: str | Unset = UNSET) -> AsyncPage[_m.Organization]

client.organizations.list() · await async_client.organizations.list() · GET /organizations · API reference

Name Type Required Description
limit integer no How many objects to return, 1–100 (default 20).
starting_after string no A cursor (next_cursor) or object ID: return the objects after it (older).
ending_before string no A cursor or object ID: return the objects before it (newer).
status "trial" | "active" | "past_due" | "suspended" | "closed" no Only organisations in this status.

A page of results (OrganizationList): data, has_more and next_cursor.

from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
for organization in client.organizations.list():
print(organization)

Resume a suspended client organization. Lifts a suspension you made (suspend_reason partner; live keys only). The client can place calls again, and the campaigns its suspension paused go back to running or scheduled (campaign.resumed, reason org_resumed); campaigns someone paused stay paused. A suspension by platform staff, for billing, or because your own partner account is suspended can’t be lifted here: 409 resource_conflict (details.reason suspended_by_platform). Resuming a client that isn’t suspended changes nothing. Sends organization.resumed to your endpoints and the client’s. Needs suspension enabled for your partner account.

client.organizations
def resume(self, id: str, body: _m.OrganizationResumeParamsInput | Mapping[str, Any] | Unset = UNSET, *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.Organization

client.organizations.resume() · await async_client.organizations.resume() · POST /organizations/{id}/resume · API reference

Name Type Required Description
id str yes A org ID (org_…).

Organization:

Field Type Description
id string The client organisation’s ID. Send it as Mv-Account to act inside it.
object "organization" Always organization.
livemode boolean true in live mode, false in test mode.
name string —
slug string —
status "trial" | "active" | "past_due" | "suspended" | "closed" trial, active, past_due, suspended or closed.
suspend_reason "partner" | "partner_account" | "billing" | "platform" | null Who holds a suspension: partner (you suspended it; POST /v1/organizations/{id}/resume lifts it), partner_account (your own partner account is suspended), billing (unpaid billing) or platform (platform staff). Null unless status is suspended.
plan string The organisation’s plan (starter, growth, business, enterprise).
billing_mode "wholesale" | "direct" wholesale: its usage is billed on your partner invoice; direct: it is billed directly, not through you.
region string The data region it lives in (always yours).
country string ISO 3166-1 alpha-2.
locale "he" | "en" —
parent string Your (the partner’s) organisation ID.
members integer Active members (seats in use).
created string An ISO-8601 timestamp in UTC.
features PlanFeatures The plan’s features, by key (voice_ai, pbx, campaigns, media_streams, did_provisioning, …): true when the organisation’s plan includes it. New keys may appear.
limits PlanLimits The plan’s main limits.
flags CapabilityFlags The features a partner can switch on for its client organisations (v1.transcript_stream, tools.contract_v1, media_streams, …), each true when it works for this organisation now (a plan feature such as media_streams also needs a plan that includes it). Other platform settings are not listed.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
organization = client.organizations.resume("org_7Hk2Lm9Qp", {})
print(organization)

Retrieve a client organization. Returns the Organization object. Answers 404 with the code resource_missing when nothing has this ID in this organisation and mode.

client.organizations
def retrieve(self, id: str, *, more_voice_version: str | Unset = UNSET) -> _m.Organization

client.organizations.retrieve() · await async_client.organizations.retrieve() · GET /organizations/{id} · API reference

Name Type Required Description
id str yes A org ID (org_…).

Organization:

Field Type Description
id string The client organisation’s ID. Send it as Mv-Account to act inside it.
object "organization" Always organization.
livemode boolean true in live mode, false in test mode.
name string —
slug string —
status "trial" | "active" | "past_due" | "suspended" | "closed" trial, active, past_due, suspended or closed.
suspend_reason "partner" | "partner_account" | "billing" | "platform" | null Who holds a suspension: partner (you suspended it; POST /v1/organizations/{id}/resume lifts it), partner_account (your own partner account is suspended), billing (unpaid billing) or platform (platform staff). Null unless status is suspended.
plan string The organisation’s plan (starter, growth, business, enterprise).
billing_mode "wholesale" | "direct" wholesale: its usage is billed on your partner invoice; direct: it is billed directly, not through you.
region string The data region it lives in (always yours).
country string ISO 3166-1 alpha-2.
locale "he" | "en" —
parent string Your (the partner’s) organisation ID.
members integer Active members (seats in use).
created string An ISO-8601 timestamp in UTC.
features PlanFeatures The plan’s features, by key (voice_ai, pbx, campaigns, media_streams, did_provisioning, …): true when the organisation’s plan includes it. New keys may appear.
limits PlanLimits The plan’s main limits.
flags CapabilityFlags The features a partner can switch on for its client organisations (v1.transcript_stream, tools.contract_v1, media_streams, …), each true when it works for this organisation now (a plan feature such as media_streams also needs a plan that includes it). Other platform settings are not listed.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
organization = client.organizations.retrieve("org_7Hk2Lm9Qp")
print(organization)

Retrieve the defaults for new client organizations. The feature flags and plan every new client organisation gets when POST /v1/organizations creates it, and what you may set: settable_flags (the partner-settable flags your own account has) and allowed_plans (the plans platform support lets you give; empty = plan changes are refused). Needs the child-capabilities feature on your partner account.

client.organizations
def retrieve_child_defaults(self, *, more_voice_version: str | Unset = UNSET) -> _m.ChildDefaults

client.organizations.retrieve_child_defaults() · await async_client.organizations.retrieve_child_defaults() · GET /partner/child_defaults · API reference

ChildDefaults:

Field Type Description
object "partner_child_defaults" Always partner_child_defaults.
livemode boolean true in live mode, false in test mode.
flags Record<string, boolean> The flags every new client gets.
plan string | null The plan every new wholesale client gets when created without plan; null = the usual default (starter).
settable_flags string[] The flags you may set for your clients: the partner-settable flags your own account has.
allowed_plans string[] The plans you may give your clients (set by platform support). Empty: plan changes are refused.
updated string | null When the defaults were last replaced; null = never.
applied object | null With apply_to_existing: what applying the defaults to your existing clients did. Else null.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
child_defaults = client.organizations.retrieve_child_defaults()
print(child_defaults)

Suspend a client organization. Suspends one of your client organisations (live keys only). From then on it places no new outbound call by any route (campaigns, POST /v1/calls, the app’s dial pad, callbacks, WhatsApp): its running and scheduled campaigns pause at once with pause_reason org_suspended (campaign.paused), and nothing is lost: contacts, retries and callbacks wait. Calls already in progress are not hung up; they finish. Its people can still sign in and see their data. Sends organization.suspended to your endpoints and the client’s. Suspending a client that is already suspended changes nothing. Needs suspension enabled for your partner account.

client.organizations
def suspend(self, id: str, body: _m.OrganizationSuspendParamsInput | Mapping[str, Any] | Unset = UNSET, *, more_voice_version: str | Unset = UNSET, idempotency_key: str | Unset = UNSET) -> _m.Organization

client.organizations.suspend() · await async_client.organizations.suspend() · POST /organizations/{id}/suspend · API reference

Name Type Required Description
id str yes A org ID (org_…).
Field Type Required Description
reason string no Why, in a sentence: shown to the client’s admins in their suspension notice and kept in both audit logs.

Organization:

Field Type Description
id string The client organisation’s ID. Send it as Mv-Account to act inside it.
object "organization" Always organization.
livemode boolean true in live mode, false in test mode.
name string —
slug string —
status "trial" | "active" | "past_due" | "suspended" | "closed" trial, active, past_due, suspended or closed.
suspend_reason "partner" | "partner_account" | "billing" | "platform" | null Who holds a suspension: partner (you suspended it; POST /v1/organizations/{id}/resume lifts it), partner_account (your own partner account is suspended), billing (unpaid billing) or platform (platform staff). Null unless status is suspended.
plan string The organisation’s plan (starter, growth, business, enterprise).
billing_mode "wholesale" | "direct" wholesale: its usage is billed on your partner invoice; direct: it is billed directly, not through you.
region string The data region it lives in (always yours).
country string ISO 3166-1 alpha-2.
locale "he" | "en" —
parent string Your (the partner’s) organisation ID.
members integer Active members (seats in use).
created string An ISO-8601 timestamp in UTC.
features PlanFeatures The plan’s features, by key (voice_ai, pbx, campaigns, media_streams, did_provisioning, …): true when the organisation’s plan includes it. New keys may appear.
limits PlanLimits The plan’s main limits.
flags CapabilityFlags The features a partner can switch on for its client organisations (v1.transcript_stream, tools.contract_v1, media_streams, …), each true when it works for this organisation now (a plan feature such as media_streams also needs a plan that includes it). Other platform settings are not listed.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
organization = client.organizations.suspend("org_7Hk2Lm9Qp", {
"reason": "Your subscription with us has ended.",
})
print(organization)

Update a client organization’s flags and plan. Switches features on or off for one of your client organisations and changes its plan (live keys only). flags takes only the flags listed in settable_flags of GET /v1/partner/child_defaults (true needs the flag on your own account, and for a plan feature such as media_streams a client plan that includes it; null clears your setting); plan only a plan in its allowed_plans (platform-controlled; empty = plan changes are refused), and only for a wholesale client. Everything is checked first; then the plan changes, then the flags (together: all or none). Every change is recorded in the audit log of both organisations. Needs the child-capabilities feature on your partner account.

client.organizations
def update(self, id: str, body: _m.OrganizationUpdateParamsInput | Mapping[str, Any] | Unset = UNSET, *, more_voice_version: str | Unset = UNSET) -> _m.Organization

client.organizations.update() · await async_client.organizations.update() · PATCH /organizations/{id} · API reference

Name Type Required Description
id str yes A org ID (org_…).
Field Type Required Description
flags Record<string, boolean | null> no Flags to set for the client, by name: true on, false off, null clears your setting (back to the platform default). Only flags in settable_flags.
plan "starter" | "growth" | "business" | "enterprise" no The client’s new plan: one of allowed_plans; wholesale clients only.

Organization:

Field Type Description
id string The client organisation’s ID. Send it as Mv-Account to act inside it.
object "organization" Always organization.
livemode boolean true in live mode, false in test mode.
name string —
slug string —
status "trial" | "active" | "past_due" | "suspended" | "closed" trial, active, past_due, suspended or closed.
suspend_reason "partner" | "partner_account" | "billing" | "platform" | null Who holds a suspension: partner (you suspended it; POST /v1/organizations/{id}/resume lifts it), partner_account (your own partner account is suspended), billing (unpaid billing) or platform (platform staff). Null unless status is suspended.
plan string The organisation’s plan (starter, growth, business, enterprise).
billing_mode "wholesale" | "direct" wholesale: its usage is billed on your partner invoice; direct: it is billed directly, not through you.
region string The data region it lives in (always yours).
country string ISO 3166-1 alpha-2.
locale "he" | "en" —
parent string Your (the partner’s) organisation ID.
members integer Active members (seats in use).
created string An ISO-8601 timestamp in UTC.
features PlanFeatures The plan’s features, by key (voice_ai, pbx, campaigns, media_streams, did_provisioning, …): true when the organisation’s plan includes it. New keys may appear.
limits PlanLimits The plan’s main limits.
flags CapabilityFlags The features a partner can switch on for its client organisations (v1.transcript_stream, tools.contract_v1, media_streams, …), each true when it works for this organisation now (a plan feature such as media_streams also needs a plan that includes it). Other platform settings are not listed.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
organization = client.organizations.update("org_7Hk2Lm9Qp", {
"flags": {
"telephony.fax": False,
"v1.transcript_stream": True,
},
"plan": "growth",
})
print(organization)

Replace the defaults for new client organizations. Replaces the feature flags and plan every new client organisation gets (live keys only): only flags in settable_flags (true needs the flag on your own account) and a plan in allowed_plans. New clients get them when POST /v1/organizations creates them (the plan only for a wholesale client created without plan). A plan-feature flag such as media_streams is only given to a client whose plan includes it. With apply_to_existing, every existing client (closed ones aside) gets them too, the plan first: only what differs is changed, so it is safe to repeat; applied reports what happened. Audited in your organisation and in every client changed.

client.organizations
def update_child_defaults(self, body: _m.ChildDefaultsParamsInput | Mapping[str, Any] | Unset = UNSET, *, more_voice_version: str | Unset = UNSET) -> _m.ChildDefaults

client.organizations.update_child_defaults() · await async_client.organizations.update_child_defaults() · PUT /partner/child_defaults · API reference

Field Type Required Description
apply_to_existing boolean no Also give them to every existing client now (default false). Only differing values change: safe to repeat.
flags Record<string, boolean> no The flags every new client gets, by name (default none). Only flags in settable_flags.
plan "starter" | "growth" | "business" | "enterprise" | null no The plan every new wholesale client gets when created without plan: one of allowed_plans. Null or absent: the usual default.

ChildDefaults:

Field Type Description
object "partner_child_defaults" Always partner_child_defaults.
livemode boolean true in live mode, false in test mode.
flags Record<string, boolean> The flags every new client gets.
plan string | null The plan every new wholesale client gets when created without plan; null = the usual default (starter).
settable_flags string[] The flags you may set for your clients: the partner-settable flags your own account has.
allowed_plans string[] The plans you may give your clients (set by platform support). Empty: plan changes are refused.
updated string | null When the defaults were last replaced; null = never.
applied object | null With apply_to_existing: what applying the defaults to your existing clients did. Else null.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
child_defaults = client.organizations.update_child_defaults({
"apply_to_existing": True,
"flags": {
"media_streams": True,
"tools.contract_v1": True,
"v1.transcript_stream": True,
},
"plan": "growth",
})
print(child_defaults)

Retrieve a client organization’s usage. The client’s metered usage, as GET /v1/usage reports it for its own key (the client’s prices: wholesale for a wholesale client). Test keys get its test-mode usage.

client.organizations.usage
def retrieve(self, id: str, *, from_: str, to: str, granularity: _m.OrganizationsUsageRetrieveGranularity | Unset = "day", group_by: _m.OrganizationsUsageRetrieveGroupBy | Unset = "kind", kind: _m.OrganizationsUsageRetrieveKind | Unset = UNSET, more_voice_version: str | Unset = UNSET) -> _m.UsageReport

client.organizations.usage.retrieve() · await async_client.organizations.usage.retrieve() · GET /organizations/{id}/usage · API reference

Name Type Required Description
id str yes A org ID (org_…).
from string yes The first day (YYYY-MM-DD, the organisation’s time zone).
to string yes The last day, inclusive. Per kind: up to 400 days; per assistant or campaign (and in test mode): up to 92 days.
granularity "day" | "month" no One row per day (default) or per calendar month.
group_by "kind" | "assistant" | "campaign" no kind (default): one row per period and usage kind; assistant / campaign: also split by the assistant or campaign the usage belongs to.
kind "ai_minute" | "pbx_minute" | "carrier_minute" | "copilot_minute" | "seat_day" | "copilot_seat_day" | "qa_scored_call" | "kb_storage_gb_day" | … no Only this usage kind.

UsageReport:

Field Type Description
object "usage_report" Always usage_report.
livemode boolean true in live mode, false in test mode.
from string —
to string —
timezone string The organisation’s time zone: the days and months are its local calendar.
granularity "day" | "month" —
group_by "kind" | "assistant" | "campaign" —
data object[] —
totals object[] The whole range per kind: for a calendar month, the figures of the billing page’s usage summary.
total Money | null The whole range’s price; null when nothing was priced.
from morevoice import MoreVoice
client = MoreVoice() # MOREVOICE_API_KEY from the environment
usage_report = client.organizations.usage.retrieve("org_7Hk2Lm9Qp", from_="2026-10-01", to="2026-10-31")
print(usage_report)