Agents
Create an agent
Counts toward the workspace’s agent limit, refused with 403 once reached. A websiteUrl is added as a knowledge source; pendingSteps lists ADD_SOURCE when that failed, so add it with the sources endpoints. Needs a Full access key.
POST
/
api
/
v2
/
agents
Create an agent
curl --request POST \
--url https://app.cntillion.com/api/v2/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"role": "customer-support",
"websiteUrl": "<string>",
"setup": {
"kind": "blank",
"chatOnly": true
},
"instructions": "<string>",
"model": "google/gemini-3.5-flash-lite",
"temperature": 0.3
}
'import requests
url = "https://app.cntillion.com/api/v2/agents"
payload = {
"name": "<string>",
"role": "customer-support",
"websiteUrl": "<string>",
"setup": {
"kind": "blank",
"chatOnly": True
},
"instructions": "<string>",
"model": "google/gemini-3.5-flash-lite",
"temperature": 0.3
}
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({
name: '<string>',
role: 'customer-support',
websiteUrl: '<string>',
setup: {kind: 'blank', chatOnly: true},
instructions: '<string>',
model: 'google/gemini-3.5-flash-lite',
temperature: 0.3
})
};
fetch('https://app.cntillion.com/api/v2/agents', 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.cntillion.com/api/v2/agents",
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' => '<string>',
'role' => 'customer-support',
'websiteUrl' => '<string>',
'setup' => [
'kind' => 'blank',
'chatOnly' => true
],
'instructions' => '<string>',
'model' => 'google/gemini-3.5-flash-lite',
'temperature' => 0.3
]),
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.cntillion.com/api/v2/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"role\": \"customer-support\",\n \"websiteUrl\": \"<string>\",\n \"setup\": {\n \"kind\": \"blank\",\n \"chatOnly\": true\n },\n \"instructions\": \"<string>\",\n \"model\": \"google/gemini-3.5-flash-lite\",\n \"temperature\": 0.3\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.cntillion.com/api/v2/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"role\": \"customer-support\",\n \"websiteUrl\": \"<string>\",\n \"setup\": {\n \"kind\": \"blank\",\n \"chatOnly\": true\n },\n \"instructions\": \"<string>\",\n \"model\": \"google/gemini-3.5-flash-lite\",\n \"temperature\": 0.3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/agents")
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 \"name\": \"<string>\",\n \"role\": \"customer-support\",\n \"websiteUrl\": \"<string>\",\n \"setup\": {\n \"kind\": \"blank\",\n \"chatOnly\": true\n },\n \"instructions\": \"<string>\",\n \"model\": \"google/gemini-3.5-flash-lite\",\n \"temperature\": 0.3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"pendingSteps": [
"ADD_SOURCE"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
workspaceApiKeyworkspaceApiKeyHeader
Body
application/json
⌘I
Create an agent
curl --request POST \
--url https://app.cntillion.com/api/v2/agents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"role": "customer-support",
"websiteUrl": "<string>",
"setup": {
"kind": "blank",
"chatOnly": true
},
"instructions": "<string>",
"model": "google/gemini-3.5-flash-lite",
"temperature": 0.3
}
'import requests
url = "https://app.cntillion.com/api/v2/agents"
payload = {
"name": "<string>",
"role": "customer-support",
"websiteUrl": "<string>",
"setup": {
"kind": "blank",
"chatOnly": True
},
"instructions": "<string>",
"model": "google/gemini-3.5-flash-lite",
"temperature": 0.3
}
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({
name: '<string>',
role: 'customer-support',
websiteUrl: '<string>',
setup: {kind: 'blank', chatOnly: true},
instructions: '<string>',
model: 'google/gemini-3.5-flash-lite',
temperature: 0.3
})
};
fetch('https://app.cntillion.com/api/v2/agents', 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.cntillion.com/api/v2/agents",
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' => '<string>',
'role' => 'customer-support',
'websiteUrl' => '<string>',
'setup' => [
'kind' => 'blank',
'chatOnly' => true
],
'instructions' => '<string>',
'model' => 'google/gemini-3.5-flash-lite',
'temperature' => 0.3
]),
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.cntillion.com/api/v2/agents"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"role\": \"customer-support\",\n \"websiteUrl\": \"<string>\",\n \"setup\": {\n \"kind\": \"blank\",\n \"chatOnly\": true\n },\n \"instructions\": \"<string>\",\n \"model\": \"google/gemini-3.5-flash-lite\",\n \"temperature\": 0.3\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.cntillion.com/api/v2/agents")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"role\": \"customer-support\",\n \"websiteUrl\": \"<string>\",\n \"setup\": {\n \"kind\": \"blank\",\n \"chatOnly\": true\n },\n \"instructions\": \"<string>\",\n \"model\": \"google/gemini-3.5-flash-lite\",\n \"temperature\": 0.3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/agents")
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 \"name\": \"<string>\",\n \"role\": \"customer-support\",\n \"websiteUrl\": \"<string>\",\n \"setup\": {\n \"kind\": \"blank\",\n \"chatOnly\": true\n },\n \"instructions\": \"<string>\",\n \"model\": \"google/gemini-3.5-flash-lite\",\n \"temperature\": 0.3\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"pendingSteps": [
"ADD_SOURCE"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}