Create a webhook

POST {{baseUrl}}/{{version}}/webhook

Here you can register a new webhook URL. The subscriptions refer to which kind of log will be notified to the webhook URL being registered. The subscriptions must be in transfer, boleto, boleto-payment, utility-payment.

ParametersValue TypeDescription
urlREQUIREDThe server URL that will receive the webhook events
subscriptionsREQUIREDArray of subscriptions. Possible values: boleto, boleto-payment, transfer, utility-payment

Request Body

{"url"=>"https://webhook.site/287d2ec8-bc67-4a1e-83b9-d3151ebfcfb7", "subscriptions"=>["boleto", "boleto-payment"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"message":"Webhook successfully created","webhook":{"url":"https://winterfell.westeros.gov/events-from-stark-bank","id":"5674228498038784","subscriptions":["boleto","boleto-payment","transfer","utility-payment"]}}