Update Conversation customData
curl --request PATCH \
--url https://api.kakiyo.com/v1/prospects/{chatId}/custom-data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customData": "John replied positively to the AI outbound post; reference that follow-up."
}
'import requests
url = "https://api.kakiyo.com/v1/prospects/{chatId}/custom-data"
payload = { "customData": "John replied positively to the AI outbound post; reference that follow-up." }
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({
customData: 'John replied positively to the AI outbound post; reference that follow-up.'
})
};
fetch('https://api.kakiyo.com/v1/prospects/{chatId}/custom-data', 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.kakiyo.com/v1/prospects/{chatId}/custom-data",
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([
'customData' => 'John replied positively to the AI outbound post; reference that follow-up.'
]),
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.kakiyo.com/v1/prospects/{chatId}/custom-data"
payload := strings.NewReader("{\n \"customData\": \"John replied positively to the AI outbound post; reference that follow-up.\"\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.kakiyo.com/v1/prospects/{chatId}/custom-data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customData\": \"John replied positively to the AI outbound post; reference that follow-up.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kakiyo.com/v1/prospects/{chatId}/custom-data")
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 \"customData\": \"John replied positively to the AI outbound post; reference that follow-up.\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Conversation customData updated successfully",
"chatId": "chat_12345abcde",
"customDataSaved": true,
"customDataLength": 64
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}Prospects
Update Conversation customData
Updates the per-conversation customData used in prompts as . Pass an empty string to clear it.
PATCH
/
prospects
/
{chatId}
/
custom-data
Update Conversation customData
curl --request PATCH \
--url https://api.kakiyo.com/v1/prospects/{chatId}/custom-data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customData": "John replied positively to the AI outbound post; reference that follow-up."
}
'import requests
url = "https://api.kakiyo.com/v1/prospects/{chatId}/custom-data"
payload = { "customData": "John replied positively to the AI outbound post; reference that follow-up." }
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({
customData: 'John replied positively to the AI outbound post; reference that follow-up.'
})
};
fetch('https://api.kakiyo.com/v1/prospects/{chatId}/custom-data', 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.kakiyo.com/v1/prospects/{chatId}/custom-data",
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([
'customData' => 'John replied positively to the AI outbound post; reference that follow-up.'
]),
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.kakiyo.com/v1/prospects/{chatId}/custom-data"
payload := strings.NewReader("{\n \"customData\": \"John replied positively to the AI outbound post; reference that follow-up.\"\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.kakiyo.com/v1/prospects/{chatId}/custom-data")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"customData\": \"John replied positively to the AI outbound post; reference that follow-up.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kakiyo.com/v1/prospects/{chatId}/custom-data")
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 \"customData\": \"John replied positively to the AI outbound post; reference that follow-up.\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Conversation customData updated successfully",
"chatId": "chat_12345abcde",
"customDataSaved": true,
"customDataLength": 64
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}{
"error": "validation_error",
"message": "The request parameters failed validation",
"details": [
{
"field": "name",
"message": "The name field is required"
}
]
}Overview
Update the per-conversationcustomData for an existing chat. customData is the prompt context exposed as {{customData}}, set when the conversation is created via the prospect import endpoints.
Use this when the context that personalizes a conversation changes after import (for example, the lead performed a new action), so the AI prompt always uses the latest context.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
chatId | string | Yes | ID of the chat/conversation to update |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
customData | string | Yes | New prompt context, max 3000 characters. Pass an empty string ("") to clear it |
Example
curl -X PATCH "https://api.kakiyo.com/v1/prospects/chat_12345abcde/custom-data" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customData": "John replied positively to the AI outbound post; reference that follow-up."
}'
const response = await fetch('https://api.kakiyo.com/v1/prospects/chat_12345abcde/custom-data', {
method: 'PATCH',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
customData: 'John replied positively to the AI outbound post; reference that follow-up.',
}),
});
const result = await response.json();
console.log(result.customDataSaved, result.customDataLength);
Response
{
"message": "Conversation customData updated successfully",
"chatId": "chat_12345abcde",
"customDataSaved": true,
"customDataLength": 64
}
Notes
- The chat must belong to a campaign owned by your team, otherwise the request returns
403. customDatais truncated to 3000 characters.- An empty string clears the stored context (
customDataSavedwill befalse). - The new value applies to subsequent AI message generations for the conversation.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the chat/conversation
Body
application/json
Per-conversation prompt context. Empty string clears it.
Maximum string length:
3000Example:
"John replied positively to the AI outbound post; reference that follow-up."
Last modified on June 25, 2026

