Create a new project
curl --request POST \
--url https://api.salesnip.com/v1/projects \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "Acme",
"description": "[Acme] is a company that sells [product] with great quality and low prices.",
"support": {
"url": "https//example.com/support",
"email": "[email protected]"
},
"theme": {
"shapes": "ROUNDED",
"light": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
},
"dark": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
}
}
}
'import requests
url = "https://api.salesnip.com/v1/projects"
payload = {
"name": "Acme",
"description": "[Acme] is a company that sells [product] with great quality and low prices.",
"support": {
"url": "https//example.com/support",
"email": "[email protected]"
},
"theme": {
"shapes": "ROUNDED",
"light": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
},
"dark": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
}
}
}
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({
name: 'Acme',
description: '[Acme] is a company that sells [product] with great quality and low prices.',
support: {url: 'https//example.com/support', email: '[email protected]'},
theme: {
shapes: 'ROUNDED',
light: {
overview: {background: '#4043ff', foreground: '#4043ff'},
chat: {background: '#4043ff', foreground: '#4043ff'},
primary: {background: '#4043ff', foreground: '#4043ff'},
input: {background: '#4043ff', foreground: '#4043ff'},
message: {
user: {background: '#4043ff', foreground: '#4043ff'},
bot: {background: '#4043ff', foreground: '#4043ff'}
}
},
dark: {
overview: {background: '#4043ff', foreground: '#4043ff'},
chat: {background: '#4043ff', foreground: '#4043ff'},
primary: {background: '#4043ff', foreground: '#4043ff'},
input: {background: '#4043ff', foreground: '#4043ff'},
message: {
user: {background: '#4043ff', foreground: '#4043ff'},
bot: {background: '#4043ff', foreground: '#4043ff'}
}
}
}
})
};
fetch('https://api.salesnip.com/v1/projects', 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.salesnip.com/v1/projects",
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([
'name' => 'Acme',
'description' => '[Acme] is a company that sells [product] with great quality and low prices.',
'support' => [
'url' => 'https//example.com/support',
'email' => '[email protected]'
],
'theme' => [
'shapes' => 'ROUNDED',
'light' => [
'overview' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'chat' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'primary' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'input' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'message' => [
'user' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'bot' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
]
]
],
'dark' => [
'overview' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'chat' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'primary' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'input' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'message' => [
'user' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'bot' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
]
]
]
]
]),
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.salesnip.com/v1/projects"
payload := strings.NewReader("{\n \"name\": \"Acme\",\n \"description\": \"[Acme] is a company that sells [product] with great quality and low prices.\",\n \"support\": {\n \"url\": \"https//example.com/support\",\n \"email\": \"[email protected]\"\n },\n \"theme\": {\n \"shapes\": \"ROUNDED\",\n \"light\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n },\n \"dark\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n }\n }\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.salesnip.com/v1/projects")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme\",\n \"description\": \"[Acme] is a company that sells [product] with great quality and low prices.\",\n \"support\": {\n \"url\": \"https//example.com/support\",\n \"email\": \"[email protected]\"\n },\n \"theme\": {\n \"shapes\": \"ROUNDED\",\n \"light\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n },\n \"dark\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesnip.com/v1/projects")
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 \"name\": \"Acme\",\n \"description\": \"[Acme] is a company that sells [product] with great quality and low prices.\",\n \"support\": {\n \"url\": \"https//example.com/support\",\n \"email\": \"[email protected]\"\n },\n \"theme\": {\n \"shapes\": \"ROUNDED\",\n \"light\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n },\n \"dark\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "project_abcdefghjijklmnop"
}{
"success": false,
"error": {
"issues": [
{
"code": "<string>",
"expected": "<string>",
"received": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"name": "ZodError"
}
}{
"error": "X-Api-Key header not specified"
}{
"error": "INTERNAL_SERVER_ERROR"
}Projects
Create a new project
POST
/
v1
/
projects
Create a new project
curl --request POST \
--url https://api.salesnip.com/v1/projects \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "Acme",
"description": "[Acme] is a company that sells [product] with great quality and low prices.",
"support": {
"url": "https//example.com/support",
"email": "[email protected]"
},
"theme": {
"shapes": "ROUNDED",
"light": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
},
"dark": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
}
}
}
'import requests
url = "https://api.salesnip.com/v1/projects"
payload = {
"name": "Acme",
"description": "[Acme] is a company that sells [product] with great quality and low prices.",
"support": {
"url": "https//example.com/support",
"email": "[email protected]"
},
"theme": {
"shapes": "ROUNDED",
"light": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
},
"dark": {
"overview": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"chat": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"primary": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"input": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"message": {
"user": {
"background": "#4043ff",
"foreground": "#4043ff"
},
"bot": {
"background": "#4043ff",
"foreground": "#4043ff"
}
}
}
}
}
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({
name: 'Acme',
description: '[Acme] is a company that sells [product] with great quality and low prices.',
support: {url: 'https//example.com/support', email: '[email protected]'},
theme: {
shapes: 'ROUNDED',
light: {
overview: {background: '#4043ff', foreground: '#4043ff'},
chat: {background: '#4043ff', foreground: '#4043ff'},
primary: {background: '#4043ff', foreground: '#4043ff'},
input: {background: '#4043ff', foreground: '#4043ff'},
message: {
user: {background: '#4043ff', foreground: '#4043ff'},
bot: {background: '#4043ff', foreground: '#4043ff'}
}
},
dark: {
overview: {background: '#4043ff', foreground: '#4043ff'},
chat: {background: '#4043ff', foreground: '#4043ff'},
primary: {background: '#4043ff', foreground: '#4043ff'},
input: {background: '#4043ff', foreground: '#4043ff'},
message: {
user: {background: '#4043ff', foreground: '#4043ff'},
bot: {background: '#4043ff', foreground: '#4043ff'}
}
}
}
})
};
fetch('https://api.salesnip.com/v1/projects', 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.salesnip.com/v1/projects",
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([
'name' => 'Acme',
'description' => '[Acme] is a company that sells [product] with great quality and low prices.',
'support' => [
'url' => 'https//example.com/support',
'email' => '[email protected]'
],
'theme' => [
'shapes' => 'ROUNDED',
'light' => [
'overview' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'chat' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'primary' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'input' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'message' => [
'user' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'bot' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
]
]
],
'dark' => [
'overview' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'chat' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'primary' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'input' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'message' => [
'user' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
],
'bot' => [
'background' => '#4043ff',
'foreground' => '#4043ff'
]
]
]
]
]),
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.salesnip.com/v1/projects"
payload := strings.NewReader("{\n \"name\": \"Acme\",\n \"description\": \"[Acme] is a company that sells [product] with great quality and low prices.\",\n \"support\": {\n \"url\": \"https//example.com/support\",\n \"email\": \"[email protected]\"\n },\n \"theme\": {\n \"shapes\": \"ROUNDED\",\n \"light\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n },\n \"dark\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n }\n }\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.salesnip.com/v1/projects")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme\",\n \"description\": \"[Acme] is a company that sells [product] with great quality and low prices.\",\n \"support\": {\n \"url\": \"https//example.com/support\",\n \"email\": \"[email protected]\"\n },\n \"theme\": {\n \"shapes\": \"ROUNDED\",\n \"light\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n },\n \"dark\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesnip.com/v1/projects")
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 \"name\": \"Acme\",\n \"description\": \"[Acme] is a company that sells [product] with great quality and low prices.\",\n \"support\": {\n \"url\": \"https//example.com/support\",\n \"email\": \"[email protected]\"\n },\n \"theme\": {\n \"shapes\": \"ROUNDED\",\n \"light\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n },\n \"dark\": {\n \"overview\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"chat\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"primary\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"input\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"message\": {\n \"user\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n },\n \"bot\": {\n \"background\": \"#4043ff\",\n \"foreground\": \"#4043ff\"\n }\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "project_abcdefghjijklmnop"
}{
"success": false,
"error": {
"issues": [
{
"code": "<string>",
"expected": "<string>",
"received": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"name": "ZodError"
}
}{
"error": "X-Api-Key header not specified"
}{
"error": "INTERNAL_SERVER_ERROR"
}Authorizations
Body
application/json
The name of the project.
Required string length:
3 - 25Example:
"Acme"
A short description of the project that helps the AI to understand the project.
Maximum string length:
1000Example:
"[Acme] is a company that sells [product] with great quality and low prices."
Show child attributes
Show child attributes
The theme of the SaleSnip widget. This can be used to customize the colors of the widget to match your branding.
Show child attributes
Show child attributes
Response
Created
The unique ID of the project.
Minimum string length:
1Example:
"project_abcdefghjijklmnop"
⌘I