Skip to content

channelHooks.receiveChannelEvent

POST
/v1/hooks/channels/{channelId}
curl --request POST \
--url https://example.com/v1/hooks/channels/example \
--header 'Content-Type: application/json' \
--data '"example"'

Takes an event from Slack, Lark, Telegram or a custom Channel. OpenBot checks the signature, answers at once, and does the work later. A custom Channel sends a CustomEvent with X-OpenBot-Timestamp and X-OpenBot-Signature: sha256=<hex HMAC-SHA256 of timestamp + "." + body>.

channelId
required
string
>= 1 characters <= 128 characters
Media typeapplication/json

Example generated

example

Success

Media typeapplication/json

Example generated

example

ChannelHookDenied

Media typeapplication/json
object
_tag
required
string
Allowed values: ChannelHookDenied

Example

{
"_tag": "ChannelHookDenied"
}

ChannelsUnavailable

Media typeapplication/json
object
_tag
required
string
Allowed values: ChannelsUnavailable

Example

{
"_tag": "ChannelsUnavailable"
}