> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voiceable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Widget Configuration

## Get Widget Configuration

Public endpoint that returns the widget configuration for an agent.

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.example.com/api/v1/widget/your-api-key-here/agent_123/config"
  ```

  ```javascript JavaScript theme={null}
  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();
  ```

  ```python Python theme={null}
  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()
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "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"
      }
    }
  }
  ```
</ResponseExample>

<OpenApiExplorer />
