miso.ai Experiment APIs API
Miso's experiment APIs let you do the A/B testing of your current result with Miso.### Start an experiment in Dojo.Login to the [dojo](https://dojo.askmiso.com) platform.Create an experiment event for you.### Start running A/B testing in your environment.#### Implement A/B testing code.Here's an example in NodeJS. You can also use any programming language of you choice.```nodejsconst axios = require('axios');async function get_user_experiment_info(api_key, experiment_id, user_id) { data = {"user_id": user_id} endpoint = `https://api.askmiso.com/v1/experiments/${experiment_id}/events?api_key=${api_key}` return await axios.post(endpoint, data)}const api_key = ''const experiment_id = ""let user_id = 'user_1234' // use to evaluate a treatment forconst user_experiment_info = get_user_experiment_info(api_key, experiment_id, user_id)user_experiment_info.then((response) => { let variant = response.data['variant'] if (variant['name'] == "treatment") { // insert code here to show "treatment" variant } else if (variant['name'] == "control") { // insert code here to show "control" variant } else { // unexpected variant name. raise error throw new Error(`Unexpected variant name ${variant["name"]}`) }})```If you implement A/B testing code in FrontEnd, like JavaScript, and are also worried about exploding the secret api_key. You can choose to use anonymous_id with the public_api_key for this API. Here's an example.```javascriptconst apiKey = '';const experimentId = '';const anonymous_id = 'user_1234'; // use to evaluate a treatment forfunction getUserExperimentInfo(apiKey, experimentId, anonymous_id) { const data = { user_id: anonymous_id }; const url = `https://api.askmiso.com/v1/experiments/${experimentId}/events?api_key=${apiKey}`; const options = { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(data), }; return window.fetch(url, options) .then((response) => response.json()) .then((data) => { const variantName = data.variant.name; if (variantName === `${this.treatmentName}`) { // insert code here to show 'treatment' variant } else if (variantName === `${this.controlName}`) { // insert code here to show 'control' variant } else { // unexpected variant name, throw error throw new Error(`Unexpected variant name: ${variantName}`); } }) .catch((error) => console.error(error));}getUserExperimentInfo(apiKey, experimentId, anonymous_id);```
miso.ai Experiment APIs API is one of 10 APIs that miso.ai publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Experiment APIs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and authentication docs.
This API exposes 1 operation across 1 path, and defines 3 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.
Requests are made against a single base URL, https://api.askmiso.com.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 2
miso.ai Experiment APIs API declares
2 security schemes
for authenticating requests.
An API key is passed in the query as api_key (Secret_API_Key).
An API key is passed in the query as api_key (Publishable_API_Key).
Secret_API_Key— Your secret API key is used to access every Miso API endpoint. You should secure this key and only use it on a backend server. Never leave this key in your cli…Publishable_API_Key— Your publishable API key is used to call Miso's APIs from your front-end code. It can be used to stream interactions from the browser using Miso's Interactions…
Paths & Operations 1
Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.
Miso's experiment APIs let you do the A/B testing of your current result with Miso. Start an experiment in Dojo. Login to the [dojo](https://dojo.askmiso.com) platform. Create an…
Schemas 3
The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are VariantObject (5 properties), ExperimentRequest (4 properties), SendExperimentResponse (3 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from miso.ai 9
Other APIs miso.ai publishes across the network.
This is an independent, third-party profile of miso.ai Experiment APIs API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.