For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Fork this repoGet a demo
  • Docs
    • Welcome
    • Quickstart
    • Concepts
    • Search
    • MCP Server
    • CLI
    • Agent Skills
    • Connect
    • Add New Connector
    • Rate Limits
  • API Reference
      • GETList Messages
      • GETGet Message
      • GETList Subscriptions
      • GETGet Subscription
      • POSTCreate Subscription
      • PATCHUpdate Subscription
      • POSTRecover Failed Messages
      • DELDelete Subscription
LogoLogo
Fork this repoGet a demo
API ReferenceWebhooks

Delete Subscription

DELETE
/webhooks/subscriptions/:subscription_id
DELETE
/webhooks/subscriptions/:subscription_id
1import requests
2
3url = "https://api.airweave.ai/webhooks/subscriptions/550e8400-e29b-41d4-a716-446655440000"
4
5headers = {"x-api-key": "<apiKey>"}
6
7response = requests.delete(url, headers=headers)
8
9print(response.json())
1{
2 "id": "c3d4e5f6-a7b8-9012-cdef-345678901234",
3 "url": "https://api.mycompany.com/webhooks/airweave",
4 "created_at": "2024-03-01T08:00:00Z",
5 "updated_at": "2024-03-15T14:30:00Z",
6 "filter_types": [
7 "sync.completed",
8 "sync.failed"
9 ],
10 "disabled": false,
11 "description": "Production notifications for data team",
12 "health_status": "healthy"
13}
Permanently delete a webhook subscription. Once deleted, Airweave will stop sending events to this endpoint immediately. This action cannot be undone. Any pending message deliveries will be cancelled. If you want to temporarily stop receiving events, consider disabling the subscription instead using the PATCH endpoint.
Was this page helpful?
Previous
Built with

Authentication

x-api-keystring
API Key authentication via header

Path parameters

subscription_idstringRequired

The unique identifier of the subscription to delete (UUID).

Response

Deleted subscription
idstring

Unique identifier for this subscription (UUID format)

urlstring
The URL where webhook events are delivered
created_atstringformat: "date-time"

When this subscription was created (ISO 8601 format, UTC)

updated_atstringformat: "date-time"

When this subscription was last updated (ISO 8601 format, UTC)

filter_typeslist of strings or null
Event types this subscription is filtered to receive. See EventType enum for all available types.
disabledbooleanDefaults to false
Whether this subscription is currently disabled. Disabled subscriptions do not receive event deliveries.
descriptionstring or null

Optional human-readable description of this subscription

health_statusenum

Health status of this subscription based on recent delivery attempts. Values: ‘healthy’ (all recent deliveries succeeded), ‘degraded’ (mix of successes and failures), ‘failing’ (consecutive failures beyond threshold), ‘unknown’ (no delivery data yet).

Allowed values:

Errors

404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error