Skip to content

Single-Question Decision

POST https://api.bipkit.io/api/v1/decide
Authorization: Bearer bpk_live_YOUR_API_KEY
Content-Type: application/json

Required Scope: evaluate:run

Use POST /api/v1/decide when you only need a single categorical classification without constructing a multi-dimensional evaluations map.

Field Type Required Description
state string Yes Text or context to classify.
choices array Yes Candidate objects ({ "id": "...", "label": "..." }).
engine string No "bip-instant" or "bip-cascade".
top_k integer No Maximum ranked candidates to return in decisions.
import { Bipkit } from "@bipware-org/bipkit";
const bipkit = new Bipkit();
const decision = await bipkit.decide({
state: "Can you refund my subscription? I was billed twice.",
choices: [
{ id: "billing", label: "Billing & Subscriptions" },
{ id: "tech_support", label: "Technical Support" },
{ id: "general", label: "General Inquiry" },
],
engine: "bip-instant",
top_k: 3,
});
console.log(decision.top_choice, decision.uncertainty_entropy);