Gateways API
Manage communication gateways.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/agents/{id}/gateways | List gateways |
| POST | /api/agents/{id}/gateways | Create gateway |
| GET | /api/agents/{id}/gateways/{gatewayId} | Get gateway |
| PUT | /api/agents/{id}/gateways/{gatewayId} | Update gateway |
| DELETE | /api/agents/{id}/gateways/{gatewayId} | Delete gateway |
List Gateways
bash
GET /api/agents/{id}/gatewaysResponse
json
{
"gateways": [
{
"id": "gateway-123",
"type": "telegram",
"name": "Support Bot",
"is_default": true,
"status": "active"
}
]
}Create Gateway
bash
POST /api/agents/{id}/gateways
Content-Type: application/jsonRequest Body
json
{
"type": "telegram",
"name": "Support Bot",
"config": {
"bot_token": "123456:ABC..."
},
"is_default": true
}Update Gateway
bash
PUT /api/agents/{id}/gateways/{gatewayId}Delete Gateway
bash
DELETE /api/agents/{id}/gateways/{gatewayId}Gateway Types
| Type | Description |
|---|---|
email | SMTP email |
telegram | Telegram bot |
slack | Slack app |
discord | Discord bot |
whatsapp | WhatsApp Business |
sms | SMS via Twilio |
webhook | Custom webhook |