Create funnel
curl --request POST \
--url https://api.cx.stax.ai/deals/funnel/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"_id": "<string>",
"created_at": "<string>",
"default_deal_value": 123,
"deleted_at": "<string>",
"lost_template": "<string>",
"name": "<string>",
"proposal_public": {
"allowed_scenarios": [
"<string>"
],
"assignee": "<string>",
"client_settings": {
"allow_provision_changes": true,
"allow_scenario_changes": true,
"require_approval": true,
"require_tpa_review": true
},
"collect_plan_design_preferences": true,
"default_fee_schedule": "<string>",
"enabled": true,
"flow_mode": "<string>",
"link_expiry_minutes": 123,
"notify_assignee": true
},
"stages": [
{
"_id": "<string>",
"avg_duration": 123,
"close_prior_projects": true,
"manual_close_probability": 123,
"name": "<string>",
"owner": "<string>",
"probabilities": [
{
"days": 123,
"of": "<string>",
"percent": 123
}
],
"template": "<string>"
}
],
"team": "<string>",
"won_template": "<string>"
}
'import requests
url = "https://api.cx.stax.ai/deals/funnel/"
payload = {
"_id": "<string>",
"created_at": "<string>",
"default_deal_value": 123,
"deleted_at": "<string>",
"lost_template": "<string>",
"name": "<string>",
"proposal_public": {
"allowed_scenarios": ["<string>"],
"assignee": "<string>",
"client_settings": {
"allow_provision_changes": True,
"allow_scenario_changes": True,
"require_approval": True,
"require_tpa_review": True
},
"collect_plan_design_preferences": True,
"default_fee_schedule": "<string>",
"enabled": True,
"flow_mode": "<string>",
"link_expiry_minutes": 123,
"notify_assignee": True
},
"stages": [
{
"_id": "<string>",
"avg_duration": 123,
"close_prior_projects": True,
"manual_close_probability": 123,
"name": "<string>",
"owner": "<string>",
"probabilities": [
{
"days": 123,
"of": "<string>",
"percent": 123
}
],
"template": "<string>"
}
],
"team": "<string>",
"won_template": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: '<string>',
created_at: '<string>',
default_deal_value: 123,
deleted_at: '<string>',
lost_template: '<string>',
name: '<string>',
proposal_public: {
allowed_scenarios: ['<string>'],
assignee: '<string>',
client_settings: {
allow_provision_changes: true,
allow_scenario_changes: true,
require_approval: true,
require_tpa_review: true
},
collect_plan_design_preferences: true,
default_fee_schedule: '<string>',
enabled: true,
flow_mode: '<string>',
link_expiry_minutes: 123,
notify_assignee: true
},
stages: [
{
_id: '<string>',
avg_duration: 123,
close_prior_projects: true,
manual_close_probability: 123,
name: '<string>',
owner: '<string>',
probabilities: [{days: 123, of: '<string>', percent: 123}],
template: '<string>'
}
],
team: '<string>',
won_template: '<string>'
})
};
fetch('https://api.cx.stax.ai/deals/funnel/', 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.cx.stax.ai/deals/funnel/",
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([
'_id' => '<string>',
'created_at' => '<string>',
'default_deal_value' => 123,
'deleted_at' => '<string>',
'lost_template' => '<string>',
'name' => '<string>',
'proposal_public' => [
'allowed_scenarios' => [
'<string>'
],
'assignee' => '<string>',
'client_settings' => [
'allow_provision_changes' => true,
'allow_scenario_changes' => true,
'require_approval' => true,
'require_tpa_review' => true
],
'collect_plan_design_preferences' => true,
'default_fee_schedule' => '<string>',
'enabled' => true,
'flow_mode' => '<string>',
'link_expiry_minutes' => 123,
'notify_assignee' => true
],
'stages' => [
[
'_id' => '<string>',
'avg_duration' => 123,
'close_prior_projects' => true,
'manual_close_probability' => 123,
'name' => '<string>',
'owner' => '<string>',
'probabilities' => [
[
'days' => 123,
'of' => '<string>',
'percent' => 123
]
],
'template' => '<string>'
]
],
'team' => '<string>',
'won_template' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.cx.stax.ai/deals/funnel/"
payload := strings.NewReader("{\n \"_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"default_deal_value\": 123,\n \"deleted_at\": \"<string>\",\n \"lost_template\": \"<string>\",\n \"name\": \"<string>\",\n \"proposal_public\": {\n \"allowed_scenarios\": [\n \"<string>\"\n ],\n \"assignee\": \"<string>\",\n \"client_settings\": {\n \"allow_provision_changes\": true,\n \"allow_scenario_changes\": true,\n \"require_approval\": true,\n \"require_tpa_review\": true\n },\n \"collect_plan_design_preferences\": true,\n \"default_fee_schedule\": \"<string>\",\n \"enabled\": true,\n \"flow_mode\": \"<string>\",\n \"link_expiry_minutes\": 123,\n \"notify_assignee\": true\n },\n \"stages\": [\n {\n \"_id\": \"<string>\",\n \"avg_duration\": 123,\n \"close_prior_projects\": true,\n \"manual_close_probability\": 123,\n \"name\": \"<string>\",\n \"owner\": \"<string>\",\n \"probabilities\": [\n {\n \"days\": 123,\n \"of\": \"<string>\",\n \"percent\": 123\n }\n ],\n \"template\": \"<string>\"\n }\n ],\n \"team\": \"<string>\",\n \"won_template\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.cx.stax.ai/deals/funnel/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"default_deal_value\": 123,\n \"deleted_at\": \"<string>\",\n \"lost_template\": \"<string>\",\n \"name\": \"<string>\",\n \"proposal_public\": {\n \"allowed_scenarios\": [\n \"<string>\"\n ],\n \"assignee\": \"<string>\",\n \"client_settings\": {\n \"allow_provision_changes\": true,\n \"allow_scenario_changes\": true,\n \"require_approval\": true,\n \"require_tpa_review\": true\n },\n \"collect_plan_design_preferences\": true,\n \"default_fee_schedule\": \"<string>\",\n \"enabled\": true,\n \"flow_mode\": \"<string>\",\n \"link_expiry_minutes\": 123,\n \"notify_assignee\": true\n },\n \"stages\": [\n {\n \"_id\": \"<string>\",\n \"avg_duration\": 123,\n \"close_prior_projects\": true,\n \"manual_close_probability\": 123,\n \"name\": \"<string>\",\n \"owner\": \"<string>\",\n \"probabilities\": [\n {\n \"days\": 123,\n \"of\": \"<string>\",\n \"percent\": 123\n }\n ],\n \"template\": \"<string>\"\n }\n ],\n \"team\": \"<string>\",\n \"won_template\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/deals/funnel/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"default_deal_value\": 123,\n \"deleted_at\": \"<string>\",\n \"lost_template\": \"<string>\",\n \"name\": \"<string>\",\n \"proposal_public\": {\n \"allowed_scenarios\": [\n \"<string>\"\n ],\n \"assignee\": \"<string>\",\n \"client_settings\": {\n \"allow_provision_changes\": true,\n \"allow_scenario_changes\": true,\n \"require_approval\": true,\n \"require_tpa_review\": true\n },\n \"collect_plan_design_preferences\": true,\n \"default_fee_schedule\": \"<string>\",\n \"enabled\": true,\n \"flow_mode\": \"<string>\",\n \"link_expiry_minutes\": 123,\n \"notify_assignee\": true\n },\n \"stages\": [\n {\n \"_id\": \"<string>\",\n \"avg_duration\": 123,\n \"close_prior_projects\": true,\n \"manual_close_probability\": 123,\n \"name\": \"<string>\",\n \"owner\": \"<string>\",\n \"probabilities\": [\n {\n \"days\": 123,\n \"of\": \"<string>\",\n \"percent\": 123\n }\n ],\n \"template\": \"<string>\"\n }\n ],\n \"team\": \"<string>\",\n \"won_template\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"created_at": "<string>",
"default_deal_value": 123,
"deleted_at": "<string>",
"lost_template": "<string>",
"name": "<string>",
"proposal_public": {
"allowed_scenarios": [
"<string>"
],
"assignee": "<string>",
"client_settings": {
"allow_provision_changes": true,
"allow_scenario_changes": true,
"require_approval": true,
"require_tpa_review": true
},
"collect_plan_design_preferences": true,
"default_fee_schedule": "<string>",
"enabled": true,
"flow_mode": "<string>",
"link_expiry_minutes": 123,
"notify_assignee": true
},
"stages": [
{
"_id": "<string>",
"avg_duration": 123,
"close_prior_projects": true,
"manual_close_probability": 123,
"name": "<string>",
"owner": "<string>",
"probabilities": [
{
"days": 123,
"of": "<string>",
"percent": 123
}
],
"template": "<string>"
}
],
"team": "<string>",
"won_template": "<string>"
}{}{}deals
Create funnel
Create a new funnel (name required)
POST
/
deals
/
funnel
/
Create funnel
curl --request POST \
--url https://api.cx.stax.ai/deals/funnel/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"_id": "<string>",
"created_at": "<string>",
"default_deal_value": 123,
"deleted_at": "<string>",
"lost_template": "<string>",
"name": "<string>",
"proposal_public": {
"allowed_scenarios": [
"<string>"
],
"assignee": "<string>",
"client_settings": {
"allow_provision_changes": true,
"allow_scenario_changes": true,
"require_approval": true,
"require_tpa_review": true
},
"collect_plan_design_preferences": true,
"default_fee_schedule": "<string>",
"enabled": true,
"flow_mode": "<string>",
"link_expiry_minutes": 123,
"notify_assignee": true
},
"stages": [
{
"_id": "<string>",
"avg_duration": 123,
"close_prior_projects": true,
"manual_close_probability": 123,
"name": "<string>",
"owner": "<string>",
"probabilities": [
{
"days": 123,
"of": "<string>",
"percent": 123
}
],
"template": "<string>"
}
],
"team": "<string>",
"won_template": "<string>"
}
'import requests
url = "https://api.cx.stax.ai/deals/funnel/"
payload = {
"_id": "<string>",
"created_at": "<string>",
"default_deal_value": 123,
"deleted_at": "<string>",
"lost_template": "<string>",
"name": "<string>",
"proposal_public": {
"allowed_scenarios": ["<string>"],
"assignee": "<string>",
"client_settings": {
"allow_provision_changes": True,
"allow_scenario_changes": True,
"require_approval": True,
"require_tpa_review": True
},
"collect_plan_design_preferences": True,
"default_fee_schedule": "<string>",
"enabled": True,
"flow_mode": "<string>",
"link_expiry_minutes": 123,
"notify_assignee": True
},
"stages": [
{
"_id": "<string>",
"avg_duration": 123,
"close_prior_projects": True,
"manual_close_probability": 123,
"name": "<string>",
"owner": "<string>",
"probabilities": [
{
"days": 123,
"of": "<string>",
"percent": 123
}
],
"template": "<string>"
}
],
"team": "<string>",
"won_template": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
_id: '<string>',
created_at: '<string>',
default_deal_value: 123,
deleted_at: '<string>',
lost_template: '<string>',
name: '<string>',
proposal_public: {
allowed_scenarios: ['<string>'],
assignee: '<string>',
client_settings: {
allow_provision_changes: true,
allow_scenario_changes: true,
require_approval: true,
require_tpa_review: true
},
collect_plan_design_preferences: true,
default_fee_schedule: '<string>',
enabled: true,
flow_mode: '<string>',
link_expiry_minutes: 123,
notify_assignee: true
},
stages: [
{
_id: '<string>',
avg_duration: 123,
close_prior_projects: true,
manual_close_probability: 123,
name: '<string>',
owner: '<string>',
probabilities: [{days: 123, of: '<string>', percent: 123}],
template: '<string>'
}
],
team: '<string>',
won_template: '<string>'
})
};
fetch('https://api.cx.stax.ai/deals/funnel/', 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.cx.stax.ai/deals/funnel/",
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([
'_id' => '<string>',
'created_at' => '<string>',
'default_deal_value' => 123,
'deleted_at' => '<string>',
'lost_template' => '<string>',
'name' => '<string>',
'proposal_public' => [
'allowed_scenarios' => [
'<string>'
],
'assignee' => '<string>',
'client_settings' => [
'allow_provision_changes' => true,
'allow_scenario_changes' => true,
'require_approval' => true,
'require_tpa_review' => true
],
'collect_plan_design_preferences' => true,
'default_fee_schedule' => '<string>',
'enabled' => true,
'flow_mode' => '<string>',
'link_expiry_minutes' => 123,
'notify_assignee' => true
],
'stages' => [
[
'_id' => '<string>',
'avg_duration' => 123,
'close_prior_projects' => true,
'manual_close_probability' => 123,
'name' => '<string>',
'owner' => '<string>',
'probabilities' => [
[
'days' => 123,
'of' => '<string>',
'percent' => 123
]
],
'template' => '<string>'
]
],
'team' => '<string>',
'won_template' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.cx.stax.ai/deals/funnel/"
payload := strings.NewReader("{\n \"_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"default_deal_value\": 123,\n \"deleted_at\": \"<string>\",\n \"lost_template\": \"<string>\",\n \"name\": \"<string>\",\n \"proposal_public\": {\n \"allowed_scenarios\": [\n \"<string>\"\n ],\n \"assignee\": \"<string>\",\n \"client_settings\": {\n \"allow_provision_changes\": true,\n \"allow_scenario_changes\": true,\n \"require_approval\": true,\n \"require_tpa_review\": true\n },\n \"collect_plan_design_preferences\": true,\n \"default_fee_schedule\": \"<string>\",\n \"enabled\": true,\n \"flow_mode\": \"<string>\",\n \"link_expiry_minutes\": 123,\n \"notify_assignee\": true\n },\n \"stages\": [\n {\n \"_id\": \"<string>\",\n \"avg_duration\": 123,\n \"close_prior_projects\": true,\n \"manual_close_probability\": 123,\n \"name\": \"<string>\",\n \"owner\": \"<string>\",\n \"probabilities\": [\n {\n \"days\": 123,\n \"of\": \"<string>\",\n \"percent\": 123\n }\n ],\n \"template\": \"<string>\"\n }\n ],\n \"team\": \"<string>\",\n \"won_template\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.cx.stax.ai/deals/funnel/")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"default_deal_value\": 123,\n \"deleted_at\": \"<string>\",\n \"lost_template\": \"<string>\",\n \"name\": \"<string>\",\n \"proposal_public\": {\n \"allowed_scenarios\": [\n \"<string>\"\n ],\n \"assignee\": \"<string>\",\n \"client_settings\": {\n \"allow_provision_changes\": true,\n \"allow_scenario_changes\": true,\n \"require_approval\": true,\n \"require_tpa_review\": true\n },\n \"collect_plan_design_preferences\": true,\n \"default_fee_schedule\": \"<string>\",\n \"enabled\": true,\n \"flow_mode\": \"<string>\",\n \"link_expiry_minutes\": 123,\n \"notify_assignee\": true\n },\n \"stages\": [\n {\n \"_id\": \"<string>\",\n \"avg_duration\": 123,\n \"close_prior_projects\": true,\n \"manual_close_probability\": 123,\n \"name\": \"<string>\",\n \"owner\": \"<string>\",\n \"probabilities\": [\n {\n \"days\": 123,\n \"of\": \"<string>\",\n \"percent\": 123\n }\n ],\n \"template\": \"<string>\"\n }\n ],\n \"team\": \"<string>\",\n \"won_template\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cx.stax.ai/deals/funnel/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"_id\": \"<string>\",\n \"created_at\": \"<string>\",\n \"default_deal_value\": 123,\n \"deleted_at\": \"<string>\",\n \"lost_template\": \"<string>\",\n \"name\": \"<string>\",\n \"proposal_public\": {\n \"allowed_scenarios\": [\n \"<string>\"\n ],\n \"assignee\": \"<string>\",\n \"client_settings\": {\n \"allow_provision_changes\": true,\n \"allow_scenario_changes\": true,\n \"require_approval\": true,\n \"require_tpa_review\": true\n },\n \"collect_plan_design_preferences\": true,\n \"default_fee_schedule\": \"<string>\",\n \"enabled\": true,\n \"flow_mode\": \"<string>\",\n \"link_expiry_minutes\": 123,\n \"notify_assignee\": true\n },\n \"stages\": [\n {\n \"_id\": \"<string>\",\n \"avg_duration\": 123,\n \"close_prior_projects\": true,\n \"manual_close_probability\": 123,\n \"name\": \"<string>\",\n \"owner\": \"<string>\",\n \"probabilities\": [\n {\n \"days\": 123,\n \"of\": \"<string>\",\n \"percent\": 123\n }\n ],\n \"template\": \"<string>\"\n }\n ],\n \"team\": \"<string>\",\n \"won_template\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"created_at": "<string>",
"default_deal_value": 123,
"deleted_at": "<string>",
"lost_template": "<string>",
"name": "<string>",
"proposal_public": {
"allowed_scenarios": [
"<string>"
],
"assignee": "<string>",
"client_settings": {
"allow_provision_changes": true,
"allow_scenario_changes": true,
"require_approval": true,
"require_tpa_review": true
},
"collect_plan_design_preferences": true,
"default_fee_schedule": "<string>",
"enabled": true,
"flow_mode": "<string>",
"link_expiry_minutes": 123,
"notify_assignee": true
},
"stages": [
{
"_id": "<string>",
"avg_duration": 123,
"close_prior_projects": true,
"manual_close_probability": 123,
"name": "<string>",
"owner": "<string>",
"probabilities": [
{
"days": 123,
"of": "<string>",
"percent": 123
}
],
"template": "<string>"
}
],
"team": "<string>",
"won_template": "<string>"
}{}{}Authorizations
Body
application/json
Funnel creation data