Endpoints for creating, reading, and deleting webhooks.
This endpoint allows you to list your webhooks.
Name | Type | Description |
---|---|---|
before |
string | A pagination cursor for entries before a specific point in the collection. |
after |
string | A pagination cursor for entries after a specific point in the collection. |
limit |
integer | The maximum number of entries to retrieve (defaults to 20, up to 100 allowed). |
When successful, returns a Paginated List of Webhook resources.
{
"entries": [
// items
],
"metadata": {
"before": null,
"after": "g3QAAAABZAACaWRiAAAbFA==",
"limit": 20
}
}
This endpoint allows you to fetch a single webhook.
When successful, returns a Webhook resource.
{
"id": "wh_01ED74HMFGVZ92YVCWTD8Y8H6X",
// ...
}
It the resource does not exist or is not accessible, returns a not found response.
This endpoint allows you to create a new webhook.
Name | Type | Description |
---|---|---|
url |
string | The URL to receive HTTP POST requests. |
When successful, returns the Webhook resource.
{
"id": "wh_01ED74HMFGVZ92YVCWTD8Y8H6X",
// ...
}
If the URL provided is not valid, returns validation errors.
{
"errors": {
"url": [{"message": "must be a valid URL"}]
}
}
This endpoint allows you to delete a new webhook.
When successful, returns the Webhook resource.
{
"id": "wh_01ED74HMFGVZ92YVCWTD8Y8H6X",
"state": "deleted"
// ...
}