Alexa HTML SDK Reference

The Alexa HTML SDK is a JavaScript library that lets your web app send messages to and receive messages from your skill. Your web app can also use the SDK to respond to events on the device, such as when Alexa starts or stops speaking. To display your web app, the device must support the Alexa.Presentation.HTML interface.

For additional information, please review the following links:

  1. Alexa Client Interface
  2. Build Your Web App Using the Alexa Web API For Games

Classes

DefaultMessageProvider

Interfaces

Type Aliases

ErrorCode

ErrorCode: "no-such-version" | "unauthorized-access" | "too-many-requests" | "unknown"

MessageActions

MessageActions: "alexa-html-ready" | "message-to-html" | "tts-started" | "tts-stopped" | "mic-event" | "memory-available"

Messages - These are all the HTML to Device Message Definitions

Variables

utils

const utils: Utils

Functions

ExtensionsMessageProvider

ExtensionsMessageProvider(target): ExtensionsMessageProvider

Parameters

Name Type
target string

Returns

ExtensionsMessageProvider


create

create(options?): Promise<AlexaReadyPayload | ErrorWithCode>

Asynchronously creates an Alexa Client.

Returns a promise which is fulfilled with AlexaReadyPayload or rejected with an ErrorWithCode.

Takes an optional CreateClientOptions where you can override the option defaults.

If a version isn't provided it will default to the latest API. This can only be called once per page.

Parameters

Name Type
options? CreateClientOptions

Returns

Promise<AlexaReadyPayload | ErrorWithCode>


Was this page helpful?

Last updated: Nov 20, 2026