@getdial/sdk - v0.38.0
    Preparing search index...

    Interface SetNumberPropertiesParams

    interface SetNumberPropertiesParams {
        avatar?: SendMessageMedia;
        callingEnabled?: boolean;
        channel?: ProfileChannel;
        firstName?: string | null;
        forwardTo?: string | null;
        inboundInstruction?: string;
        inboundLanguage?: string | null;
        inboundVoiceGender?: "male" | "female" | null;
        lastName?: string | null;
        maxCallDurationSeconds?: number;
        name?: string;
        nickname?: string | null;
        whatsappAvatar?: SendMessageMedia;
        whatsappName?: string;
    }
    Index

    The avatar photo: a public image URL (downloaded server-side), a local file path, or raw bytes (both uploaded as multipart). Replace-only — a photo can't be removed.

    Without channel this is the iMessage avatar: jpeg/png/gif/webp, max 5 MB, iMessage numbers only. With channel it is applied to the channel(s) named there, and when WhatsApp is among them it must also satisfy WhatsApp's stricter rules — square jpeg or png between 192×192 and 640×640, not resized, with no transparent pixels.

    callingEnabled?: boolean

    Switch calling on or off for this number, in both directions. false stops inbound calls from being connected and makes DialClient.makeCall from this number throw calling_disabled (409); messaging is unaffected. Takes effect on the next call — a call already in progress is not ended. Omitted leaves it unchanged.

    channel?: ProfileChannel

    Which channel(s) name and avatar are written to. Use "both" when the number should present one identity everywhere: it is a single call instead of two, and the name and photo are checked against every targeted channel before any of them is written, so a value one channel rejects can't leave the two profiles disagreeing. Cannot be combined with the per-channel fields (firstName, lastName, whatsappName, whatsappAvatar).

    firstName?: string | null

    iMessage display first name shown beside this number's messages in recipients' Messages apps (max 30 chars). null or "" clears it. Valid only on numbers with the imessage capability — rejected with 400 otherwise.

    forwardTo?: string | null

    Forward inbound calls to this phone number (E.164) instead of having the AI voice agent answer; the call ends if that phone is busy or doesn't answer. null stops forwarding. Omitted leaves it unchanged. Rejected (400) when not valid E.164 or when it is the number's own number. Has no effect while callingEnabled is false.

    inboundInstruction?: string

    New system prompt the AI voice agent uses on inbound calls to this number.

    inboundLanguage?: string | null

    BCP-47 language tag pinning inbound calls to this number to one language. null clears it, so the language reverts to per-call detection from the caller's country prefix.

    inboundVoiceGender?: "male" | "female" | null

    Voice gender for inbound calls: "male" or "female". null clears it, so the voice reverts to the default (female).

    lastName?: string | null

    iMessage display last name (max 30 chars); null or "" clears it. iMessage numbers only.

    maxCallDurationSeconds?: number

    Cap calls on this number to at most this many seconds, applied as a hard ceiling to both inbound calls to the number and outbound calls placed from it. The effective cap on any call is the smallest of the per-number, account, and per-call limits.

    name?: string

    The display name to set on the channel(s) channel names; requires channel. WhatsApp stores it verbatim (1–25 chars). iMessage has no single-name field, so it is split on the first space — "Ana Lee" becomes first name "Ana", last name "Lee", and a single word leaves the last name cleared.

    nickname?: string | null

    Human-readable label for the number, max 100 chars; null or "" clears it.

    whatsappAvatar?: SendMessageMedia

    WhatsApp avatar photo: a public image URL (downloaded server-side), a local file path, or raw bytes (both uploaded as multipart). Square jpeg or png between 192×192 and 640×640 — not resized — with no transparent pixels (a png with any is rejected with 400). WhatsApp-ready numbers only.

    whatsappName?: string

    WhatsApp display name shown to recipients (1–25 chars, no reserved verification marks). Valid only on WhatsApp-ready numbers; the call blocks until WhatsApp applies it and fails with 503 if the line can't be driven.