Bento SDKs
The recommended way to interact with the Bento API is through one of our SDKs. Bento has SDKs for JavaScript, Node.js, Next.js, Ruby, PHP, Laravel, WordPress, WooCommerce, Python, Go, .NET, Rust, Swift, Meteor.js, and Supabase. The Elixir SDK is community maintained.
Our Postman Collection covers every Bento API endpoint, so you can call the API directly from any language.
You can also view our OpenAPI Spec for full details on each endpoint and its responses, or use it to generate your own client library.
Official Libraries
Ruby on Rails SDK
Full API support for Ruby and Rails. Requires Ruby 2.6 or higher.
gem 'bento-sdk'Laravel for PHP SDK
Full API support and a Bento mail driver. Requires Laravel 10 or higher and PHP 8.2 or higher.
composer require bentonow/bento-laravel-sdkStandalone PHP SDK
Full API support in a plain PHP package.
composer require bentonow/bento-php-sdkNode.js SDK
Full API support. Requires Node.js 18 or higher.
npm install @bentonow/bento-node-sdkNext.js SDK
Bento tracking for Next.js 12 (legacy) and 13+.
npm install @bentonow/bento-nextjs-sdkWordPress SDK
eCommerce analytics plugin for WordPress and WooCommerce. Install the plugin zip from GitHub.
Client-side JS SDK
Website analytics script for tracking events and user activity on your website in Bento.
<script src="https://fast.bentonow.com?site_uuid={Site Key}" async defer></script>Python SDK
Email marketing and automation API client for Python 3. Install it from GitHub. It is not on PyPI.
pip install git+https://github.com/bentonow/bento-python-sdk.gitSwift SDK
Swift package for iOS and macOS. Add it with Swift Package Manager from the master branch.
.package(url: "https://github.com/bentonow/bento-swift-sdk.git", branch: "master")Go SDK
Simple, opinionated Go SDK to integrate into your projects.
go get github.com/bentonow/bento-golang-sdk.NET SDK
C# SDK for .NET 8 and higher, with dependency injection support.
dotnet add package Bento.SDKRust SDK
Async Rust SDK. Add it as a git dependency. The bento crate on crates.io is a different project.
bento = { git = "https://github.com/bentonow/bento-rust-sdk" }Meteor.js Mail Adaptor
Mail adaptor for Meteor.js that sends transactional emails through Bento.
meteor add bento:meteor-mailElixir SDK
Community-maintained Elixir SDK by Alan Bradburne, published on Hex as bento_sdk.
{:bento_sdk, "~> 0.1.1"}Library Feature Support
Below is a table of the features that are supported by each library. Our goal is to get each library up to feature parity with the others. If you'd like to contribute in exchange for credits, please reach out to us via support.
| Feature | Node | Laravel | WordPress | Ruby | PHP | Python | Go | .NET | Rust | Elixir |
|---|---|---|---|---|---|---|---|---|---|---|
| Web Tracking | Not supported | Not supported | Supported | Supported | Not supported | Not supported | Not supported | Not supported | Not supported | Not supported |
| Event Trigger | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Subscriber Import | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Subscriber API | Supported | Supported | Not supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Events API | Supported | Supported | Not supported | Supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Emails API | Supported | Supported | Not supported | Supported | Supported | Not supported | Supported | Supported | Supported | Supported |
| Fields API | Supported | Supported | Not supported | Not supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Tags API | Supported | Supported | Not supported | Not supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Broadcasts API | Supported | Supported | Not supported | Not supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Stats API | Supported | Supported | Not supported | Not supported | Supported | Supported | Supported | Supported | Supported | Supported |
| Reporting API | Supported | Supported | Not supported | Not supported | Not supported | Not supported | Supported | Supported | Supported | Supported |
| Utility API | Supported | Supported | Not supported | Not supported | Not supported | Supported | Supported | Supported | Supported | Supported |