Agents
Import a public HTTPS image for cropping and persistent avatar upload.
Import a public HTTPS image for cropping and persistent avatar upload. The request enforces Agent roles, ownership, workspace boundaries, and lifecycle state.
POST
/
api
/
v1
/
avatars
/
import
Import a public HTTPS image for cropping and persistent avatar upload.
curl --request POST \
--url https://api.revoengine.com/api/v1/avatars/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/avatars/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/avatars/import"
payload = { "url": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"contentType": "image/png",
"imageBase64": "<string>"
}Authorizations
Bearer JWT token or API Key (sk-*).
Body
application/json
Public HTTPS image URL.
Maximum string length:
2048⌘I
Import a public HTTPS image for cropping and persistent avatar upload.
curl --request POST \
--url https://api.revoengine.com/api/v1/avatars/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/avatars/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/avatars/import"
payload = { "url": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"contentType": "image/png",
"imageBase64": "<string>"
}
