GET /api/v1/webhooks
Responses
The unique identifier of the webhook.
The URL of the webhook endpoint.
GET /api/v1/webhooks HTTP/1.1
Accept: */*
curl -L \
--url '/api/v1/webhooks' \
--header 'Accept: */*'
const response = await fetch('/api/v1/webhooks', {
method: 'GET',
headers: {
"Accept": "*/*"
},
});
const data = await response.json();
import requests
response = requests.get(
"/api/v1/webhooks",
headers={"Accept": "*/*"},
)
data = response.json()
[
{
"webhookId": "text",
"endpoint": "text"
}
]
POST api/v1/webhooks
The URL of the webhook endpoint to be registered.
Responses
Example: true
The unique identifier of the registered webhook.
Example: false
POST /api/v1/webhooks HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"endpoint": "text"
}
curl -L \
--request POST \
--url '/api/v1/webhooks' \
--header 'Content-Type: application/json' \
--data '{
"endpoint": "text"
}'
const response = await fetch('/api/v1/webhooks', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"endpoint": "text"
})
});
const data = await response.json();
import json
import requests
response = requests.post(
"/api/v1/webhooks",
headers={"Content-Type":"application/json"},
data=json.dumps({
"endpoint": "text"
})
)
data = response.json()
{
"success": true,
"webhookId": "text"
}
{
"success": false
}