These endpoints are available only when Murph is enabled for the caller’s
customer account.
Get preferences
GET /api/v2/murph/user-preferences
Returns the caller’s current Murph preferences. If the request is authenticated
with a service token instead of a user session, the endpoint returns the same
shape with all preference fields set to null.
curl
Response
| Field | Type | Notes |
|---|---|---|
preferredLanguage | enum | null | User-level default language for new Murph conversations. null means Murph auto-detects language |
locale | string | null | BCP-47 display locale, such as en-US, de-DE, or ja-JP |
timezone | string | null | IANA timezone, such as America/New_York or Europe/Berlin |
displayCurrency | string | null | ISO 4217 currency code used for display formatting, such as USD, EUR, or JPY |
Set default language
PUT /api/v2/murph/user-preferences/language
Sets the caller’s user-level default Murph language. New conversations inherit
this value at creation time. Existing conversations keep their own language
override unless you update them separately.
Send preferredLanguage: null to clear the user default and return new
conversations to auto-detect.
curl
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
preferredLanguage | enum | null | Yes | Supported Murph language code, or null to clear the default |
Response
Supported languages
| Code | Language |
|---|---|
en | English |
de | German |
fr | French |
es | Spanish |
pt | Portuguese |
it | Italian |
nl | Dutch |
sv | Swedish |
pl | Polish |
ja | Japanese |
ko | Korean |
zh | Chinese, Simplified |
ar | Arabic |
hi | Hindi |
tr | Turkish |
Errors
400 VALIDATION_ERROR— invalid request body, unsupported language code, invalid locale, invalid timezone, or invalid currency.400 BAD_REQUEST— setting a user-level default was attempted from a non-user auth context.401 UNAUTHORIZED— missing or invalid bearer token.403 FORBIDDEN— Murph is not enabled for the caller’s account.
Related
Ask Murph
How storefront operators use Murph in the platform.
Murph confirmations
Confirmation flows for Murph actions that need approval.