Send a Message With HTML
- email and Web Chat support HTML
Prerequisites
- Provide an access token in the request header.
- To support an HTML message, the request object must provide:
- The id of the ticket
- The HTML
Overview
Only email and Web Chat protocols support HTML messages.
If any participant in the transaction chain uses a protocol that does not support the HTML, they are provided with a plain text version of the message. If a plain text version of the message is not supplied in the request, we convert the HTML to plain text.
Send a message using the API
Send a message by sending a POST request to https://app.glassix.com/api/v1.2/tickets/send/{ticketId}
, (see the spec.).
{
"text": "Ahoy!",
"html": "<div>Ahoy!</div>"
}
Supported HTML and CSS
Note:
Only in-line CSS is supported.
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
A
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
a | align | |
abbr | alt | |
address | ||
article | ||
aside |
B
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
b | background | border |
bdi | background-attachment | |
big | background-color | |
blockquote | background-image | |
body | background-position | |
br | background-repeat | |
border | ||
border-bottom | ||
border-bottom-color | ||
border-bottom-style | ||
border-bottom-width | ||
border-collapse | ||
border-color | ||
border-left | ||
border-left-color | ||
border-left-style | ||
border-left-width | ||
border-right | ||
border-right-color | ||
border-right-style | ||
border-right-width | ||
border-spacing | ||
border-style | ||
border-top | ||
border-top-color | ||
border-top-style | ||
border-top-width | ||
border-width, bottom | ||
bottom | ||
box-sizing |
C
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
caption | clear | cellpadding |
center | clip | cellspacing |
cite | color | cite |
code | content | clear |
col | colspan | |
colgroup | compact | |
crossorigin |
D
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
data | direction | data-cid |
details | display | datetime |
dd | dir | |
dfn | disabled | |
div | ||
dl | ||
dt |
E
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
em | empty-cells |
F
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
figure | float | for |
figcaption | font | frame |
footer | font-family | |
font-size | ||
font-style | ||
font-variant | ||
font-weight |
H
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
h1 | height | headers |
h2 | height | |
h3 | high | |
h4 | href | |
h5 | ||
h6 | ||
head | ||
header | ||
hr | ||
html |
I
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
i | ||
img | ||
ins |
L
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
label | left | label |
legend | letter-spacing | lang |
li | line-height | line-color |
list-style | ||
list-style-image | ||
list-style-position | ||
list-style-type |
M
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
main | margin | media |
mark | margin-bottom | |
menuitem | margin-left | |
margin-right | ||
margin-top | ||
max-height | ||
max-width | ||
min-height | ||
min-width |
N
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
nav | name | |
noshade | ||
nowrap |
O
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
ol | opacity | open |
outline | ||
outline-style | ||
outline-width | ||
overflow |
P
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
p | padding | placeholder |
pre | padding-bottom | pubdate |
padding-left | ||
padding-right | ||
padding-top |
Q
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
q | quotes |
R
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
ruby | right | rel |
rp | rev | |
rt | reversed | |
rowspan | ||
rules |
S
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
s | scope | |
samp | shape | |
section | span | |
small | src | |
span | start | |
strike | style | |
strong | summary | |
sub | ||
summary | ||
sup |
T
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
table | table-layout | target |
tbody | text-align | title |
td | text-decoration | |
tfoot | text-indent | |
th | text-transform | |
thead | top | |
time | ||
tr |
U
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
u | unicode-bidi | |
ul |
V
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
var | vertical-align | valign |
visibility | vspace |
W
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
wbr | white-space | width |
width | ||
word-spacing |
Z
Supported HTML tags | Supported CSS | Supported Attributes |
---|---|---|
z-index |
Inline CSS
{
"html": "<p style=\"text-align: center;\">Sounds like we should connect you to our enterprise team.</p>"
}
Updated about 1 month ago