Skip to main content

Global settings

Read and write account-level settings (v2 manager API). Available as mgr.settings / mgr.Settings / mgr.settings, grouped by scope.

Groups: app (customerLogging, conversations, integrations, agentStatus), telephony (agentInbound, agentOutbound, agentRecording, agentWrapup, postCall), audit (default), ui (i18n), retention (periods), auth (refreshToken — see Refresh tokens).

In TypeScript and Go each group is read/written as its data payload — the SDK handles the { scope, key } envelope. In Rust each section is a flat mgr.settings.<scope>_<section>() reader and a set_<scope>_<section>(..) writer that return the section's typed response (read its item.data).

Read a setting​

const recording = await mgr.settings.telephony.agentRecording.get();
console.log(recording.alwaysRecordOutbound);

const i18n = await mgr.settings.ui.i18n.get();

Update a setting​

update returns the new value. The update payload is the request type (all fields optional, so you can send just what you want to change).

const updated = await mgr.settings.app.customerLogging.update({ enabled: true });

await mgr.settings.telephony.agentWrapup.update({
cancelWrapUp: true,
maxExtension: 30,
});

Outbound calls during wrap-up​

telephony/agent.wrapup has allowOutboundDuringWrapUp (off by default). When it is on, an agent in wrap-up may place an outbound call: the call ends the wrap-up and the agent goes straight to the call. When it is off, an outbound call from wrap-up is refused, as before. A backend that predates the setting leaves the field out of its answer, so treat a missing value as off.

const wrapup = await mgr.settings.telephony.agentWrapup.get();
await mgr.settings.telephony.agentWrapup.update({ ...wrapup, allowOutboundDuringWrapUp: true });

List & clear settings generically​

Beyond the typed section accessors, you can list or clear settings by scope/key without knowing the section type — useful for admin tooling that walks the whole configuration.

const all = await mgr.settings.listAll();
const appScope = await mgr.settings.listInScope("app");
await mgr.settings.clear("app", "customer.logging");
await mgr.settings.clearInScope("telephony");
await mgr.settings.clearAll();

Reference​