Create Webhook

API Library Examples

from fulcrum import Fulcrum
fulcrum = Fulcrum('{token}')

obj = {
  "webhook": {
    "name": "Fire Hydrant Inventory Emails",
    "url": "https://my-webhook-processing-script.php"
  }
}

obj = json.loads(obj)

webhook = fulcrum.webhooks.create(obj)
print(webhook['webhook']['id'] + ' has been created!')
const { Client } = require('fulcrum-app');
const client = new Client('{token}');

const obj = {
  "name": "Fire Hydrant Inventory Emails",
  "url": "https://my-webhook-processing-script.php"
};

client.webhooks.create(obj)
  .then((webhook) => {
    console.log(webhook.id + ' has been created!');
  })
  .catch((error) => {
    console.log(error.message);
  });
require 'fulcrum'

client = Fulcrum::Client.new('{token}')

webhook = {
  "name"=>"Fire Hydrant Inventory Emails",
  "url"=>"https://my-webhook-processing-script.php"
}

response = client.webhooks.create(webhook)

puts response['id'] + ' has been created!'
Language
Authorization
Header
Click Try It! to start a request and see the response here!