curl --request PUT \
--url https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_base64": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar"
payload = { "image_base64": "<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({image_base64: '<string>'})
};
fetch('https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar', 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.statisfy.com/v1/digital_workers/{worker_id}/avatar",
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([
'image_base64' => '<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.statisfy.com/v1/digital_workers/{worker_id}/avatar"
payload := strings.NewReader("{\n \"image_base64\": \"<string>\"\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://api.statisfy.com/v1/digital_workers/{worker_id}/avatar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image_base64\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar")
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 \"image_base64\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accounts": {
"segment": {}
},
"assignment": {
"owner_field": "<string>",
"people": [
"<string>"
],
"strategy": "smart",
"to": "account_owner",
"when_teammate_answers": "keep_owner"
},
"autonomy": {
"channels": {},
"default": "auto"
},
"avatar_url": "<string>",
"built_in": true,
"channels": {
"email": {
"acknowledge": true,
"acknowledgement": "<string>",
"addresses": [
"<string>"
],
"company_address": "<string>",
"enabled": true,
"forwarding": true,
"shared_mailboxes": [
"<string>"
],
"take_in_unknown_senders": true,
"watch_mailboxes": true
},
"in_app_sdk": {
"acknowledgement": "<string>",
"enabled": true
},
"portal": {
"acknowledgement": "<string>",
"enabled": true
},
"slack": {
"acknowledge": true,
"acknowledgement": "<string>",
"enabled": true,
"grouping": "thread"
},
"teams": {
"acknowledge": true,
"acknowledgement": "<string>",
"enabled": true
},
"ticket": {
"create_tickets": {},
"enabled": true,
"group_ids": [
"<string>"
],
"system": "<string>",
"tags": [
"<string>"
]
}
},
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"kind": "customer_success",
"knowledge_bases": [
{
"id": "<string>",
"name": "<string>"
}
],
"name": "<string>",
"outreach": {
"audiences": [
{
"guidance": "<string>",
"key": "<string>",
"name": "<string>",
"segment": {},
"treatment": "sparing"
}
],
"exclude_emails": [
"<string>"
],
"max_cc": 123,
"quota": {
"per_customer_per_month": 123,
"per_customer_per_week": 123,
"per_person_per_week": 123,
"sends_per_day": 123,
"sends_per_hour": 123,
"sends_per_minute": 123
},
"sender_email": "<string>"
},
"outreach_enabled": true,
"persona": {
"ai_disclosure": "transparent",
"greeting": "<string>",
"guardrails": "<string>",
"voice": "<string>"
},
"skills": [
{
"enabled": true,
"key": "<string>",
"name": "<string>"
}
],
"status": "draft",
"third_party_tools": {
"api_tools": [
{
"guidance": "<string>",
"tools": [
"<string>"
],
"vendor": "<string>"
}
],
"mcp_servers": [
{
"guidance": "<string>",
"server": "<string>",
"tools": [
"<string>"
]
}
]
},
"tools": [
{
"excluded": [
"<string>"
],
"tool_settings": {},
"toolkit": "<string>",
"tools": "all"
}
],
"updated_at": "<string>"
}Upload a worker's avatar
Stores an image (image_base64: a PNG, JPEG, GIF or WebP of at most 1 MB) on Statisfy’s CDN as the worker’s avatar, and returns the worker with its new avatar_url. The image is cut to 512 x 512 at most and saved as a PNG, with no metadata. Another file type, a broken image, or one over 4096 x 4096 pixels in area is a 422. A 503 means the image could not be stored: retry.
curl --request PUT \
--url https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image_base64": "<string>"
}
'import requests
url = "https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar"
payload = { "image_base64": "<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({image_base64: '<string>'})
};
fetch('https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar', 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.statisfy.com/v1/digital_workers/{worker_id}/avatar",
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([
'image_base64' => '<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.statisfy.com/v1/digital_workers/{worker_id}/avatar"
payload := strings.NewReader("{\n \"image_base64\": \"<string>\"\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://api.statisfy.com/v1/digital_workers/{worker_id}/avatar")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"image_base64\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/digital_workers/{worker_id}/avatar")
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 \"image_base64\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accounts": {
"segment": {}
},
"assignment": {
"owner_field": "<string>",
"people": [
"<string>"
],
"strategy": "smart",
"to": "account_owner",
"when_teammate_answers": "keep_owner"
},
"autonomy": {
"channels": {},
"default": "auto"
},
"avatar_url": "<string>",
"built_in": true,
"channels": {
"email": {
"acknowledge": true,
"acknowledgement": "<string>",
"addresses": [
"<string>"
],
"company_address": "<string>",
"enabled": true,
"forwarding": true,
"shared_mailboxes": [
"<string>"
],
"take_in_unknown_senders": true,
"watch_mailboxes": true
},
"in_app_sdk": {
"acknowledgement": "<string>",
"enabled": true
},
"portal": {
"acknowledgement": "<string>",
"enabled": true
},
"slack": {
"acknowledge": true,
"acknowledgement": "<string>",
"enabled": true,
"grouping": "thread"
},
"teams": {
"acknowledge": true,
"acknowledgement": "<string>",
"enabled": true
},
"ticket": {
"create_tickets": {},
"enabled": true,
"group_ids": [
"<string>"
],
"system": "<string>",
"tags": [
"<string>"
]
}
},
"created_at": "<string>",
"description": "<string>",
"id": "<string>",
"kind": "customer_success",
"knowledge_bases": [
{
"id": "<string>",
"name": "<string>"
}
],
"name": "<string>",
"outreach": {
"audiences": [
{
"guidance": "<string>",
"key": "<string>",
"name": "<string>",
"segment": {},
"treatment": "sparing"
}
],
"exclude_emails": [
"<string>"
],
"max_cc": 123,
"quota": {
"per_customer_per_month": 123,
"per_customer_per_week": 123,
"per_person_per_week": 123,
"sends_per_day": 123,
"sends_per_hour": 123,
"sends_per_minute": 123
},
"sender_email": "<string>"
},
"outreach_enabled": true,
"persona": {
"ai_disclosure": "transparent",
"greeting": "<string>",
"guardrails": "<string>",
"voice": "<string>"
},
"skills": [
{
"enabled": true,
"key": "<string>",
"name": "<string>"
}
],
"status": "draft",
"third_party_tools": {
"api_tools": [
{
"guidance": "<string>",
"tools": [
"<string>"
],
"vendor": "<string>"
}
],
"mcp_servers": [
{
"guidance": "<string>",
"server": "<string>",
"tools": [
"<string>"
]
}
]
},
"tools": [
{
"excluded": [
"<string>"
],
"tool_settings": {},
"toolkit": "<string>",
"tools": "all"
}
],
"updated_at": "<string>"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
Response
Successful Response
Whether it does its proactive tasks (GET /v1/digital_workers/{worker_id}/tasks): they run while this is on and the worker isn't archived, a draft worker's too, and email customers within outreach. Turning it on, or changing outreach while it is on, needs digital_workers:activate and AI CSM
Was this page helpful?