Create Webhook Endpoint

Create a new webhook endpoint

post/webhook_endpoints

Request

  • Base URL
    https://app.moderntreasury.com/api
  • URL
    https://app.moderntreasury.com/api/webhook_endpoints
  • Auth
    HTTP basic

Request body

urlstring

url must be configured like: https://<your-domain.com>

configured_eventsobject

A json object in the form of { topic => [event, …] }. When not specified, all events are sent to the Webhooks Endpoint. Refer to Webhooks for a list of topics and events.

Response

201

idstring
objectstring
live_modeboolean
urlstring
configured_eventsobject
webhook_keystring
enabledboolean
discarded_atunknown
created_atstring
updated_atstring

Example response

{
  "id": "281686a8-359c-451a-b43c-76e2eec0037a",
  "object": "webhook_endpoint",
  "url": "https://<your-domain.com>",
  "webhook_key": "<webhook key>",
  "enabled": true,
  "created_at": "2022-02-16T02:22:31Z",
  "updated_at": "2022-02-16T02:22:31Z"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.