Self Service Design API

Each account has one Self Service Design. The path has no ID, because the account in the X-Xurrent-Account header identifies the design.

The design is kept in versions. Self Service shows the Active version. A change goes into the version that is being prepared. When no version is being prepared, the change creates one as a copy of the Active version, with the next version number. Activating the prepared version makes it the Active version, and archives the version that was Active.

This API is for accounts that do not use classic Self Service. People with the Account Designer or the Account Administrator role can read and update the design. People with the Auditor role can read it. The OAuth token needs the self-service-design scope.

Get the Self Service Design

GET /self_service_design

Response

status: 200 OK
{
  "active_version": {
    "accent_color_dark": "#0ea5e9",
    "accent_color_light": "#0369a1",
    "accessibility_color_dark": "#38bdf8",
    "accessibility_color_light": "#38bdf8",
    "activated_at": "2026-11-18T09:12:05-06:00",
    "activated_by": {
      "id": 147,
      "name": "Chris Ball",
      "account": {
        "id": "widget",
        "name": "Widget International"
      },
      "nodeID": "..."
    },
    "background_dark": "#111827",
    "background_image": null,
    "background_light": "#e9ecef",
    "button_color_dark": "#0284c7",
    "button_color_light": "#3b82f6",
    "button_text_color_dark": "#FFFFFF",
    "button_text_color_light": "#FFFFFF",
    "created_at": "2026-11-18T09:12:05-06:00",
    "css": "...",
    "font": "roboto",
    "fonts": "...",
    "html": "...",
    "id": 1353,
    "show_support_chat": true,
    "status": "active",
    "support_chat_disclaimer_custom": false,
    "support_chat_disclaimer_message": null,
    "support_chat_show_disclaimer": false,
    "support_chat_title": null,
    "support_chat_welcome_message": null,
    "updated_at": "2026-11-18T09:12:05-06:00",
    "version_nr": 1,
    "nodeID": "..."
  },
  "created_at": "2026-11-07T18:00:00-06:00",
  "id": 6,
  "prepared_version": {
    "accent_color_dark": "#0ea5e9",
    "accent_color_light": "#0369a1",
    "accessibility_color_dark": "#38bdf8",
    "accessibility_color_light": "#38bdf8",
    "activated_at": null,
    "activated_by": null,
    "background_dark": "#111827",
    "background_image": null,
    "background_light": "#e9ecef",
    "button_color_dark": "#0284c7",
    "button_color_light": "#7800d3",
    "button_text_color_dark": "#FFFFFF",
    "button_text_color_light": "#FFFFFF",
    "created_at": "2026-11-19T01:38:34-06:00",
    "css": "...",
    "font": "roboto",
    "fonts": "...",
    "html": "...",
    "id": 1354,
    "show_support_chat": true,
    "status": "being_prepared",
    "support_chat_disclaimer_custom": true,
    "support_chat_disclaimer_message": "Check important answers with the service desk.",
    "support_chat_show_disclaimer": true,
    "support_chat_title": null,
    "support_chat_welcome_message": null,
    "updated_at": "2026-11-19T01:38:34-06:00",
    "version_nr": 2,
    "nodeID": "..."
  },
  "updated_at": "2026-11-19T01:38:34-06:00",
  "nodeID": "..."
}

The response contains these fields, with the Active version and the prepared version in full. An account that has no versions yet shows the default design as its Active version. An account that uses classic Self Service shows no versions.

Update the Self Service Design

PATCH /self_service_design

When updating the Self Service Design these fields are available. They change the version that is being prepared. A field that the request leaves out keeps its value.

The first update of an account that has no versions yet stores the default design as the Active version 1, and puts the change in version 2, which is being prepared.

An update for an account that uses classic Self Service fails with a validation error.

The API does not download images. An image in the HTML must use https and come from a Xurrent asset host or from the Media Library of the account. A URL in the CSS or the fonts must come from the same places. An image or a URL that the design already has stays allowed. Use the Import API to load a design with images from other hosts.

Response

status: 200 OK
{
  "active_version": "...",
  "prepared_version": "...",
  "...": "..."
}

The response contains all fields of the updated Self Service Design and is similar to the response in Get the Self Service Design

Fields

accent_color_dark
Writeonly string - The accent color in dark mode.
accent_color_light
Writeonly string - The accent color in light mode.
accessibility_color_dark
Writeonly string - The accessibility color in dark mode.
accessibility_color_light
Writeonly string - The accessibility color in light mode.
activate
Writeonly boolean - When true, the version that is being prepared becomes the Active version, after the other changes of the request are applied. When no version is being prepared and the request changes nothing, it changes nothing.
active_version
Readonly version - The version of the design that Self Service shows.
background_dark
Writeonly string - The background color in dark mode.
background_light
Writeonly string - The background color in light mode.
button_color_dark
Writeonly string - The button color in dark mode.
button_color_light
Writeonly string - The button color in light mode.
button_text_color_dark
Writeonly string - The button text color in dark mode.
button_text_color_light
Writeonly string - The button text color in light mode.
created_at
Readonly datetime - The date and time at which the Self Service Design was created.
css
Writeonly text - The CSS stylesheet. It is cleaned and validated. http URLs and SVG data URIs are refused.
font
Writeonly string (max 128) - The font family.
fonts
Writeonly text - The CSS that loads the fonts, such as @font-face rules. It is cleaned and validated like the CSS.
html
Writeonly text - The HTML, a Liquid template. It must have <self-service-header> and <self-service-homepage> as top-level elements, and can also have <self-service-footer> and <self-service-nav>. Each of these elements can occur once. The <self-service-nav> is a top-level element or is in the <self-service-header>.
id
Readonly integer - The unique ID of the Self Service Design.
prepared_version
Readonly version - The version of the design that is being prepared, or null when no version is being prepared.
show_support_chat
Writeonly boolean - Whether Self Service shows the support chat.
support_chat_disclaimer_custom
Writeonly boolean - When true, the support chat shows support_chat_disclaimer_message as the disclaimer. When false, it shows the default disclaimer “AI responses can be incorrect. Verify important information.” in the language of the reader.
support_chat_disclaimer_message
Writeonly string (max 180) - The custom disclaimer of the support chat. It is required when both support_chat_show_disclaimer and support_chat_disclaimer_custom are true. It is translated like the welcome message.
support_chat_show_disclaimer
Writeonly boolean - Whether the support chat shows a disclaimer below its message field. The disclaimer shows only in the chat with the AI virtual agent, so it has an effect only for accounts that have the AI virtual agent.
support_chat_title
Writeonly string (max 40) - The title of the support chat.
support_chat_welcome_message
Writeonly string (max 500) - The welcome message of the support chat. {{first_name}} is replaced by the first name of the reader.
updated_at
Readonly datetime - The date and time of the last update of the Self Service Design. If the Self Service Design has no updates it contains the created_at value.

Version Fields

A version has the fields below. The fields that an update can set are described in Fields.

accent_color_dark accent_color_light accessibility_color_dark accessibility_color_light background_dark background_light button_color_dark button_color_light button_text_color_dark button_text_color_light css font fonts html show_support_chat support_chat_disclaimer_custom support_chat_disclaimer_message support_chat_show_disclaimer support_chat_title support_chat_welcome_message

activated_at
Readonly datetime - The date and time at which the version was activated.
activated_by
Readonly reference to Person - The person who activated the version.
background_image
Readonly reference to a Media File - The background image of the version. It can be set in the Self Service Design settings only.
created_at
Readonly datetime - The date and time at which the version was created.
id
Readonly integer - The unique ID of the version. It is null for the default version of a design that has no versions yet.
status
Readonly enum - The status of the version. Valid values are:
  • being_prepared: Being Prepared
  • active: Active
  • archived: Archived
updated_at
Readonly datetime - The date and time of the last update of the version.
version_nr
Readonly integer - The version number (1..) of the version.