Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 2.51 KB

File metadata and controls

30 lines (25 loc) · 2.51 KB

Webhook

Example Usage

import { Webhook } from "pushpress/models/components/webhook.js";

let value: Webhook = {
  id: "UUID",
  url: "https://new-webhook-url.com",
  events: [
    "event_3",
    "event_4",
  ],
  created: 1354.74,
  updated: 2982.82,
  company: "McLaughlin LLC",
};

Fields

Field Type Required Description Example
id string ✔️ N/A UUID
url string ✔️ URL to post the event data to https://new-webhook-url.com
events string[] ✔️ List of events the webhook is subscribed to [
"event_3",
"event_4"
]
created number ✔️ N/A
updated number ✔️ N/A
company string ✔️ companyId of the company to which the webhook belongs