Update an Agent's business and communication profile
curl --request PATCH \
--url https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_name": "<string>",
"industry": "<string>",
"business_overview": "<string>",
"role": "<string>",
"custom_tone": "<string>"
}
'import requests
url = "https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile"
payload = {
"business_name": "<string>",
"industry": "<string>",
"business_overview": "<string>",
"role": "<string>",
"custom_tone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
business_name: '<string>',
industry: '<string>',
business_overview: '<string>',
role: '<string>',
custom_tone: '<string>'
})
};
fetch('https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile', 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.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'business_name' => '<string>',
'industry' => '<string>',
'business_overview' => '<string>',
'role' => '<string>',
'custom_tone' => '<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://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile"
payload := strings.NewReader("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"business_overview\": \"<string>\",\n \"role\": \"<string>\",\n \"custom_tone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"business_overview\": \"<string>\",\n \"role\": \"<string>\",\n \"custom_tone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"business_overview\": \"<string>\",\n \"role\": \"<string>\",\n \"custom_tone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": "<unknown>",
"meta": {
"request_id": "<string>",
"next_cursor": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}Update an Agent's business and communication profile
PATCH
/
workspaces
/
{workspace}
/
agents
/
{agent}
/
profile
Update an Agent's business and communication profile
curl --request PATCH \
--url https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_name": "<string>",
"industry": "<string>",
"business_overview": "<string>",
"role": "<string>",
"custom_tone": "<string>"
}
'import requests
url = "https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile"
payload = {
"business_name": "<string>",
"industry": "<string>",
"business_overview": "<string>",
"role": "<string>",
"custom_tone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
business_name: '<string>',
industry: '<string>',
business_overview: '<string>',
role: '<string>',
custom_tone: '<string>'
})
};
fetch('https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile', 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.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'business_name' => '<string>',
'industry' => '<string>',
'business_overview' => '<string>',
'role' => '<string>',
'custom_tone' => '<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://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile"
payload := strings.NewReader("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"business_overview\": \"<string>\",\n \"role\": \"<string>\",\n \"custom_tone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"business_overview\": \"<string>\",\n \"role\": \"<string>\",\n \"custom_tone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contactbutton.com/v1/workspaces/{workspace}/agents/{agent}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_name\": \"<string>\",\n \"industry\": \"<string>\",\n \"business_overview\": \"<string>\",\n \"role\": \"<string>\",\n \"custom_tone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": "<unknown>",
"meta": {
"request_id": "<string>",
"next_cursor": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"resolution": "<string>",
"instance": "<string>",
"request_id": "<string>",
"errors": {}
}Authorizations
A Contact Button scoped bearer key. Send Authorization: Bearer <token>.
Token abilities are enforced independently of workspace membership; both checks must pass.
Interactive MCP clients use registered OAuth applications, Authorization Code + PKCE,
audience-bound tokens, and explicit workspace grants. Personal Sanctum tokens remain supported.
Headers
Stable 8–120 character key for safe mutation retries.
Required string length:
8 - 120Body
application/json
Maximum string length:
120Maximum string length:
120Stable business context. Put changing facts such as prices, policies, and products in Knowledge.
Maximum string length:
2000Maximum string length:
160Available options:
default, friendly, professional, casual, direct, custom Maximum string length:
500Available options:
default, short, medium, detailed Was this page helpful?