Message hooks

Create message hook

Registers a new message hook for the given channel. Landbot will POST messages to your url; if you provide a token it is sent as Authorization: Token <token> on each delivery.

post/channels/{channel_id}/message_hooks/

Request

  • Base URL: https://api.landbot.io/v1
  • URL: https://api.landbot.io/v1/channels/{channel_id}/message_hooks/
  • Auth: API key in header Authorization

Path parameters

channel_idinteger required

Identifier of the channel.

Request body

urlstring uri required

Your endpoint that will receive message payloads.

tokenstring

Optional shared secret. Sent back in the Authorization header on each delivery.

namestring

Human-readable label for the hook.

Response

Hook created.

successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.