Menu

API reference · Phones

Per-user settings

crm_phones · user_settings · 1 operation

POST/v1/phones/users/{user_id}/default-line

Set a person's default outgoing line

crm_phones.user_settings.set_default_line

WriteIdempotentSince 2026-11-01

Sets the line a person calls from by default in the Phones dialer (line_id), or clears it with line_id=null (the dialer then picks the line by the destination's country). The person (user_id in the path) must be a member of the organization (user_not_member); the line must be an active line of the organization (line_not_found, line_not_active) and not dedicated to WhatsApp (line_whatsapp_locked: those lines do not place calls). Anyone with view access to Phones can set their own; setting another person's requires edit access. Idempotent. Returns user_id and default_line_id.

Scope
crm_phones:write
Permission
View the module
MCP tool
crm_phones_user_settings_set_default_lineOn the full surface; on the compact one, mb_execute_operation with id: "crm_phones.user_settings.set_default_line".

Declared cost: up to 4 reads and 1 writes per call (they count against the daily quota).

Parameters

user_idstringpathrequired

A member: a user_id from crm.team.list (with access to Phones).

line_idstring | nullbodyrequired

The phone line: an id from crm_phones.lines.list. null clears the preference (the phone picks the line by country again).

Response

user_idstring
default_line_idstring | null

Errors

Example

curl -X POST "https://api.mb-suite.com/v1/phones/users/{user_id}/default-line" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "line_id": "LINE_ID"
}'

Try it with your test API key

With a test API key the request always goes to your practice organization: example data you can reset.

curl -X POST "https://api.mb-suite.com/v1/phones/users/{user_id}/default-line" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "line_id": "LINE_ID"
}'