Create funnel
Creates a funnel. Administrator only.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
funnels
Create funnel
curl --request POST \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"funnel": {
"name": "Sample resource",
"stages": {
"source": "api",
"segment": "enterprise"
},
"description": "Sample text",
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"settings": {
"agents": [
1
],
"inboxes": [
1
]
},
"global_custom_attributes": [
{
"name": "Sample resource",
"type": "Sample text",
"is_list": true,
"list_values": [
"Sample text"
]
}
]
}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
funnel: {
name: 'Sample resource',
stages: {source: 'api', segment: 'enterprise'},
description: 'Sample text',
active: true,
is_default: true,
unassigned_visibility: 'everyone',
settings: {agents: [1], inboxes: [1]},
global_custom_attributes: [
{
name: 'Sample resource',
type: 'Sample text',
is_list: true,
list_values: ['Sample text']
}
]
}
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels"
payload = { "funnel": {
"name": "Sample resource",
"stages": {
"source": "api",
"segment": "enterprise"
},
"description": "Sample text",
"active": True,
"is_default": True,
"unassigned_visibility": "everyone",
"settings": {
"agents": [1],
"inboxes": [1]
},
"global_custom_attributes": [
{
"name": "Sample resource",
"type": "Sample text",
"is_list": True,
"list_values": ["Sample text"]
}
]
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels",
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([
'funnel' => [
'name' => 'Sample resource',
'stages' => [
'source' => 'api',
'segment' => 'enterprise'
],
'description' => 'Sample text',
'active' => true,
'is_default' => true,
'unassigned_visibility' => 'everyone',
'settings' => [
'agents' => [
1
],
'inboxes' => [
1
]
],
'global_custom_attributes' => [
[
'name' => 'Sample resource',
'type' => 'Sample text',
'is_list' => true,
'list_values' => [
'Sample text'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <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://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels"
payload := strings.NewReader("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"name\": \"Sample resource\",\n \"type\": \"Sample text\",\n \"is_list\": true,\n \"list_values\": [\n \"Sample text\"\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_access_token", "<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://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"name\": \"Sample resource\",\n \"type\": \"Sample text\",\n \"is_list\": true,\n \"list_values\": [\n \"Sample text\"\n ]\n }\n ]\n }\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"description": "Sample text",
"account_id": 1,
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [
1
],
"inboxes": [
1
],
"contact_panel_contact_wide_items": true
},
"capabilities": {
"can_edit": true,
"can_create": true,
"can_delete": true,
"can_change_visibility": true,
"can_set_default": true
},
"global_custom_attributes": [
{
"source": "api",
"segment": "enterprise"
}
],
"created_at": "2026-05-20T12:00:00Z"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}Autorizações
Resposta
Success
⌘I
Create funnel
curl --request POST \
--url https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"funnel": {
"name": "Sample resource",
"stages": {
"source": "api",
"segment": "enterprise"
},
"description": "Sample text",
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"settings": {
"agents": [
1
],
"inboxes": [
1
]
},
"global_custom_attributes": [
{
"name": "Sample resource",
"type": "Sample text",
"is_list": true,
"list_values": [
"Sample text"
]
}
]
}
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
funnel: {
name: 'Sample resource',
stages: {source: 'api', segment: 'enterprise'},
description: 'Sample text',
active: true,
is_default: true,
unassigned_visibility: 'everyone',
settings: {agents: [1], inboxes: [1]},
global_custom_attributes: [
{
name: 'Sample resource',
type: 'Sample text',
is_list: true,
list_values: ['Sample text']
}
]
}
})
};
fetch('https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels"
payload = { "funnel": {
"name": "Sample resource",
"stages": {
"source": "api",
"segment": "enterprise"
},
"description": "Sample text",
"active": True,
"is_default": True,
"unassigned_visibility": "everyone",
"settings": {
"agents": [1],
"inboxes": [1]
},
"global_custom_attributes": [
{
"name": "Sample resource",
"type": "Sample text",
"is_list": True,
"list_values": ["Sample text"]
}
]
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels",
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([
'funnel' => [
'name' => 'Sample resource',
'stages' => [
'source' => 'api',
'segment' => 'enterprise'
],
'description' => 'Sample text',
'active' => true,
'is_default' => true,
'unassigned_visibility' => 'everyone',
'settings' => [
'agents' => [
1
],
'inboxes' => [
1
]
],
'global_custom_attributes' => [
[
'name' => 'Sample resource',
'type' => 'Sample text',
'is_list' => true,
'list_values' => [
'Sample text'
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <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://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels"
payload := strings.NewReader("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"name\": \"Sample resource\",\n \"type\": \"Sample text\",\n \"is_list\": true,\n \"list_values\": [\n \"Sample text\"\n ]\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_access_token", "<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://chat.wiseapp360.com/api/v1/accounts/{account_id}/funnels")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"funnel\": {\n \"name\": \"Sample resource\",\n \"stages\": {\n \"source\": \"api\",\n \"segment\": \"enterprise\"\n },\n \"description\": \"Sample text\",\n \"active\": true,\n \"is_default\": true,\n \"unassigned_visibility\": \"everyone\",\n \"settings\": {\n \"agents\": [\n 1\n ],\n \"inboxes\": [\n 1\n ]\n },\n \"global_custom_attributes\": [\n {\n \"name\": \"Sample resource\",\n \"type\": \"Sample text\",\n \"is_list\": true,\n \"list_values\": [\n \"Sample text\"\n ]\n }\n ]\n }\n}")
.asString();{
"id": 1,
"name": "Sample resource",
"description": "Sample text",
"account_id": 1,
"active": true,
"is_default": true,
"unassigned_visibility": "everyone",
"stages": {
"source": "api",
"segment": "enterprise"
},
"settings": {
"agents": [
1
],
"inboxes": [
1
],
"contact_panel_contact_wide_items": true
},
"capabilities": {
"can_edit": true,
"can_create": true,
"can_delete": true,
"can_change_visibility": true,
"can_set_default": true
},
"global_custom_attributes": [
{
"source": "api",
"segment": "enterprise"
}
],
"created_at": "2026-05-20T12:00:00Z"
}{
"error": "Unauthorized"
}{
"error": "Forbidden"
}{
"message": "Validation failed",
"attributes": [
"name cannot be blank"
]
}