Skip to main content

Easily Integrate
Miso's API using Konfig's TypeScript SDK

Need a TypeScript SDK for Miso's API?

Growing API Companies trust Konfig's SDKs to onboard developers to their API.

SnapTradeHumanloopSplititLeapGroundx

First, instantiate the SDK

It only takes a few lines of code.

index.ts

import { Miso } from 'miso-typescript-sdk';
const miso = new Miso({
/*
*
* 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 client-side JavaScript code. If the private key is compromised, you can revoke it
* in [Dojo](https://dojo.askmiso.com/docs/api-browser) and get a new one.
*
* Specify your secret key in the `api_key` query parameter. For example:
* ```
* POST /v1/users?api_key=039c501ac8dfcac91c6f05601cee876e1cc07e17
* ```
*
*
*/
secretApiKey: "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 Upload API or to access read-only search and recommendation results for a given user. When using the publishable API key, the requested user_id will need to be hashed to maintain the necessary security compliance.
*
* Specify your publishable key in the `api_key` query parameter. For example:
* ```
* POST /v1/interactions?api_key=039c501ac8dfcac91c6f05601cee876e1cc07e17
* ```
*
*/
publishableApiKey: "API_KEY"
})

Then, send your first request

We made it really easy.

index.ts

// Send Experiment Event
const sendEventResponse = miso.experimentApIs.sendEvent({
user_id: "2179873"
anonymous_id: "403fb18e-98ff-434d-8585-726fabf5ed37"
variant_name: "Treatment_Group"
timestamp: "2022-01-23T12:34:56-08:00"
})

Enjoy a buttery smooth developer experience with 26 SDK methods

How Konfig Works

Konfig collects APIs and automatically generates SDKs so you can focus on building your application.

openapi-examples

Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository

We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

openapi-examples-to-konfig

Generates AI-Augmented SDKs from openapi-examples

Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

konfig-to-package-managers

Publishes to standard package managers

We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

Miso

About Miso

Miso’s simple APIs empower product teams to realize unlimited personalization opportunities. Leading brands are using Miso’s semantic intelligence and real-time clickstream analysis to drive a new generation of personalized experiences and lift revenues sitewide. And unlike traditional solutions, Miso can personalize 100% anonymously — no tracking users or mining data.

Keywords

ai
search

Start integrating Miso's API with Konfig