cURL
curl --request GET \ --url https://api.pro.daya.co/public/v1/webhooks/{id} \ --header 'X-Api-Key: <x-api-key>'
{ "success": true, "message": "Webhook retrieved successfully", "data": { "id": "770e8400-e29b-41d4-a716-446655440000", "url": "https://example.com/webhooks/daya", "description": "Order notifications", "events": ["order.filled", "order.cancelled"], "status": "active", "failure_count": 0, "last_success_at": "2024-01-15T10:30:00Z", "last_failure_at": null, "last_failure_reason": null, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-15T10:30:00Z" }, "timestamp": "2024-01-15T10:30:00Z" }
Get a specific webhook by ID
X-Api-Key: daya_sk_YOUR_API_KEY
770e8400-e29b-41d4-a716-446655440000
curl --request GET \ --url 'https://api.pro.daya.co/public/v1/webhooks/770e8400-e29b-41d4-a716-446655440000' \ --header 'X-Api-Key: daya_sk_YOUR_API_KEY'
Show webhook properties
active
paused
disabled
{ "success": false, "message": "Validation error", "error": { "code": "VALIDATION_ERROR", "message": "Invalid webhook ID format" } }