v64

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01176310978.7 KB
custom_messages

Get Custom Message By Id

Get the custom message by its ID

get/api/v1/custom_messages/{custom_message_id}

Path parameters

custom_message_idinteger required

Response

Successful Response

namestring required

The name of the custom message

type'greeting' | 'email_template'

Type of custom message. Greeting is for voice; email_template is for email (subject + body).

preamblestring nullable

An optional preamble that will be delivered before the main message, regardless of whether the current time and date match a rule or the system uses the default message. Cannot contain the "{{ language.mode }}" tag. In the case of a voice conversation, the user will not be able to interrupt the preamble. Can be used for e.g. legal disclaimers that the user must always see/hear.

textstring required

The default message that the agent will deliver if no rules are set or no rules match the current timestamp. For email_template, this is the body.

subjectstring nullable

Email subject. Required for email_template (in type_config); ignored otherwise.

labelstring nullable

The label of the custom message

repeat_after_language_changeboolean required

If true, if the caller changes language using the language menu in the custom message, the message will be repeated in the new language (not including the language menu).

idinteger required

The ID of the custom message

updated_atstring date-time required

Timestamp of the most recent update to the custom message

agent_countinteger nullable

The number of agents using the custom message

last_updated_bystring required

The email address of the user who most recently updated the custom message

Example response

{
  "name": "Customer service greeting",
  "preamble": "If this is an emergency, please hang up and call 911.",
  "text": "Hello and thank you for calling customer service. How can I help you today?",
  "subject": "Your appointment reminder",
  "label": "Customer service",
  "rules": [
    {
      "date": "2025-01-01",
      "description": "Closed on New Year's Day",
      "invert": false,
      "text": "Hello, thank you for calling. Sorry, we're closed today.",
      "time_range_end": "17:00",
      "time_range_start": "09:00"
    },
    {
      "days_of_week": [
        "sa",
        "su"
      ],
      "description": "Closed on weekends",
      "invert": false,
      "text": "Hello, thank you for calling. Sorry, we're closed on weekends.",
      "time_range_end": "17:00",
      "time_range_start": "09:00"
    }
  ],
  "id": 1,
  "updated_at": "2024-01-01T00:00:00Z",
  "agent_count": 1,
  "last_updated_by": "user@email.com"
}