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", 4 more]]

Type of webhook to delete from

One of the following:
"receive"
"line_blocked"
"line_assigned"
"outbound"
"typing_indicator"
"call_log"
"contact_created"
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"
}