Developers / API Reference / Live / Webhook API
Webhook Management
Webhook Management endpoints of the Webhook API.
List Webhooks
GET
https://api.ospree.io/api/v2/webhooks
Responses
Status
Description
200
Successful Response
JSON
{ "status": "success", "data": [ { "webhook_url": "string", "event_names": [ "string" ], "ip_allowlist": [ "string" ], "id": "00000000-0000-0000-0000-000000000000", "business_id": "00000000-0000-0000-0000-000000000000", "event_type": "string", "modified_by": "string", "last_modified": "2026-01-01T00:00:00Z", "webhook_desc": "string", "webhook_secret": "string" } ]}
Configure Webhook
POST
https://api.ospree.io/api/v2/webhooks
Request body
Field
Type
Required
Description
webhook_url
string
Yes
—
event_names
array<string> | null
No
—
ip_allowlist
array<string> | null
No
—
event_type
integer
Yes
—
JSON
{ "event_names": [ "event1", "event2" ], "event_type": 1, "ip_allowlist": [ "00.00.00.xx", "00.00.00.xx" ], "webhook_url": "http://example.com/webhook"}
Responses
Status
Description
201
Successful Response
JSON
{ "status": "success", "data": { "webhook_url": "string", "event_names": [ "string" ], "ip_allowlist": [ "string" ], "id": "00000000-0000-0000-0000-000000000000", "event_type": 0, "business_id": "00000000-0000-0000-0000-000000000000", "created_by": "00000000-0000-0000-0000-000000000000", "created": "2026-01-01T00:00:00Z", "modified_by": "00000000-0000-0000-0000-000000000000", "last_modified": "2026-01-01T00:00:00Z", "webhook_secret": "string" }}
List Webhook Event Types
GET
https://api.ospree.io/api/v2/webhooks/event_types
Responses
Status
Description
200
Successful Response
JSON
{ "status": "success", "data": [ { "event_type_id": "1", "event_type_name": "travel_rule" } ]}
Delete Webhook
DELETE
https://api.ospree.io/api/v2/webhooks/{id}
Parameters
Name
In
Type
Required
Description
id
path
string
Yes
—
Responses
Status
Description
200
Successful Response
JSON
{ "status": "success", "data": true}