Get Widget Configuration
Public endpoint that returns the widget configuration for an agent.curl -X GET "https://api.example.com/api/v1/widget/your-api-key-here/agent_123/config"
const apiKey = 'your-api-key-here';
const agentId = 'agent_123';
const response = await fetch(`https://api.example.com/api/v1/widget/${apiKey}/${agentId}/config`, {
method: 'GET'
});
const data = await response.json();
import requests
api_key = 'your-api-key-here'
agent_id = 'agent_123'
response = requests.get(
f'https://api.example.com/api/v1/widget/{api_key}/{agent_id}/config'
)
data = response.json()
{
"status": {
"code": 200,
"message": "Widget configuration retrieved successfully"
},
"data": {
"widget_config": {
"agent_id": "agent_123",
"agent_name": "Customer Support Agent",
"theme": "light",
"position": "bottom-right"
}
}
}
