Conversation channels
Webhooks that receive messages from an external system and answer with the tier's model, billed as conversations. See Conversation channels.
| Command | HTTP | Description |
|---|---|---|
channels list | GET /v1/channels | List conversation channels |
channels create | POST /v1/channels | Create a conversation channel |
channels get | GET /v1/channels/{id} | Get the conversation channel |
channels update | PATCH /v1/channels/{id} | Update a conversation channel |
channels delete | DELETE /v1/channels/{id} | Delete the conversation channel (soft delete) |
channels rotate-token | POST /v1/channels/{id}/rotate-token | Rotate the inbound token |
The inbound token (inbound_token) is only returned by create and rotate-token: keep the response.
Examples​
--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits the fields that come back — worth using on every list/get to save context. See Global flags for the full reference.
# List conversation channels
kobana kadu channels list --fields "id,label,status"
# Create a conversation channel
kobana kadu channels create \
--json '{"label": "LABEL", "type": "telegram", "outbound_url": "https://example.com/reply"}'
# Get the conversation channel
kobana kadu channels get --params '{"id": "CHANNEL_ID"}'
# Update a conversation channel
kobana kadu channels update --params '{"id": "CHANNEL_ID"}' \
--json '{"status": "disabled"}'
# Delete the conversation channel (soft delete)
kobana kadu channels delete \
--params '{"id": "CHANNEL_ID"}' \
--dry-run
# Rotate the inbound token
kobana kadu channels rotate-token \
--params '{"id": "CHANNEL_ID"}' \
--dry-run
Next steps​
- Conversation channels in the console — inbound URL, mapping and answer.
- Schema introspection — every parameter this resource accepts.