Prepare custom avatar upload
curl --request POST \
--url https://app.famulor.io/api/v1/avatars/uploads \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"size_bytes": 2250000
}
'import requests
url = "https://app.famulor.io/api/v1/avatars/uploads"
payload = {
"name": "<string>",
"size_bytes": 2250000
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', size_bytes: 2250000})
};
fetch('https://app.famulor.io/api/v1/avatars/uploads', 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.famulor.io/api/v1/avatars/uploads",
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>',
'size_bytes' => 2250000
]),
CURLOPT_HTTPHEADER => [
"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.famulor.io/api/v1/avatars/uploads"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"size_bytes\": 2250000\n}")
req, _ := http.NewRequest("POST", url, payload)
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.famulor.io/api/v1/avatars/uploads")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"size_bytes\": 2250000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/avatars/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"size_bytes\": 2250000\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"upload_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}KI-Assistants
Eigene KI-Avatare — uploads
Prepare a private image upload with name and style. Upload to upload_url with PUT multipart/form-data, an unnamed image file field, cacheControl=0 and x-upsert: false. Then call submitAvatar. A user-bound credential is required. Uploaded appearance is preserved; style labels do not transform the photo. Required scope: assistants:write.
POST
/
avatars
/
uploads
Prepare custom avatar upload
curl --request POST \
--url https://app.famulor.io/api/v1/avatars/uploads \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"size_bytes": 2250000
}
'import requests
url = "https://app.famulor.io/api/v1/avatars/uploads"
payload = {
"name": "<string>",
"size_bytes": 2250000
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', size_bytes: 2250000})
};
fetch('https://app.famulor.io/api/v1/avatars/uploads', 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.famulor.io/api/v1/avatars/uploads",
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>',
'size_bytes' => 2250000
]),
CURLOPT_HTTPHEADER => [
"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.famulor.io/api/v1/avatars/uploads"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"size_bytes\": 2250000\n}")
req, _ := http.NewRequest("POST", url, payload)
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.famulor.io/api/v1/avatars/uploads")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"size_bytes\": 2250000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/avatars/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"size_bytes\": 2250000\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"upload_url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}MCP:
create_avatar_upload · CLI: famulor create-avatar-uploadBody
application/json
Avatar display name.
Required string length:
3 - 50Visual category of the source image. This does not transform the uploaded photo.
Verfügbare Optionen:
realistic, animated_3d, custom Source image MIME type.
Verfügbare Optionen:
image/jpeg, image/png, image/webp Exact source image size in bytes.
Erforderlicher Bereich:
1 <= x <= 4500000Antwort
Successful response.
Show child attributes
Show child attributes