Overview
Gateways connect external systems (REST APIs, WebSockets, Slack, etc.) to the Solace Agent Mesh. Each gateway type has specific configuration requirements.Gateway Types
Solace Agent Mesh supports multiple gateway types:- REST Gateway: HTTP/HTTPS REST API with SSE streaming
- WebUI Gateway: Web-based user interface with real-time updates
- Slack Gateway: Slack bot integration
- Generic Gateway: Custom protocol adapters
Base Gateway Configuration
All gateways share common base configuration:Top-Level Configuration
Core Gateway Properties
The A2A topic namespace. Must match agent namespace.
Unique identifier for this gateway instance. Auto-generated if omitted.
Artifact Service
Storage backend for file uploads and downloads.Scope Options:
namespace: Shared across all components in namespacesession: Isolated per user sessiongateway: Isolated to this gateway
REST Gateway Configuration
REST Gateway provides HTTP/HTTPS API access with Server-Sent Events (SSE) for streaming.REST-Specific Configuration
Host address for the REST API server.
Port for HTTP REST API.
Port for HTTPS REST API (when SSL is enabled).
SSL/TLS Configuration
Path to SSL private key file.
Path to SSL certificate file.
Password for encrypted SSL private key.
Authentication
Enable/disable authentication checks.
URL of external OAuth2/OIDC authentication service.
Default user identity when authentication is disabled (development mode).
Legacy API Support
Timeout for synchronous (v1) API requests.
Complete REST Gateway Example
rest-gateway.yaml
WebUI Gateway Configuration
WebUI Gateway provides a web-based interface with real-time streaming updates.WebUI-Specific Configuration
Secret key for signing web user sessions.
Host address for the FastAPI server.
Port for HTTP FastAPI server.
Port for HTTPS FastAPI server (when SSL enabled).
CORS Configuration
List of allowed origins for CORS requests.
SSE Configuration
Maximum size of SSE connection queues.
If true, gateway resolves artifact:// URIs before sending to client.
Frontend Configuration
Initial welcome message displayed in chat.
Name displayed for the bot/agent in UI.
Enable/disable feedback buttons in UI.
Public URL for frontend API requests. Empty uses relative URLs.
Session & Task Configuration
Session persistence configuration.
Maximum size of visualization message queue.
Maximum size of task logger queue.
Complete WebUI Gateway Example
webui-gateway.yaml
Generic Gateway Configuration
For custom protocol adapters:Environment Variables
Required environment variables:NAMESPACE: A2A topic namespaceSOLACE_BROKER_URL: Solace broker URLSOLACE_BROKER_USERNAME: Broker usernameSOLACE_BROKER_PASSWORD: Broker passwordSOLACE_BROKER_VPN: Broker VPN name
REST_GATEWAY_ID: REST gateway identifierREST_API_HOST: REST API hostREST_API_PORT: REST API portSESSION_SECRET_KEY: WebUI session secretDATABASE_URL: Database connection string- SSL certificate paths as needed
See Also
- REST API Reference - REST API endpoints
- WebSocket Reference - WebSocket protocol
- Agent Configuration - Configure agents