Skip to main content

Conversation channels

Webhooks that receive messages from an external system and answer with the tier's model, billed as conversations. See Conversation channels.

CommandHTTPDescription
channels listGET /v1/channelsList conversation channels
channels createPOST /v1/channelsCreate a conversation channel
channels getGET /v1/channels/{id}Get the conversation channel
channels updatePATCH /v1/channels/{id}Update a conversation channel
channels deleteDELETE /v1/channels/{id}Delete the conversation channel (soft delete)
channels rotate-tokenPOST /v1/channels/{id}/rotate-tokenRotate 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​