cURL
curl --request POST \ --url https://api.example.com/v1/voiceai/agents/{agent_id}/avatar \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'avatar_file=<string>'
{ "agent_id": "<string>", "avatar_url": "<string>" }
Sets the avatar for an agent displayed in the widget
API key for programmatic access
The id of an agent. This is returned on agent creation.
"agent_3701k3ttaq12ewp8b7qv5rfyszkz"
Successful Response
The ID of the agent
The public URL of the uploaded avatar