Webhook management
Ospree allows you to configure and manage webhooks through its API. This section outlines the available API endpoints for creating, listing, and deleting webhooks.
Create Webhook
POST
/api/v2/webhooks
The Create Webhook endpoint create a new webhook for a specified event_type. This means all events related to the specified event_type will be sent to the configured webhook URL. Request Body
event_type
integer
The type of the event. See "List Webhook Event Types" for the available event types.
True
webhook_url
string
The endpoint that will receive webhook requests. This must be a POST endpoint.
True
Response
List Webhooks
GET
/api/v2/webhooks
The List Webhooks endpoint retrieves a list of all configured webhooks, including their event types, URLs, creation timestamps, and last modified timestamps.
Response
List Webhook Event Types
GET
/api/v2/webhooks/event_types
The List Webhook Event Types endpoint retrieves a list of all available event types for configuring webhooks.
Response
Delete Webhook
DELETE
/api/v2/webhooks/:webhook_id
The Delete Webhook endpoint removes a webhook by its ID. Once deleted, the webhook will no longer receive event notifications. This action is irreversible.
Response
Last updated