Create a webhook endpoint
POST {{baseUrl}}/v1/webhook_endpoints
A webhook endpoint must have a url
and a list of enabled_events
. You may optionally specify the Boolean connect
parameter. If set to true, then a Connect webhook endpoint that notifies the specified url
about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url
only about events from your account is created. You can also create webhook endpoints in the webhooks settings section of the Dashboard.
Request Body
[{"name"=>"enabled_events[0]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"enabled_events[1]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"url", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"api_version", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"connect", "value"=>"<boolean>", "datatype"=>"string"}, {"name"=>"description", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[0]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[1]", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |