mv.organizations
Partner accounts: your client organisations. Act inside one with the Mv-Account header. These methods are on mv.organizations, where mv is your client (see the Node.js SDK). Each one returns the response object and throws when the API answers with an error.
create()
Section titled “create()”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.
mv.organizations.create(body: OrganizationsCreateData["body"], options?: RequestOptions): Promise<OrganizationsCreateResponse>POST /organizations · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
body.name |
string |
yes | The client’s name. |
body.admin_email |
string |
no | The client’s first admin: invited as its owner by email. |
body.billing_mode |
"wholesale" | "direct" |
no | Default wholesale (billed to you). |
body.country |
string |
no | ISO 3166-1 alpha-2 (default: yours). |
body.locale |
"he" | "en" |
no | Default: yours. |
body.plan |
"starter" | "growth" | "business" | "enterprise" |
no | A plan your wholesale price book offers (default starter). |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options.headers["Idempotency-Key"] |
string |
no | A unique key (for example a UUID) that makes this request safe to retry: for 24 hours, a retry with the same key and parameters returns the first response instead of acting twice. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const organization = await mv.organizations.create({ admin_email: "owner@haifa-dental.example", name: "Haifa Dental Clinic", plan: "growth",});console.log(organization);list()
Section titled “list()”List client organizations. Your partner account’s client organisations, newest first. Act inside one by sending its ID as the Mv-Account header.
mv.organizations.list(query?: NonNullable<OrganizationsListData["query"]>, options?: RequestOptions): PagedList<OrganizationsListResponse["data"][number], NonNullable<OrganizationsListData["query"]>>GET /organizations · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
query.limit |
integer |
no | How many objects to return, 1–100 (default 20). |
query.starting_after |
string |
no | A cursor (next_cursor) or object ID: return the objects after it (older). |
query.ending_before |
string |
no | A cursor or object ID: return the objects before it (newer). |
query.status |
string |
no | Only organisations in this status. |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”A PagedList: await it for the first page, for await it for every item.
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
for await (const organization of mv.organizations.list()) { console.log(organization);}resume()
Section titled “resume()”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.
mv.organizations.resume(id: OrganizationsResumeData["path"]["id"], body?: OrganizationsResumeData["body"], options?: RequestOptions): Promise<OrganizationsResumeResponse>POST /organizations/{id}/resume · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | A org ID (org_…). |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options.headers["Idempotency-Key"] |
string |
no | A unique key (for example a UUID) that makes this request safe to retry: for 24 hours, a retry with the same key and parameters returns the first response instead of acting twice. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const organization = await mv.organizations.resume("org_7Hk2Lm9Qp", {});console.log(organization);retrieve()
Section titled “retrieve()”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.
mv.organizations.retrieve(id: OrganizationsRetrieveData["path"]["id"], options?: RequestOptions): Promise<OrganizationsRetrieveResponse>GET /organizations/{id} · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | A org ID (org_…). |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const organization = await mv.organizations.retrieve("org_7Hk2Lm9Qp");console.log(organization);retrieveChildDefaults()
Section titled “retrieveChildDefaults()”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.
mv.organizations.retrieveChildDefaults(options?: RequestOptions): Promise<OrganizationsRetrieveChildDefaultsResponse>GET /partner/child_defaults · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const childDefaults = await mv.organizations.retrieveChildDefaults();console.log(childDefaults);suspend()
Section titled “suspend()”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.
mv.organizations.suspend(id: OrganizationsSuspendData["path"]["id"], body?: OrganizationsSuspendData["body"], options?: RequestOptions): Promise<OrganizationsSuspendResponse>POST /organizations/{id}/suspend · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | A org ID (org_…). |
body.reason |
string |
no | Why, in a sentence: shown to the client’s admins in their suspension notice and kept in both audit logs. |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options.headers["Idempotency-Key"] |
string |
no | A unique key (for example a UUID) that makes this request safe to retry: for 24 hours, a retry with the same key and parameters returns the first response instead of acting twice. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const organization = await mv.organizations.suspend("org_7Hk2Lm9Qp", { reason: "Your subscription with us has ended.",});console.log(organization);update()
Section titled “update()”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.
mv.organizations.update(id: OrganizationsUpdateData["path"]["id"], body?: OrganizationsUpdateData["body"], options?: RequestOptions): Promise<OrganizationsUpdateResponse>PATCH /organizations/{id} · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | A org ID (org_…). |
body.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. |
body.plan |
"starter" | "growth" | "business" | "enterprise" |
no | The client’s new plan: one of allowed_plans; wholesale clients only. |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const organization = await mv.organizations.update("org_7Hk2Lm9Qp", { flags: { "telephony.fax": false, "v1.transcript_stream": true, }, plan: "growth",});console.log(organization);updateChildDefaults()
Section titled “updateChildDefaults()”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.
mv.organizations.updateChildDefaults(body?: OrganizationsUpdateChildDefaultsData["body"], options?: RequestOptions): Promise<OrganizationsUpdateChildDefaultsResponse>PUT /partner/child_defaults · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
body.apply_to_existing |
boolean |
no | Also give them to every existing client now (default false). Only differing values change: safe to repeat. |
body.flags |
Record<string, boolean> |
no | The flags every new client gets, by name (default none). Only flags in settable_flags. |
body.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. |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const childDefaults = await mv.organizations.updateChildDefaults({ apply_to_existing: true, flags: { media_streams: true, "tools.contract_v1": true, "v1.transcript_stream": true, }, plan: "growth",});console.log(childDefaults);usage.retrieve()
Section titled “usage.retrieve()”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.
mv.organizations.usage.retrieve(id: OrganizationsUsageRetrieveData["path"]["id"], query: NonNullable<OrganizationsUsageRetrieveData["query"]>, options?: RequestOptions): Promise<OrganizationsUsageRetrieveResponse>GET /organizations/{id}/usage · API reference
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | A org ID (org_…). |
query.from |
string |
yes | The first day (YYYY-MM-DD, the organisation’s time zone). |
query.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. |
query.granularity |
string |
no | One row per day (default) or per calendar month. |
query.group_by |
string |
no | kind (default): one row per period and usage kind; assistant / campaign: also split by the assistant or campaign the usage belongs to. |
query.kind |
string |
no | Only this usage kind. |
options.headers["MoreVoice-Version"] |
string |
no | The API version to use for this request. Defaults to the version the API key is pinned to. |
options |
RequestOptions |
no | idempotencyKey, extra headers and an abort signal: see retries and idempotency. |
Returns
Section titled “Returns”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. |
Example
Section titled “Example”import MoreVoice from "@morevoice/sdk";
const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment
const usageReport = await mv.organizations.usage.retrieve("org_7Hk2Lm9Qp", { from: "2026-10-01", to: "2026-10-31",});console.log(usageReport);