Skip to main content

Create webhook

POST 

/webhooks

Subscribes your webhook listener to events.

Request

Body

    url urirequired

    The URL that is configured to listen on localhost for incoming POST notification messages that contain event information.

    Possible values: <= 2048 characters

    event_types

    object[]

    required

    An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the event_types array, specify the asterisk wild card. To list all supported events, list available events.

    Possible values: <= 500

  • Array [

  • name stringrequired

    The unique event name.

    Note: To subscribe to all events, including events as they are added, specify an * as the value to represent a wildcard.

  • ]

Responses

A successful request returns the HTTP 201 Created status code and a JSON response body with a webhook object that includes the webhook ID for later use.

Schema

    id string

    The ID of the webhook.

    url urirequired

    The URL that is configured to listen on localhost for incoming POST notification messages that contain event information.

    Possible values: <= 2048 characters

    event_types object[]required

    An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the event_types array, specify the asterisk wild card. To list all supported events, list available events.

    Possible values: <= 500

    links object[]

    An array of request-related HATEOAS links.

Loading...