Skip to main content
POST
/
webhooks
Create Webhook
curl --request POST \
  --url https://padelapi.org/api/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": []
}
'
{
  "id": 123,
  "self": "<string>",
  "url": "<string>",
  "events": [
    "<unknown>"
  ],
  "secret": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://padelapi.org/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string<uri>
required

Public HTTPS URL where webhook events will be delivered.

events
enum<string>[]
required

List of events the consumer wants to subscribe to.

Minimum array length: 1
Available options:
tournament.created,
tournament.updated,
tournament.deleted,
match.created,
match.updated,
match.deleted,
player.created,
player.updated,
player.deleted

Response

WebhookResource

id
integer
required
self
string
required
url
string
required
events
any[]
required
secret
string
required
created_at
string
required
updated_at
string
required