The Cisco Webex JS SDK
npm install --save ciscospark
To use the SDK, you will need Cisco Webex credentials. If you do not already have a Cisco Webex account, visit Cisco Webex for Developers to create your account and retrieve your access token.
See the detailed docs for more usage examples.
const ciscospark = ;const teams = ciscospark;// Create a room with the title "My First Room"// Add Alice and Bob to the room// Send a **Hi Everyone** message to the roomteamsrooms;
A note on browser usage
We do provide a built, minified version of the SDK that includes
window.ciscospark which is hosted on our repo and can be used with gitcdn.xyz.
We do not provide a built version of the SDK that includes
In-browser usage is almost the same as Node.js, but it handles the user authentication flow for you. See the browser guide for more information.
If you're already using a bundler (like Webpack or Rollup) you can simply import/require the package and use the above snippet and assign the initialized
team variable to
For a quick example, we'll use Parcel to bundle the SDK for a website. For any more information and questions on how to use Parcel, please head to their website.
;// Initialize the SDK and make it available to the windowconst teams = windowwebexteams =;// Create a room with the title "My First Room"teamsrooms;// Filter for "My First Room" from the last 10 roomsteamsrooms;
Webex SDK for Browsers
parcel index.htmlin your terminal.
- Go to http://localhost:1234 and open the developer console to see the output.
Full API docs are published at the docs site.
This package is maintained by Cisco Webex for Developers.
Pull requests welcome. Please see CONTRIBUTING.md for more details.
© 2016-2018 Cisco and/or its affiliates. All Rights Reserved.