Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developer.lofty.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Usage: lofty-cli webhooks [options] [command]

Manage webhooks

Options:
  -h, --help                       display help for command

Commands:
  create [options]                 Add a new webhook
  list [options]                   Get all webhook from current team
  delete [options] <subscribe-id>  Delete a webhook
  help [command]                   display help for command

lofty-cli webhooks create

Usage: lofty-cli webhooks create [options]

Add a new webhook

Options:
  --list-id <id>        [REQUIRED] The list that you want to subscribe. ListId:
                        agent info(1), lead info(2), lead activity(3), alert(4),
                        transaction... (number)
  --callback-url <url>  [REQUIRED] The url link that you receive information
                        (string, e.g. http://xxx.test.com)
  --limit <n>           limitation of webhook notifications in 30 mins for each,
                        max is 5000 (number, e.g. 100)
  --fields <cols>       Comma-separated columns to display
  --json                Output as JSON
  --format <fmt>        Output format: text, json, csv, yaml
  -h, --help            display help for command

lofty-cli webhooks list

Usage: lofty-cli webhooks list [options]

Get all webhook from current team

Options:
  --fields <cols>  Comma-separated columns to display
  --json           Output as JSON
  --format <fmt>   Output format: text, json, csv, yaml
  -h, --help       display help for command

lofty-cli webhooks delete

Usage: lofty-cli webhooks delete [options] <subscribe-id>

Delete a webhook

Options:
  --fields <cols>  Comma-separated columns to display
  --json           Output as JSON
  --format <fmt>   Output format: text, json, csv, yaml
  -h, --help       display help for command