Skip to content
Get Started

Delete webhooks

webhooks.delete(WebhookDeleteParams**kwargs) -> WebhookDeleteResponse
delete/api/account/webhooks

Delete specific webhooks from the account

ParametersExpand Collapse
webhooks: SequenceNotStr[str]

Array of webhook URLs to delete

type: Optional[Literal["receive", "line_blocked", "line_assigned", "outbound"]]

Type of webhook to delete from

Accepts one of the following:
"receive"
"line_blocked"
"line_assigned"
"outbound"
ReturnsExpand Collapse
class WebhookDeleteResponse:
message: Optional[str]
status: Optional[str]
Delete webhooks
import os
from sendblue_api import SendblueAPI

client = SendblueAPI(
    api_key=os.environ.get("SENDBLUE_API_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SENDBLUE_API_API_SECRET"),  # This is the default and can be omitted
)
webhook = client.webhooks.delete(
    webhooks=["https://example.com"],
)
print(webhook.message)
{
  "message": "Webhooks deleted successfully",
  "status": "OK"
}
Returns Examples
{
  "message": "Webhooks deleted successfully",
  "status": "OK"
}