curl --request PATCH \
--url https://padelapi.org/api/webhooks/{webhook} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"events": []
}
'import requests
url = "https://padelapi.org/api/webhooks/{webhook}"
payload = {
"url": "<string>",
"events": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: []})
};
fetch('https://padelapi.org/api/webhooks/{webhook}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://padelapi.org/api/webhooks/{webhook}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'events' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://padelapi.org/api/webhooks/{webhook}"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"events\": []\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://padelapi.org/api/webhooks/{webhook}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"events\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://padelapi.org/api/webhooks/{webhook}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"events\": []\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"self": "<string>",
"url": "<string>",
"events": [
"<unknown>"
],
"secret": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Update Webhook
Update the URL or events of an existing webhook subscription. Only the provided fields are modified — the secret and other attributes are preserved. Sending an empty events array effectively pauses the webhook without deleting it.
curl --request PATCH \
--url https://padelapi.org/api/webhooks/{webhook} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"events": []
}
'import requests
url = "https://padelapi.org/api/webhooks/{webhook}"
payload = {
"url": "<string>",
"events": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: []})
};
fetch('https://padelapi.org/api/webhooks/{webhook}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://padelapi.org/api/webhooks/{webhook}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'events' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://padelapi.org/api/webhooks/{webhook}"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"events\": []\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://padelapi.org/api/webhooks/{webhook}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"events\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://padelapi.org/api/webhooks/{webhook}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"events\": []\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"self": "<string>",
"url": "<string>",
"events": [
"<unknown>"
],
"secret": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Public HTTPS URL where webhook events will be delivered.
List of events the consumer wants to subscribe to. Send an empty array to pause delivery.
tournament.created, tournament.backfilled, tournament.updated, tournament.deleted, match.created, match.backfilled, match.updated, match.deleted, match.qualy.created, match.qualy.backfilled, match.qualy.updated, match.qualy.deleted, player.created, player.updated, player.deleted Response
WebhookResource
Unique identifier of the webhook subscription. Use it to update or delete the subscription.
Path to this webhook's endpoint, relative to https://padelapi.org.
HTTPS endpoint that receives the event payloads.
Events this subscription is listening to. An empty array pauses delivery without deleting the subscription.
Key used to verify the HMAC signature on incoming payloads, so you can confirm a request really came from us. Returned in full only in the response that creates the webhook: every later response returns it masked, so store it securely at creation time. See the Webhooks guide for the verification flow.
ISO 8601 timestamp of when the subscription was created.
ISO 8601 timestamp of the last change to the URL or the event list.