{"slug":"www-brainiac-software-api-v1-experimentation-bandit-allocate-6a0a46","title":"Next-period traffic weights from arm outcomes","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/experimentation/bandit-allocate","category":"other","description":"Next-period traffic weights from arm outcomes: Thompson-sampling probabilities by deterministic quadrature, or UCB1 indices, with an exploration floor. Docs: https://www.brainiac.software/api/experimentation/bandit-allocate","price_listed":0.03,"price_asked":0.03,"state":"answering","state_label":"Answering","checks_7d":5,"answered_7d":5,"latency_ms_median":310,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"arms":[{"failures":900,"name":"A","successes":100},{"failures":880,"name":"B","successes":120},{"failures":910,"name":"C","successes":90}],"minShare":0.05,"policy":"thompson","prior":{"alpha":1,"beta":1}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"arms":{"description":"arms supplied by the caller for this operation.","example":[{"failures":900,"name":"A","successes":100},{"failures":880,"name":"B","successes":120},{"failures":910,"name":"C","successes":90}],"items":{"type":"object"},"type":"array"},"minShare":{"description":"min Share supplied by the caller for this operation.","example":0.05,"maximum":0.5,"minimum":0,"type":"number"},"policy":{"description":"policy supplied by the caller for this operation.","enum":["thompson","ucb1"],"example":"thompson","type":"string"},"prior":{"description":"prior supplied by the caller for this operation.","example":{"alpha":1,"beta":1},"type":"object"}},"required":["policy","arms"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":291,"error":null},{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":309,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":320,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":339,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":310,"error":null}],"description_full":"Next-period traffic weights from arm outcomes: Thompson-sampling probabilities by deterministic quadrature, or UCB1 indices, with an exploration floor. Docs: https://www.brainiac.software/api/experimentation/bandit-allocate","last_updated":"2026-11-24T15:04:12.892Z","schemes":["exact"]}