Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the

Data Transfer Objects


Customer

customer page anchor

A customer is a detailed description of a customer, including their associated channels.

PropertyTypeDescription
customer_idStringThe customer's unique ID.
display_nameStringThe customer's display name.
channelsAn array of Channel resources, optionalA list of channel addresses, used only on the Customer Details screen.
linksAn array of Link resources, optionalA list of a customer's links, used only on the Customer Details screen.
detailsA Detail resource, optionalAdditional information about the customer
avatarString, optionalAn absolute URL of the customer's avatar image.

A channel is a customer contact address.

PropertyTypeDescription
typeEnum: sms, whatsapp, chatThe channel type.
valueStringThe channel address.

A detail is a field that can be used to display additional information about a customer.

PropertyTypeDescription
titleStringThe title of the detail section.
contentStringThe additional information that is to be displayed. Can include multiple lines.

Example of a Data transfer Object for Customer: Note: A whatsapp number is not required.

1
{
2
"display_name": "Joseph Martin",
3
"channels": [
4
{ "type": "sms", "value": "+15558675310" },
5
{ "type": "whatsapp", "value": "whatsapp:+15558675310" }
6
],
7
"links": [
8
{ "type": "Facebook", "value": "https://www.facebook.com/josephmartin/", "display_name": "Facebook" }
9
],
10
"details": {
11
"title": "Purchase History",
12
"content": "Product: Unobtanium\n\nDate: 2021-07-07\nQuantity: 1000 units\n\nSales rep: Jessie Robinson"
13
}
14
}

The Conversation resource is what binds Twilio Frontline users and customers together. Learn about the Conversation resource and how you can update one here.

PropertyTypeDescription
friendlyNameString, optionalThe human-readable name of a conversation.
attributes.avatarString, optionalAn absolute URL to the conversation avatar image. A custom attribute defined by Twilio Frontline.

The User resource represents a Twilio Frontline user, who can log into the app.

PropertyTypeDescription
friendlyNameString, optionalThe user's display name.
identityStringThe app user identity.
attributes.avatarString, optionalAn absolute URL to the user's avatar image. A custom attribute defined by Twilio Frontline.

The Participant resource represents a customer in Twilio Frontline who is a non-chat conversation participant, i.e., via WhatsApp or SMS. Learn more about the Participant resource and how to update it here.

PropertyTypeDescription
attributes.customer_idStringAn ID used to tie together a conversation participant and a customer in your system. A custom attribute defined by Twilio Frontline.
attributes.avatarString, optionalAn absolute URL to the participant's avatar image. A custom attribute defined by Twilio Frontline
attributes.display_nameString, optionalThe participant's display name. A custom attribute defined by Twilio Frontline.

A Template is a predefined message with placeholders for custom variables.

PropertyTypeDescription
contentStringThe message string.
whatsAppApprovedBoolean, optionalA flag which shows whether a template has been approved by Facebook.

A Category is an object that groups together similar templates.

PropertyTypeDescription
display_nameStringThe Category's title.
templatesAn array of Template resourcesThe list of templates that are members of the Category.