Run War Room Scenario
curl --request POST \
--url https://api.example.com/deals/{deal_id}/war-room/scenarios/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
{
"actorName": "<string>",
"action": "<string>",
"actorContactId": "<string>",
"actorRole": "<string>",
"context": "<string>"
}
],
"title": "<string>"
}
'import requests
url = "https://api.example.com/deals/{deal_id}/war-room/scenarios/run"
payload = {
"actions": [
{
"actorName": "<string>",
"action": "<string>",
"actorContactId": "<string>",
"actorRole": "<string>",
"context": "<string>"
}
],
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actions: [
{
actorName: '<string>',
action: '<string>',
actorContactId: '<string>',
actorRole: '<string>',
context: '<string>'
}
],
title: '<string>'
})
};
fetch('https://api.example.com/deals/{deal_id}/war-room/scenarios/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/deals/{deal_id}/war-room/scenarios/run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'actions' => [
[
'actorName' => '<string>',
'action' => '<string>',
'actorContactId' => '<string>',
'actorRole' => '<string>',
'context' => '<string>'
]
],
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/deals/{deal_id}/war-room/scenarios/run"
payload := strings.NewReader("{\n \"actions\": [\n {\n \"actorName\": \"<string>\",\n \"action\": \"<string>\",\n \"actorContactId\": \"<string>\",\n \"actorRole\": \"<string>\",\n \"context\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/deals/{deal_id}/war-room/scenarios/run")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actions\": [\n {\n \"actorName\": \"<string>\",\n \"action\": \"<string>\",\n \"actorContactId\": \"<string>\",\n \"actorRole\": \"<string>\",\n \"context\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/deals/{deal_id}/war-room/scenarios/run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actions\": [\n {\n \"actorName\": \"<string>\",\n \"action\": \"<string>\",\n \"actorContactId\": \"<string>\",\n \"actorRole\": \"<string>\",\n \"context\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Deals
Run a Scenario
POST
/
deals
/
{deal_id}
/
war-room
/
scenarios
/
run
Run War Room Scenario
curl --request POST \
--url https://api.example.com/deals/{deal_id}/war-room/scenarios/run \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"actions": [
{
"actorName": "<string>",
"action": "<string>",
"actorContactId": "<string>",
"actorRole": "<string>",
"context": "<string>"
}
],
"title": "<string>"
}
'import requests
url = "https://api.example.com/deals/{deal_id}/war-room/scenarios/run"
payload = {
"actions": [
{
"actorName": "<string>",
"action": "<string>",
"actorContactId": "<string>",
"actorRole": "<string>",
"context": "<string>"
}
],
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
actions: [
{
actorName: '<string>',
action: '<string>',
actorContactId: '<string>',
actorRole: '<string>',
context: '<string>'
}
],
title: '<string>'
})
};
fetch('https://api.example.com/deals/{deal_id}/war-room/scenarios/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/deals/{deal_id}/war-room/scenarios/run",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'actions' => [
[
'actorName' => '<string>',
'action' => '<string>',
'actorContactId' => '<string>',
'actorRole' => '<string>',
'context' => '<string>'
]
],
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/deals/{deal_id}/war-room/scenarios/run"
payload := strings.NewReader("{\n \"actions\": [\n {\n \"actorName\": \"<string>\",\n \"action\": \"<string>\",\n \"actorContactId\": \"<string>\",\n \"actorRole\": \"<string>\",\n \"context\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/deals/{deal_id}/war-room/scenarios/run")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"actions\": [\n {\n \"actorName\": \"<string>\",\n \"action\": \"<string>\",\n \"actorContactId\": \"<string>\",\n \"actorRole\": \"<string>\",\n \"context\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/deals/{deal_id}/war-room/scenarios/run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"actions\": [\n {\n \"actorName\": \"<string>\",\n \"action\": \"<string>\",\n \"actorContactId\": \"<string>\",\n \"actorRole\": \"<string>\",\n \"context\": \"<string>\"\n }\n ],\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Gated by the live, per-user feature flag
deals_war_room — 403 when disabled for the caller.
Synchronous (unlike the brief/competitive-intelligence generators) — creates a pending scenario row, runs the simulation inline against the deal’s saved war-room context (building one on the fly if none exists), and updates the row to completed or failed before returning.
Auth
Requires a CRM manage scope and an active organization on the token. Any*:manage scope qualifies — in practice contacts:manage, deals:manage, companies:manage, or activities:manage.
Response
201 with the completed scenario row — same shape as List Scenarios. scenario_result shape:
{title, summary, currentState: {winProbability, coalitionStrength, riskLevel}, branches: [{id, label, probability, sentiment, winProbability, coalitionStrength, riskLevel, stakeholderShifts: [{name, fromStance, toStance, reason}], counterMove, keyRisks, subBranches: [...] (recursive, up to depth 2)}], recommendedPath, recommendedCounterMoves: [{priority, action, timing, rationale}]}
Simulated via Anthropic when configured (falling back to a deterministic 3-branch stub scenario otherwise, or on invalid LLM JSON). Every branch’s winProbability is clamped to within ±35 points of the deal’s current win_probability, so a single scenario can’t swing from e.g. 30% to 90%.
Errors
| Status | Cause |
|---|---|
404 | Deal not found. |
500 | Simulation failed after the scenario row was already created — the row is marked failed rather than left pending. |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The deal's id.
Body
application/json
Response
Successful Response