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 tags

Supported CSS

Supported Attributes

a

align

abbr

alt

address

article

aside

Back to top ↑

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

Back to top ↑

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

Back to top ↑

D

Supported HTML tags

Supported CSS

Supported Attributes

data

direction

data-cid

details

display

datetime

dd

dir

dfn

disabled

div

dl

dt

Back to top ↑

E

Supported HTML tags

Supported CSS

Supported Attributes

em

empty-cells

Back to top ↑

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

Back to top ↑

H

Supported HTML tags

Supported CSS

Supported Attributes

h1

height

headers

h2

height

h3

high

h4

href

h5

h6

head

header

hr

html

Back to top ↑

I

Supported HTML tags

Supported CSS

Supported Attributes

i

img

ins

Back to top ↑

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

Back to top ↑

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

Back to top ↑

N

Supported HTML tags

Supported CSS

Supported Attributes

nav

name

noshade

nowrap

Back to top ↑

O

Supported HTML tags

Supported CSS

Supported Attributes

ol

opacity

open

outline

outline-style

outline-width

overflow

Back to top ↑

P

Supported HTML tags

Supported CSS

Supported Attributes

p

padding

placeholder

pre

padding-bottom

pubdate

padding-left

padding-right

padding-top

Back to top ↑

Q

Supported HTML tags

Supported CSS

Supported Attributes

q

quotes

Back to top ↑

R

Supported HTML tags

Supported CSS

Supported Attributes

ruby

right

rel

rp

rev

rt

reversed

rowspan

rules

Back to top ↑

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

Back to top ↑

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

Back to top ↑

U

Supported HTML tags

Supported CSS

Supported Attributes

u

unicode-bidi

ul

Back to top ↑

V

Supported HTML tags

Supported CSS

Supported Attributes

var

vertical-align

valign

visibility

vspace

Back to top ↑

W

Supported HTML tags

Supported CSS

Supported Attributes

wbr

white-space

width

width

word-spacing

Back to top ↑

Z

Supported HTML tags

Supported CSS

Supported 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>"
}