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
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 by sending a POST request to https://app.glassix.com/api/v1.2/tickets/send/{ticketId}
, (see the spec. ).
JSON
{
"text": "Ahoy!",
"html": "<div>Ahoy!</div>"
}
🚧 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
Supported HTML tags Supported CSS Supported Attributes a align abbr alt address article aside
Back to top ↑
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 ↑
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 ↑
Supported HTML tags Supported CSS Supported Attributes data direction data-cid details display datetime dd dir dfn disabled div dl dt
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes em empty-cells
Back to top ↑
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 ↑
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 ↑
Supported HTML tags Supported CSS Supported Attributes i img ins
Back to top ↑
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 ↑
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 ↑
Supported HTML tags Supported CSS Supported Attributes nav name noshade nowrap
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes ol opacity open outline outline-style outline-width overflow
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes p padding placeholder pre padding-bottom pubdate padding-left padding-right padding-top
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes q quotes
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes ruby right rel rp rev rt reversed rowspan rules
Back to top ↑
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 ↑
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 ↑
Supported HTML tags Supported CSS Supported Attributes u unicode-bidi ul
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes var vertical-align valign visibility vspace
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes wbr white-space width width word-spacing
Back to top ↑
Supported HTML tags Supported CSS Supported Attributes z-index
Back to top ↑
CSS
{
"html": "<p style=\"text-align: center;\">Sounds like we should connect you to our enterprise team.</p>"
}