Javascript API

Our widgets can fly on their own. Need more customization? Our Javascript API will have your back!

Open your widget

You can open your widget using the following code. This function auto toggles so if you call it when the widget is open, the widget will close.

widgetbird('open');

Close your widget

You can close your widget using the following code.

widgetbird('close');

Open an integration

You can open an integration from your widget using the following code. Substitute {integration_id} for your integration ID. You can get the integration ID from the URL in your Widgetbird dashboard.

widgetbird('open_integration', '{integration_id}');

Destroy your widget

You can destory your widget using the following code.

widgetbird('destroy');