Send a Message With HTML

  • email and Web Chat support HTML

Prerequisites

  1. Provide an access token in the request header.
  2. To support an HTML message, the request object must provide:
    1. The id of the ticket
    2. 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 tagsSupported CSSSupported Attributes
aalign
abbralt
address
article
aside

Back to top ↑

B
Supported HTML tagsSupported CSSSupported Attributes
bbackgroundborder
bdibackground-attachment
bigbackground-color
blockquotebackground-image
bodybackground-position
brbackground-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

Back to top ↑

C
Supported HTML tagsSupported CSSSupported Attributes
captionclearcellpadding
centerclipcellspacing
citecolorcite
codecontentclear
colcolspan
colgroupcompact
crossorigin

Back to top ↑

D
Supported HTML tagsSupported CSSSupported Attributes
datadirectiondata-cid
detailsdisplaydatetime
dddir
dfndisabled
div
dl
dt

Back to top ↑

E
Supported HTML tagsSupported CSSSupported Attributes
emempty-cells

Back to top ↑

F
Supported HTML tagsSupported CSSSupported Attributes
figurefloatfor
figcaptionfontframe
footerfont-family
font-size
font-style
font-variant
font-weight

Back to top ↑

H
Supported HTML tagsSupported CSSSupported Attributes
h1heightheaders
h2height
h3high
h4href
h5
h6
head
header
hr
html

Back to top ↑

I
Supported HTML tagsSupported CSSSupported Attributes
i
img
ins

Back to top ↑

L
Supported HTML tagsSupported CSSSupported Attributes
labelleftlabel
legendletter-spacinglang
liline-heightline-color
list-style
list-style-image
list-style-position
list-style-type

Back to top ↑

M
Supported HTML tagsSupported CSSSupported Attributes
mainmarginmedia
markmargin-bottom
menuitemmargin-left
margin-right
margin-top
max-height
max-width
min-height
min-width

Back to top ↑

N
Supported HTML tagsSupported CSSSupported Attributes
navname
noshade
nowrap

Back to top ↑

O
Supported HTML tagsSupported CSSSupported Attributes
olopacityopen
outline
outline-style
outline-width
overflow

Back to top ↑

P
Supported HTML tagsSupported CSSSupported Attributes
ppaddingplaceholder
prepadding-bottompubdate
padding-left
padding-right
padding-top

Back to top ↑

Q
Supported HTML tagsSupported CSSSupported Attributes
qquotes

Back to top ↑

R
Supported HTML tagsSupported CSSSupported Attributes
rubyrightrel
rprev
rtreversed
rowspan
rules

Back to top ↑

S
Supported HTML tagsSupported CSSSupported Attributes
sscope
sampshape
sectionspan
smallsrc
spanstart
strikestyle
strongsummary
sub
summary
sup

Back to top ↑

T
Supported HTML tagsSupported CSSSupported Attributes
tabletable-layouttarget
tbodytext-aligntitle
tdtext-decoration
tfoottext-indent
thtext-transform
theadtop
time
tr

Back to top ↑

U
Supported HTML tagsSupported CSSSupported Attributes
uunicode-bidi
ul

Back to top ↑

V
Supported HTML tagsSupported CSSSupported Attributes
varvertical-alignvalign
visibilityvspace

Back to top ↑

W
Supported HTML tagsSupported CSSSupported Attributes
wbrwhite-spacewidth
width
word-spacing

Back to top ↑

Z
Supported HTML tagsSupported CSSSupported Attributes
z-index

Back to top ↑

Inline CSS

{
  "html": "<p style=\"text-align: center;\">Sounds like we should connect you to our enterprise team.</p>"
}