Webhooks
List webhook events
Returns the event types you can subscribe a webhook endpoint to.
GET
/
webhook
/
events
List webhook events
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.melio.com/v2/webhook/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.melio.com/v2/webhook/events"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.melio.com/v2/webhook/events \
--header 'api-key: <api-key>'HttpResponse<String> response = Unirest.get("https://api.melio.com/v2/webhook/events")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.melio.com/v2/webhook/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.melio.com/v2/webhook/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
"api.entity.created",
"api.entity.updated",
"api.account.created",
"api.account.updated",
"api.account.deleted",
"api.payment.created",
"api.payment.updated",
"api.limitation.updated"
]
}Authorizations
Response
200 - application/json
Available event types.
An event type a webhook endpoint can subscribe to.
Available options:
api.entity.created, api.entity.updated, api.account.created, api.account.updated, api.account.deleted, api.payment.created, api.payment.updated, api.limitation.updated ⌘I
List webhook events
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://api.melio.com/v2/webhook/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.melio.com/v2/webhook/events"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.melio.com/v2/webhook/events \
--header 'api-key: <api-key>'HttpResponse<String> response = Unirest.get("https://api.melio.com/v2/webhook/events")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.melio.com/v2/webhook/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.melio.com/v2/webhook/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
"api.entity.created",
"api.entity.updated",
"api.account.created",
"api.account.updated",
"api.account.deleted",
"api.payment.created",
"api.payment.updated",
"api.limitation.updated"
]
}