List all A/B tests

Lists all A/B tests you configured for this application.

Usage

Required ACL: analytics
1
2
3
4
5
6
import { algoliasearch } from 'algoliasearch';

// Replace 'us' with your Algolia Application Region
const client = algoliasearch('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY').initAbtesting({ region: 'us' });

const response = await client.listABTests();
Did you find this page helpful?
JavaScript API clients v5