Event hook

Event hook

The webhook that hears what became of your product’s email.

On this page
  1. hooks get
  2. hooks set
  3. hooks rotate
  4. hooks remove
  5. hooks test

mailset hooks get

Show where your products’ mail events go, and what waits for the hook.

Admin or owner

Returns

With --json it prints what the API returns.

In the API: POST /v1/hooks.get

Usage
mailset hooks get [--org <id>]
Example
mailset hooks get

mailset hooks set

Send events for your products’ mail to a webhook.

Admin or owner

Flags

  • --url<url>required

    Where Mailset posts the events: https, port 443, on a public host name.

Returns

With --json it prints what the API returns.

In the API: POST /v1/hooks.set

Usage
mailset hooks set --url <url> [--org <id>]
Example
mailset hooks set --url https://app.example.com/hooks/mailset

mailset hooks rotate

A new signing secret for the products’ hook; the old one stops.

Admin or owner

Returns

With --json it prints what the API returns.

In the API: POST /v1/hooks.rotate

Usage
mailset hooks rotate [--org <id>]
Example
mailset hooks rotate

mailset hooks remove

Stop sending product mail events; what was waiting is dropped.

Admin or owner

Returns

With --json it prints what the API returns.

In the API: POST /v1/hooks.remove

Usage
mailset hooks remove [--org <id>]
Example
mailset hooks remove

mailset hooks test

Post one signed test event to the products’ hook now.

Admin or owner

Returns

With --json it prints what the API returns.

In the API: POST /v1/hooks.test

Usage
mailset hooks test [--org <id>]
Example
mailset hooks test