Save a webhook endpoint
curl --request POST \
--url https://judged.systems/api/webhook-endpoints \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://judged.systems/api/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/webhook-endpoints"
payload = { "url": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"url": "<string>",
"secret": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}Webhooks
Save a webhook endpoint
Requires packs:write. Replaces this user’s endpoint. The secret is returned once.
POST
/
api
/
webhook-endpoints
Save a webhook endpoint
curl --request POST \
--url https://judged.systems/api/webhook-endpoints \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://judged.systems/api/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://judged.systems/api/webhook-endpoints"
payload = { "url": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"url": "<string>",
"secret": "<string>"
}{
"error": "<string>",
"issues": [
{}
]
}