Skip to main content

Update User Preferences

PUT 

/v1/users/{userId}/preferences

Updates preference settings for a user account.

Common Use Cases​

  • Enable scam blocking: Set scamBlockEnabled: true
  • Customize greeting: Provide customScreenerGreeting (max 150 characters)
  • Adjust security level: Set screenerSecurityLevel to ExtraSecure, Secure, or Safe

Path Parameters​


    userId stringrequired

    UUID for the given user

Header Parameters​


    x-hiya-product-version string

    Product version. The standard "major.minor.patch" format is highly encouraged without any leading characters; "2.1.3" or "3.0.0" for example.


    x-hiya-account-user-id stringrequired

    The identifier of a logged-in user. Same identifier that is used for /users/{user_id}

Body

required

application/json

    namestringrequired

    Name of the user (used for personalized greetings)

    Example: John Smith

    timezonestring

    Timezone identifier of the user

    e.g. America/Los_Angeles

    Android: https://developer.android.com/reference/java/util/TimeZone iOS: https://developer.apple.com/documentation/foundation/timezone


    languagestring

    IETF BCP 47 language code for the user

    Android: https://stackoverflow.com/a/33970189/9086067 iOS: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623160-languagetag


    releaseRingstring

    Release ring the user belongs to (affects which feature flags will be provided to backend services)

    Possible values: [alpha, beta, production]


    keepUsernameHiddenboolean

    True if the user does not want their name revealed to caller's during the screening process


    announceCallRecordingboolean

    True if the user wants to announce that the call is being recorded to the caller


    assistantVoiceIdstring

    Optional. The ID of the selected voice for the user's AI assistant.


    customScreenerGreetingstring

    Optional string that overrides the default screener greeting, if provided. There is a min character limit of 1 and a max character limit of 150.

    If a whitespace only or empty string, the custom greeting is cleared and a default greeting will be used.

    Possible values: <= 150 characters


    scamBlockEnabledboolean

    If true, enables automatic blocking of suspected scam calls before they ring the subscriber's device. Blocking decisions are based on Hiya's global reputation database, which analyzes call patterns, community reports, and network intelligence. Changes to this setting are tracked in the audit log for consent management compliance.


    redirectScamToChatboolean

    If true, suspected scam callers are redirected to the Decoy Engagement Bot instead of being blocked. The bot engages scammers in conversation to waste their time and gather intelligence, while protecting the subscriber from the call. Changes to this setting are tracked in the audit log for consent management compliance.


    screenerSecurityLevelstring

    Security level controlling which calls trigger AI assistant screening:

    • ExtraSecure: Silently reject all scam and nuisance calls; screen all other unknown callers
    • Secure: Silently reject calls from known scam numbers; screen unknown callers
    • Safe: Screen unknown callers only (no automatic rejection)

    Possible values: [ExtraSecure, Secure, Safe]


    silenceScreenerboolean

    If true, suppresses push notifications for screened calls

Responses​

Successfully added