All SDKs

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.

Library not supported?

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-sdk

Standalone PHP SDK

Full API support in a plain PHP package.

composer require bentonow/bento-php-sdk

Node.js SDK

Full API support. Requires Node.js 18 or higher.

npm install @bentonow/bento-node-sdk

Next.js SDK

Bento tracking for Next.js 12 (legacy) and 13+.

npm install @bentonow/bento-nextjs-sdk

WordPress 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.git

Swift 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.SDK

Rust 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-mail

Elixir SDK

Community-maintained Elixir SDK by Alan Bradburne, published on Hex as bento_sdk.

{:bento_sdk, "~> 0.1.1"}

Supabase SDK

Supabase Edge Functions that register and verify users with Bento.

supabase functions deploy register-user

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.

SDK feature support by library
FeatureNodeLaravelWordPressRubyPHPPythonGo.NETRustElixir
Web TrackingNot supportedNot supportedSupportedSupportedNot supportedNot supportedNot supportedNot supportedNot supportedNot supported
Event TriggerSupportedSupportedSupportedSupportedSupportedSupportedSupportedSupportedSupportedSupported
Subscriber ImportSupportedSupportedSupportedSupportedSupportedSupportedSupportedSupportedSupportedSupported
Subscriber APISupportedSupportedNot supportedSupportedSupportedSupportedSupportedSupportedSupportedSupported
Events APISupportedSupportedNot supportedSupportedSupportedSupportedSupportedSupportedSupportedSupported
Emails APISupportedSupportedNot supportedSupportedSupportedNot supportedSupportedSupportedSupportedSupported
Fields APISupportedSupportedNot supportedNot supportedSupportedSupportedSupportedSupportedSupportedSupported
Tags APISupportedSupportedNot supportedNot supportedSupportedSupportedSupportedSupportedSupportedSupported
Broadcasts APISupportedSupportedNot supportedNot supportedSupportedSupportedSupportedSupportedSupportedSupported
Stats APISupportedSupportedNot supportedNot supportedSupportedSupportedSupportedSupportedSupportedSupported
Reporting APISupportedSupportedNot supportedNot supportedNot supportedNot supportedSupportedSupportedSupportedSupported
Utility APISupportedSupportedNot supportedNot supportedNot supportedSupportedSupportedSupportedSupportedSupported