Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.69 KB

File metadata and controls

58 lines (43 loc) · 1.69 KB
title Webhooks
nav_order 14
seo
title
Webhooks endpoint
description API reference for the Makeplans webhooks endpoint — attributes and operations for managing webhook subscriptions.

Attributes

NameTypeDescription
idIntegerAutomatically set
created_atDatetimeAutomatically set
updated_atDatetimeAutomatically set
target_urlStringRequired. Must use HTTPS. Local addresses are not allowed. Maximum 2048 characters.
eventStringRequired. Maximum 50 characters.
activeBooleanNot required. Default true. Set to false to disable the webhook.

See webhook overview for a list of events, wildcard usage to trigger from multiple events, and how to handle webhook events from Makeplans.

Listing

GET /web_hooks will return all webhooks.

Response

[
  {
    "web_hook": {
      "id": 1,
      "target_url": "https://example.com/newcustomer/yeah",
      "event": "person.created",
      "active": true,
      "created_at": "2012-09-20T15:34:16+02:00",
      "updated_at": "2012-09-20T15:34:16+02:00"
    }
  }
]

Get webhook

GET /web_hooks/{web_hook_id} will get a webhook with id {web_hook_id}.

Add new webhook

POST /web_hooks will create a new webhook.

Update webhook

PUT /web_hooks/{web_hook_id} will update existing webhook with id {web_hook_id}.

Delete webhook

DELETE /web_hooks/{web_hook_id} will delete existing webhook with id {web_hook_id}.