Skip to main content
Use this command to establish a WebSocket connection to the WaaS 2.0 service and stream webhook events, as well as optionally forward them to a specified URL. You can use Ctrl + C to stop the event listening process.
This command is mainly intended for use in development and testing environments. For production environment, set up a proper webhook endpoint in your application as instructed in Set up a callback or webhook endpoint.

Usage

cobo webhook listen [options]

Options

  • --events <event_type>: Filter the events by specifying event types. Replace <event_type> with the specific event types you’re interested in and separate them by commas. Possible values for event types include:
    • wallets.transaction.created
    • wallets.transaction.updated
    • wallets.transaction.failed
    • wallets.transaction.succeeded
    • wallets.mpc.tss_request.created
    • wallets.mpc.tss_request.updated
    • wallets.mpc.tss_request.failed
    • wallets.mpc.tss_request.succeeded
    You can also run the cobo webhook events command to get the latest list of all available event types.
  • --forward <url>: Forward received events to the specified URL.
    When using this option, ensure that your endpoint is properly secured, especially if you’re forwarding to a public URL.

Example

cobo webhook listen --events wallets.transaction.created,wallets.transaction.updated --forward "https://your-endpoint.com/webhook"
This command listens for the wallets.transaction.created and wallets.transaction.updated event types and forward the received events to the url https://your-endpoint.com/webhook.
Feel free to share your feedback to improve our documentation!