Getting started

The Chathive JavaScript SDK provides functions that allow you to easily embed Chathive projects into your apps or websites and manage their behavior.

1. Install

To install the SDK on your website, copy and paste the snippet below right before the closing </head> tag on every page where you want the SDK and widget to appear.

<script src="https://sdk.chathive.app"></script>

Good to know: If you have a single page app make sure this script is loaded before your try to accessing the SDK

2. Get your API key

You can find your api key in your dashboard under the implementation tab.

3. Init your project

Follow the initialization steps for the project type that matches your project.

Last updated

Was this helpful?