Skip to main content
GET
/
webhooks
/
active
Python
import os
from datagrid_ai import Datagrid

client = Datagrid(
    api_key=os.environ.get("DATAGRID_API_KEY"),  # This is the default and can be omitted
)
response = client.webhooks.list_active_for_event(
    event_type="event_type",
)
print(response.data)
{
  "object": "list",
  "data": [
    {
      "object": "webhook",
      "id": "<string>",
      "url": "<string>",
      "events": [
        "<string>"
      ],
      "enabled": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

event_type
string
required

The event type to filter by (for example knowledge.processing.completed).

Response

List of active webhooks for event

object
enum<string>
required
Available options:
list
data
object[]
required

An array containing active webhook subscriptions for the requested event.