curl --request PUT \
--url https://app.puffle.ai/api/context \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"context": {
"user": {
"professionalBackground": "<string>"
},
"company": {
"overview": "<string>",
"product": "<string>",
"problemSolved": "<string>",
"differentiators": "<string>",
"linkedInPresence": "<string>"
},
"content": {
"linkedInVoice": "<string>",
"recommendedTopics": [
"<string>"
],
"preferredTone": "<string>",
"contentFormats": [
"<string>"
],
"topicsToAvoid": [
"<string>"
],
"postingCadence": "<string>"
},
"market": {
"targetAudience": "<string>",
"industryContext": "<string>",
"icpJobTitles": [
"<string>"
],
"icpIndustries": [
"<string>"
],
"icpCompanySizes": [
"<string>"
],
"icpPainPoints": [
"<string>"
],
"icpKeywords": [
"<string>"
]
},
"extra": {}
},
"profile": {
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"website": "<string>"
}
}
'import requests
url = "https://app.puffle.ai/api/context"
payload = {
"context": {
"user": { "professionalBackground": "<string>" },
"company": {
"overview": "<string>",
"product": "<string>",
"problemSolved": "<string>",
"differentiators": "<string>",
"linkedInPresence": "<string>"
},
"content": {
"linkedInVoice": "<string>",
"recommendedTopics": ["<string>"],
"preferredTone": "<string>",
"contentFormats": ["<string>"],
"topicsToAvoid": ["<string>"],
"postingCadence": "<string>"
},
"market": {
"targetAudience": "<string>",
"industryContext": "<string>",
"icpJobTitles": ["<string>"],
"icpIndustries": ["<string>"],
"icpCompanySizes": ["<string>"],
"icpPainPoints": ["<string>"],
"icpKeywords": ["<string>"]
},
"extra": {}
},
"profile": {
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"website": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
context: {
user: {professionalBackground: '<string>'},
company: {
overview: '<string>',
product: '<string>',
problemSolved: '<string>',
differentiators: '<string>',
linkedInPresence: '<string>'
},
content: {
linkedInVoice: '<string>',
recommendedTopics: ['<string>'],
preferredTone: '<string>',
contentFormats: ['<string>'],
topicsToAvoid: ['<string>'],
postingCadence: '<string>'
},
market: {
targetAudience: '<string>',
industryContext: '<string>',
icpJobTitles: ['<string>'],
icpIndustries: ['<string>'],
icpCompanySizes: ['<string>'],
icpPainPoints: ['<string>'],
icpKeywords: ['<string>']
},
extra: {}
},
profile: {
firstName: '<string>',
lastName: '<string>',
companyName: '<string>',
website: '<string>'
}
})
};
fetch('https://app.puffle.ai/api/context', 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.puffle.ai/api/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'context' => [
'user' => [
'professionalBackground' => '<string>'
],
'company' => [
'overview' => '<string>',
'product' => '<string>',
'problemSolved' => '<string>',
'differentiators' => '<string>',
'linkedInPresence' => '<string>'
],
'content' => [
'linkedInVoice' => '<string>',
'recommendedTopics' => [
'<string>'
],
'preferredTone' => '<string>',
'contentFormats' => [
'<string>'
],
'topicsToAvoid' => [
'<string>'
],
'postingCadence' => '<string>'
],
'market' => [
'targetAudience' => '<string>',
'industryContext' => '<string>',
'icpJobTitles' => [
'<string>'
],
'icpIndustries' => [
'<string>'
],
'icpCompanySizes' => [
'<string>'
],
'icpPainPoints' => [
'<string>'
],
'icpKeywords' => [
'<string>'
]
],
'extra' => [
]
],
'profile' => [
'firstName' => '<string>',
'lastName' => '<string>',
'companyName' => '<string>',
'website' => '<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.puffle.ai/api/context"
payload := strings.NewReader("{\n \"context\": {\n \"user\": {\n \"professionalBackground\": \"<string>\"\n },\n \"company\": {\n \"overview\": \"<string>\",\n \"product\": \"<string>\",\n \"problemSolved\": \"<string>\",\n \"differentiators\": \"<string>\",\n \"linkedInPresence\": \"<string>\"\n },\n \"content\": {\n \"linkedInVoice\": \"<string>\",\n \"recommendedTopics\": [\n \"<string>\"\n ],\n \"preferredTone\": \"<string>\",\n \"contentFormats\": [\n \"<string>\"\n ],\n \"topicsToAvoid\": [\n \"<string>\"\n ],\n \"postingCadence\": \"<string>\"\n },\n \"market\": {\n \"targetAudience\": \"<string>\",\n \"industryContext\": \"<string>\",\n \"icpJobTitles\": [\n \"<string>\"\n ],\n \"icpIndustries\": [\n \"<string>\"\n ],\n \"icpCompanySizes\": [\n \"<string>\"\n ],\n \"icpPainPoints\": [\n \"<string>\"\n ],\n \"icpKeywords\": [\n \"<string>\"\n ]\n },\n \"extra\": {}\n },\n \"profile\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"companyName\": \"<string>\",\n \"website\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://app.puffle.ai/api/context")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"context\": {\n \"user\": {\n \"professionalBackground\": \"<string>\"\n },\n \"company\": {\n \"overview\": \"<string>\",\n \"product\": \"<string>\",\n \"problemSolved\": \"<string>\",\n \"differentiators\": \"<string>\",\n \"linkedInPresence\": \"<string>\"\n },\n \"content\": {\n \"linkedInVoice\": \"<string>\",\n \"recommendedTopics\": [\n \"<string>\"\n ],\n \"preferredTone\": \"<string>\",\n \"contentFormats\": [\n \"<string>\"\n ],\n \"topicsToAvoid\": [\n \"<string>\"\n ],\n \"postingCadence\": \"<string>\"\n },\n \"market\": {\n \"targetAudience\": \"<string>\",\n \"industryContext\": \"<string>\",\n \"icpJobTitles\": [\n \"<string>\"\n ],\n \"icpIndustries\": [\n \"<string>\"\n ],\n \"icpCompanySizes\": [\n \"<string>\"\n ],\n \"icpPainPoints\": [\n \"<string>\"\n ],\n \"icpKeywords\": [\n \"<string>\"\n ]\n },\n \"extra\": {}\n },\n \"profile\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"companyName\": \"<string>\",\n \"website\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.puffle.ai/api/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"context\": {\n \"user\": {\n \"professionalBackground\": \"<string>\"\n },\n \"company\": {\n \"overview\": \"<string>\",\n \"product\": \"<string>\",\n \"problemSolved\": \"<string>\",\n \"differentiators\": \"<string>\",\n \"linkedInPresence\": \"<string>\"\n },\n \"content\": {\n \"linkedInVoice\": \"<string>\",\n \"recommendedTopics\": [\n \"<string>\"\n ],\n \"preferredTone\": \"<string>\",\n \"contentFormats\": [\n \"<string>\"\n ],\n \"topicsToAvoid\": [\n \"<string>\"\n ],\n \"postingCadence\": \"<string>\"\n },\n \"market\": {\n \"targetAudience\": \"<string>\",\n \"industryContext\": \"<string>\",\n \"icpJobTitles\": [\n \"<string>\"\n ],\n \"icpIndustries\": [\n \"<string>\"\n ],\n \"icpCompanySizes\": [\n \"<string>\"\n ],\n \"icpPainPoints\": [\n \"<string>\"\n ],\n \"icpKeywords\": [\n \"<string>\"\n ]\n },\n \"extra\": {}\n },\n \"profile\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"companyName\": \"<string>\",\n \"website\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"context": {
"user": {
"professionalBackground": "<string>"
},
"company": {
"overview": "<string>",
"product": "<string>",
"problemSolved": "<string>",
"differentiators": "<string>",
"linkedInPresence": "<string>"
},
"content": {
"linkedInVoice": "<string>",
"recommendedTopics": [
"<string>"
],
"preferredTone": "<string>",
"contentFormats": [
"<string>"
],
"topicsToAvoid": [
"<string>"
],
"postingCadence": "<string>"
},
"market": {
"targetAudience": "<string>",
"industryContext": "<string>",
"icpJobTitles": [
"<string>"
],
"icpIndustries": [
"<string>"
],
"icpCompanySizes": [
"<string>"
],
"icpPainPoints": [
"<string>"
],
"icpKeywords": [
"<string>"
]
},
"extra": {}
}
}Update Company Profile
Update company profile
curl --request PUT \
--url https://app.puffle.ai/api/context \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"context": {
"user": {
"professionalBackground": "<string>"
},
"company": {
"overview": "<string>",
"product": "<string>",
"problemSolved": "<string>",
"differentiators": "<string>",
"linkedInPresence": "<string>"
},
"content": {
"linkedInVoice": "<string>",
"recommendedTopics": [
"<string>"
],
"preferredTone": "<string>",
"contentFormats": [
"<string>"
],
"topicsToAvoid": [
"<string>"
],
"postingCadence": "<string>"
},
"market": {
"targetAudience": "<string>",
"industryContext": "<string>",
"icpJobTitles": [
"<string>"
],
"icpIndustries": [
"<string>"
],
"icpCompanySizes": [
"<string>"
],
"icpPainPoints": [
"<string>"
],
"icpKeywords": [
"<string>"
]
},
"extra": {}
},
"profile": {
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"website": "<string>"
}
}
'import requests
url = "https://app.puffle.ai/api/context"
payload = {
"context": {
"user": { "professionalBackground": "<string>" },
"company": {
"overview": "<string>",
"product": "<string>",
"problemSolved": "<string>",
"differentiators": "<string>",
"linkedInPresence": "<string>"
},
"content": {
"linkedInVoice": "<string>",
"recommendedTopics": ["<string>"],
"preferredTone": "<string>",
"contentFormats": ["<string>"],
"topicsToAvoid": ["<string>"],
"postingCadence": "<string>"
},
"market": {
"targetAudience": "<string>",
"industryContext": "<string>",
"icpJobTitles": ["<string>"],
"icpIndustries": ["<string>"],
"icpCompanySizes": ["<string>"],
"icpPainPoints": ["<string>"],
"icpKeywords": ["<string>"]
},
"extra": {}
},
"profile": {
"firstName": "<string>",
"lastName": "<string>",
"companyName": "<string>",
"website": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
context: {
user: {professionalBackground: '<string>'},
company: {
overview: '<string>',
product: '<string>',
problemSolved: '<string>',
differentiators: '<string>',
linkedInPresence: '<string>'
},
content: {
linkedInVoice: '<string>',
recommendedTopics: ['<string>'],
preferredTone: '<string>',
contentFormats: ['<string>'],
topicsToAvoid: ['<string>'],
postingCadence: '<string>'
},
market: {
targetAudience: '<string>',
industryContext: '<string>',
icpJobTitles: ['<string>'],
icpIndustries: ['<string>'],
icpCompanySizes: ['<string>'],
icpPainPoints: ['<string>'],
icpKeywords: ['<string>']
},
extra: {}
},
profile: {
firstName: '<string>',
lastName: '<string>',
companyName: '<string>',
website: '<string>'
}
})
};
fetch('https://app.puffle.ai/api/context', 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.puffle.ai/api/context",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'context' => [
'user' => [
'professionalBackground' => '<string>'
],
'company' => [
'overview' => '<string>',
'product' => '<string>',
'problemSolved' => '<string>',
'differentiators' => '<string>',
'linkedInPresence' => '<string>'
],
'content' => [
'linkedInVoice' => '<string>',
'recommendedTopics' => [
'<string>'
],
'preferredTone' => '<string>',
'contentFormats' => [
'<string>'
],
'topicsToAvoid' => [
'<string>'
],
'postingCadence' => '<string>'
],
'market' => [
'targetAudience' => '<string>',
'industryContext' => '<string>',
'icpJobTitles' => [
'<string>'
],
'icpIndustries' => [
'<string>'
],
'icpCompanySizes' => [
'<string>'
],
'icpPainPoints' => [
'<string>'
],
'icpKeywords' => [
'<string>'
]
],
'extra' => [
]
],
'profile' => [
'firstName' => '<string>',
'lastName' => '<string>',
'companyName' => '<string>',
'website' => '<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.puffle.ai/api/context"
payload := strings.NewReader("{\n \"context\": {\n \"user\": {\n \"professionalBackground\": \"<string>\"\n },\n \"company\": {\n \"overview\": \"<string>\",\n \"product\": \"<string>\",\n \"problemSolved\": \"<string>\",\n \"differentiators\": \"<string>\",\n \"linkedInPresence\": \"<string>\"\n },\n \"content\": {\n \"linkedInVoice\": \"<string>\",\n \"recommendedTopics\": [\n \"<string>\"\n ],\n \"preferredTone\": \"<string>\",\n \"contentFormats\": [\n \"<string>\"\n ],\n \"topicsToAvoid\": [\n \"<string>\"\n ],\n \"postingCadence\": \"<string>\"\n },\n \"market\": {\n \"targetAudience\": \"<string>\",\n \"industryContext\": \"<string>\",\n \"icpJobTitles\": [\n \"<string>\"\n ],\n \"icpIndustries\": [\n \"<string>\"\n ],\n \"icpCompanySizes\": [\n \"<string>\"\n ],\n \"icpPainPoints\": [\n \"<string>\"\n ],\n \"icpKeywords\": [\n \"<string>\"\n ]\n },\n \"extra\": {}\n },\n \"profile\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"companyName\": \"<string>\",\n \"website\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", 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.put("https://app.puffle.ai/api/context")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"context\": {\n \"user\": {\n \"professionalBackground\": \"<string>\"\n },\n \"company\": {\n \"overview\": \"<string>\",\n \"product\": \"<string>\",\n \"problemSolved\": \"<string>\",\n \"differentiators\": \"<string>\",\n \"linkedInPresence\": \"<string>\"\n },\n \"content\": {\n \"linkedInVoice\": \"<string>\",\n \"recommendedTopics\": [\n \"<string>\"\n ],\n \"preferredTone\": \"<string>\",\n \"contentFormats\": [\n \"<string>\"\n ],\n \"topicsToAvoid\": [\n \"<string>\"\n ],\n \"postingCadence\": \"<string>\"\n },\n \"market\": {\n \"targetAudience\": \"<string>\",\n \"industryContext\": \"<string>\",\n \"icpJobTitles\": [\n \"<string>\"\n ],\n \"icpIndustries\": [\n \"<string>\"\n ],\n \"icpCompanySizes\": [\n \"<string>\"\n ],\n \"icpPainPoints\": [\n \"<string>\"\n ],\n \"icpKeywords\": [\n \"<string>\"\n ]\n },\n \"extra\": {}\n },\n \"profile\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"companyName\": \"<string>\",\n \"website\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.puffle.ai/api/context")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"context\": {\n \"user\": {\n \"professionalBackground\": \"<string>\"\n },\n \"company\": {\n \"overview\": \"<string>\",\n \"product\": \"<string>\",\n \"problemSolved\": \"<string>\",\n \"differentiators\": \"<string>\",\n \"linkedInPresence\": \"<string>\"\n },\n \"content\": {\n \"linkedInVoice\": \"<string>\",\n \"recommendedTopics\": [\n \"<string>\"\n ],\n \"preferredTone\": \"<string>\",\n \"contentFormats\": [\n \"<string>\"\n ],\n \"topicsToAvoid\": [\n \"<string>\"\n ],\n \"postingCadence\": \"<string>\"\n },\n \"market\": {\n \"targetAudience\": \"<string>\",\n \"industryContext\": \"<string>\",\n \"icpJobTitles\": [\n \"<string>\"\n ],\n \"icpIndustries\": [\n \"<string>\"\n ],\n \"icpCompanySizes\": [\n \"<string>\"\n ],\n \"icpPainPoints\": [\n \"<string>\"\n ],\n \"icpKeywords\": [\n \"<string>\"\n ]\n },\n \"extra\": {}\n },\n \"profile\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"companyName\": \"<string>\",\n \"website\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"context": {
"user": {
"professionalBackground": "<string>"
},
"company": {
"overview": "<string>",
"product": "<string>",
"problemSolved": "<string>",
"differentiators": "<string>",
"linkedInPresence": "<string>"
},
"content": {
"linkedInVoice": "<string>",
"recommendedTopics": [
"<string>"
],
"preferredTone": "<string>",
"contentFormats": [
"<string>"
],
"topicsToAvoid": [
"<string>"
],
"postingCadence": "<string>"
},
"market": {
"targetAudience": "<string>",
"industryContext": "<string>",
"icpJobTitles": [
"<string>"
],
"icpIndustries": [
"<string>"
],
"icpCompanySizes": [
"<string>"
],
"icpPainPoints": [
"<string>"
],
"icpKeywords": [
"<string>"
]
},
"extra": {}
}
}puffle context update --context <context>
puffle context update --context <context> --profile <profile>
Overview
Replaces the workspace’s full company profile: user background, company positioning, content plan, and ICP/market context. The body is validated as a complete profile object; partial updates are rejected. Use this when setup or a human edit changes the profile that downstream workflows should use. The response returns the newly persisted full context.AI agent notes
Fetch Get Company Profile first, apply the user’s requested edits locally, and PUT the complete object back. Preserve every section the user did not ask to change. Do not synthesize ICP, company, or voice details without user-provided source material. If the user only gives a small correction, update that field and keep the rest of the current context intact.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Whole-object replacement for context. There is no field-level PATCH — fetch with GET /api/context, mutate client-side, and PUT the full object back.
Full context object. Validated against FullUserContextSchema; all four sub-objects (user, company, content, market) must be present, extra may be null.
Show child attributes
Show child attributes
Optional identity fields to update alongside the context JSONB columns. Only keys present in the body are applied.
Show child attributes
Show child attributes
Response
Context saved. Returns the newly persisted full context.
Assembled company profile. Each sub-object is stored as a separate JSONB column on user_profiles and merged at read time.
Show child attributes
Show child attributes
Was this page helpful?