Setup Survey
Submit Setup Survey
Submits (creates or updates) the current user’s setup survey response. Idempotent — if a response already exists for the user, it is updated; otherwise a new one is created.
POST
/
api
/
v1
/
setup_survey
Submit Setup Survey
curl --request POST \
--url https://app.evochat.ai/api/v1/setup_survey \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"team_size": "<string>",
"daily_volume": "<string>",
"main_channel": "<string>",
"main_channel_other": "<string>",
"uses_ai": "<string>",
"biggest_pain": "<string>",
"crm_experience": "<string>",
"main_goal": "<string>"
}
'import requests
url = "https://app.evochat.ai/api/v1/setup_survey"
payload = {
"team_size": "<string>",
"daily_volume": "<string>",
"main_channel": "<string>",
"main_channel_other": "<string>",
"uses_ai": "<string>",
"biggest_pain": "<string>",
"crm_experience": "<string>",
"main_goal": "<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({
team_size: '<string>',
daily_volume: '<string>',
main_channel: '<string>',
main_channel_other: '<string>',
uses_ai: '<string>',
biggest_pain: '<string>',
crm_experience: '<string>',
main_goal: '<string>'
})
};
fetch('https://app.evochat.ai/api/v1/setup_survey', 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://app.evochat.ai/api/v1/setup_survey",
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([
'team_size' => '<string>',
'daily_volume' => '<string>',
'main_channel' => '<string>',
'main_channel_other' => '<string>',
'uses_ai' => '<string>',
'biggest_pain' => '<string>',
'crm_experience' => '<string>',
'main_goal' => '<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://app.evochat.ai/api/v1/setup_survey"
payload := strings.NewReader("{\n \"team_size\": \"<string>\",\n \"daily_volume\": \"<string>\",\n \"main_channel\": \"<string>\",\n \"main_channel_other\": \"<string>\",\n \"uses_ai\": \"<string>\",\n \"biggest_pain\": \"<string>\",\n \"crm_experience\": \"<string>\",\n \"main_goal\": \"<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://app.evochat.ai/api/v1/setup_survey")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"team_size\": \"<string>\",\n \"daily_volume\": \"<string>\",\n \"main_channel\": \"<string>\",\n \"main_channel_other\": \"<string>\",\n \"uses_ai\": \"<string>\",\n \"biggest_pain\": \"<string>\",\n \"crm_experience\": \"<string>\",\n \"main_goal\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.evochat.ai/api/v1/setup_survey")
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 \"team_size\": \"<string>\",\n \"daily_volume\": \"<string>\",\n \"main_channel\": \"<string>\",\n \"main_channel_other\": \"<string>\",\n \"uses_ai\": \"<string>\",\n \"biggest_pain\": \"<string>\",\n \"crm_experience\": \"<string>\",\n \"main_goal\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"completed": true
},
"message": "Survey saved successfully"
}{
"success": false,
"message": "Unauthorized"
}{
"success": false,
"message": "<string>",
"errors": {}
}Autorizações
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corpo
application/json
Team size bucket (e.g. '1-5', '6-20', '21-100', '100+')
Daily conversation volume bucket
Primary channel used (whatsapp, instagram, etc.)
Free-text if main_channel == 'other'
Whether the user currently uses AI agents
Biggest operational pain point
Prior CRM experience level
Main goal for adopting the CRM
⌘I
Submit Setup Survey
curl --request POST \
--url https://app.evochat.ai/api/v1/setup_survey \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"team_size": "<string>",
"daily_volume": "<string>",
"main_channel": "<string>",
"main_channel_other": "<string>",
"uses_ai": "<string>",
"biggest_pain": "<string>",
"crm_experience": "<string>",
"main_goal": "<string>"
}
'import requests
url = "https://app.evochat.ai/api/v1/setup_survey"
payload = {
"team_size": "<string>",
"daily_volume": "<string>",
"main_channel": "<string>",
"main_channel_other": "<string>",
"uses_ai": "<string>",
"biggest_pain": "<string>",
"crm_experience": "<string>",
"main_goal": "<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({
team_size: '<string>',
daily_volume: '<string>',
main_channel: '<string>',
main_channel_other: '<string>',
uses_ai: '<string>',
biggest_pain: '<string>',
crm_experience: '<string>',
main_goal: '<string>'
})
};
fetch('https://app.evochat.ai/api/v1/setup_survey', 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://app.evochat.ai/api/v1/setup_survey",
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([
'team_size' => '<string>',
'daily_volume' => '<string>',
'main_channel' => '<string>',
'main_channel_other' => '<string>',
'uses_ai' => '<string>',
'biggest_pain' => '<string>',
'crm_experience' => '<string>',
'main_goal' => '<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://app.evochat.ai/api/v1/setup_survey"
payload := strings.NewReader("{\n \"team_size\": \"<string>\",\n \"daily_volume\": \"<string>\",\n \"main_channel\": \"<string>\",\n \"main_channel_other\": \"<string>\",\n \"uses_ai\": \"<string>\",\n \"biggest_pain\": \"<string>\",\n \"crm_experience\": \"<string>\",\n \"main_goal\": \"<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://app.evochat.ai/api/v1/setup_survey")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"team_size\": \"<string>\",\n \"daily_volume\": \"<string>\",\n \"main_channel\": \"<string>\",\n \"main_channel_other\": \"<string>\",\n \"uses_ai\": \"<string>\",\n \"biggest_pain\": \"<string>\",\n \"crm_experience\": \"<string>\",\n \"main_goal\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.evochat.ai/api/v1/setup_survey")
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 \"team_size\": \"<string>\",\n \"daily_volume\": \"<string>\",\n \"main_channel\": \"<string>\",\n \"main_channel_other\": \"<string>\",\n \"uses_ai\": \"<string>\",\n \"biggest_pain\": \"<string>\",\n \"crm_experience\": \"<string>\",\n \"main_goal\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"completed": true
},
"message": "Survey saved successfully"
}{
"success": false,
"message": "Unauthorized"
}{
"success": false,
"message": "<string>",
"errors": {}
}