---
title: "Select winning A/B test variation"
method: POST
path: "/api/broadcasts.selectWinner"
---

# Select winning A/B test variation

`POST /api/broadcasts.selectWinner`

Manually selects the winning variation for an A/B test broadcast. The winning variation will be sent to the remaining audience. This endpoint is restricted in demo mode.

## Request body

- SelectWinnerRequest
  - `workspace_id` string, required — The ID of the workspace
  - `id` string, required — ID of the broadcast
  - `template_id` string, required — Template ID of the winning variation

## Response `200`

Winner selected successfully

- object
  - `success` boolean

## Other responses

- `400` — Bad request - validation failed
- `401` — Unauthorized - invalid or missing authentication token
- `500` — Internal server error

## Changes

- **2025-11-14** `940c5636d0b4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pierre-b/apis/notifuse-api/changes/api/broadcasts.selectWinner/post.md)

---

[API](https://skmtc.dev/pierre-b/apis/notifuse-api.md) · [All operations](https://skmtc.dev/pierre-b/apis/notifuse-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pierre-b/notifuse-api/revisions/c9edbbd76e08/schema)
