list_senders
Retrieve all configured email senders to use their IDs when creating newsletter campaigns in Keila.
Instructions
List all configured senders. Use sender IDs when creating campaigns.
Returns: A dict with 'data' (list of senders with id, name, from_email, reply_to).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- client.py:204-208 (handler)The actual implementation of the tool, calling the API.
def list_senders(self) -> dict: """List all senders.""" resp = self.session.get(f"{self.url}/api/v1/senders", headers=self._headers(), timeout=30) resp.raise_for_status() return resp.json() - mcp_server.py:267-275 (registration)The MCP tool registration for 'list_senders'.
@mcp.tool() def list_senders() -> dict: """ List all configured senders. Use sender IDs when creating campaigns. Returns: A dict with 'data' (list of senders with id, name, from_email, reply_to). """ return _client.list_senders()