Profile
Update user profile
Update current user profile information
PUT
/
api
/
v1
/
profile
Update user profile
curl --request PUT \
--url https://api.evoai.app/api/v1/profile \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "John Doe",
"email": "[email protected]",
"display_name": "John",
"message_signature": "Best regards, John",
"custom_attributes": {},
"ui_settings": {},
"avatar": "<string>"
}
'import requests
url = "https://api.evoai.app/api/v1/profile"
payload = {
"name": "John Doe",
"email": "[email protected]",
"display_name": "John",
"message_signature": "Best regards, John",
"custom_attributes": {},
"ui_settings": {},
"avatar": "<string>"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'John Doe',
email: '[email protected]',
display_name: 'John',
message_signature: 'Best regards, John',
custom_attributes: {},
ui_settings: {},
avatar: '<string>'
})
};
fetch('https://api.evoai.app/api/v1/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.evoai.app/api/v1/profile",
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([
'name' => 'John Doe',
'email' => '[email protected]',
'display_name' => 'John',
'message_signature' => 'Best regards, John',
'custom_attributes' => [
],
'ui_settings' => [
],
'avatar' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-key>"
],
]);
$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.evoai.app/api/v1/profile"
payload := strings.NewReader("{\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\",\n \"display_name\": \"John\",\n \"message_signature\": \"Best regards, John\",\n \"custom_attributes\": {},\n \"ui_settings\": {},\n \"avatar\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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.evoai.app/api/v1/profile")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\",\n \"display_name\": \"John\",\n \"message_signature\": \"Best regards, John\",\n \"custom_attributes\": {},\n \"ui_settings\": {},\n \"avatar\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["api_access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\",\n \"display_name\": \"John\",\n \"message_signature\": \"Best regards, John\",\n \"custom_attributes\": {},\n \"ui_settings\": {},\n \"avatar\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"type": "User",
"role": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"name": "<string>"
},
"pubsub_token": "<string>",
"display_name": "<string>",
"available_name": "<string>",
"availability": "online",
"mfa_enabled": true,
"confirmed": true,
"confirmed_at": "2023-11-07T05:31:56Z",
"avatar_url": "<string>",
"custom_attributes": {},
"ui_settings": {},
"is_super_admin": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"timestamp": "2026-01-28T22:32:23Z"
},
"message": "Profile updated successfully"
}Autorizações
API access token authentication
Corpo
application/json
User full name
Exemplo:
"John Doe"
User email address
Exemplo:
User display name
Exemplo:
"John"
Email signature
Exemplo:
"Best regards, John"
Custom user attributes
UI preferences and settings
Avatar image file (base64 encoded or URL)
⌘I
Update user profile
curl --request PUT \
--url https://api.evoai.app/api/v1/profile \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "John Doe",
"email": "[email protected]",
"display_name": "John",
"message_signature": "Best regards, John",
"custom_attributes": {},
"ui_settings": {},
"avatar": "<string>"
}
'import requests
url = "https://api.evoai.app/api/v1/profile"
payload = {
"name": "John Doe",
"email": "[email protected]",
"display_name": "John",
"message_signature": "Best regards, John",
"custom_attributes": {},
"ui_settings": {},
"avatar": "<string>"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'John Doe',
email: '[email protected]',
display_name: 'John',
message_signature: 'Best regards, John',
custom_attributes: {},
ui_settings: {},
avatar: '<string>'
})
};
fetch('https://api.evoai.app/api/v1/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.evoai.app/api/v1/profile",
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([
'name' => 'John Doe',
'email' => '[email protected]',
'display_name' => 'John',
'message_signature' => 'Best regards, John',
'custom_attributes' => [
],
'ui_settings' => [
],
'avatar' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-key>"
],
]);
$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.evoai.app/api/v1/profile"
payload := strings.NewReader("{\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\",\n \"display_name\": \"John\",\n \"message_signature\": \"Best regards, John\",\n \"custom_attributes\": {},\n \"ui_settings\": {},\n \"avatar\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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.evoai.app/api/v1/profile")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\",\n \"display_name\": \"John\",\n \"message_signature\": \"Best regards, John\",\n \"custom_attributes\": {},\n \"ui_settings\": {},\n \"avatar\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["api_access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"John Doe\",\n \"email\": \"[email protected]\",\n \"display_name\": \"John\",\n \"message_signature\": \"Best regards, John\",\n \"custom_attributes\": {},\n \"ui_settings\": {},\n \"avatar\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"type": "User",
"role": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"name": "<string>"
},
"pubsub_token": "<string>",
"display_name": "<string>",
"available_name": "<string>",
"availability": "online",
"mfa_enabled": true,
"confirmed": true,
"confirmed_at": "2023-11-07T05:31:56Z",
"avatar_url": "<string>",
"custom_attributes": {},
"ui_settings": {},
"is_super_admin": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"timestamp": "2026-01-28T22:32:23Z"
},
"message": "Profile updated successfully"
}