Endpoint Details
- URL:
/api/v0/webhooks/{webhook_id} - Method:
GET - Authentication: Required (API Key Authentication with Scopes)
- Content-Type:
application/json - Required Scope:
webhook:read
Authentication
This endpoint requires API key authentication with specific scopes:Required Headers
Required Scope
Your API key must have thewebhook:read scope to access this endpoint.
Path Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| webhook_id | string | Unique identifier for webhook | Yes |
Query Parameters
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
| include_events | boolean | Include recent delivery events | false | ?include_events=true |
| events_limit | integer | Number of recent events to include (1-50) | 10 | ?events_limit=20 |
Response
Success Response (200 OK)
Response Fields
Webhook Object
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the webhook |
| name | string | Human-readable name for the webhook |
| url | string | Endpoint URL where events are sent |
| isActive | boolean | Whether the webhook is currently active |
| encrypted | boolean | Whether payloads are encrypted |
| signing_secret | string | Secret used for signature verification |
| created_at | string | ISO 8601 timestamp when webhook was created |
| updated_at | string | ISO 8601 timestamp when webhook was last updated |
| delivery_stats | object | Detailed statistics about webhook deliveries |
| app | object | Application information |
| recent_events | array | Recent delivery events (if requested) |
Enhanced Delivery Stats
| Field | Type | Description |
|---|---|---|
| total_events | number | Total number of events sent to this webhook |
| successful_deliveries | number | Number of successfully delivered events |
| failed_deliveries | number | Number of failed delivery attempts |
| last_delivery | string | ISO 8601 timestamp of last delivery attempt |
| success_rate | number | Delivery success rate percentage |
| average_response_time | number | Average response time in milliseconds |
| last_24h_events | number | Events sent in the last 24 hours |
| last_24h_failures | number | Failed deliveries in the last 24 hours |
Recent Event Object
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the delivery event |
| event_type | string | Type of event that was delivered |
| delivery_status | string | Status of delivery (delivered, failed, pending) |
| response_code | number | HTTP response code from webhook endpoint |
| response_time | number | Response time in milliseconds |
| error_message | string | Error message (if delivery failed) |
| created_at | string | When the event was created |
| delivered_at | string | When delivery was attempted |
| retry_count | number | Number of retry attempts |
Example Requests
Error Responses
Webhook Diagnostics
Health Indicators
Success Rate
Success Rate
- Excellent: 99%+ success rate
- Good: 95-99% success rate
- Warning: 90-95% success rate
- Critical: Below 90% success rate
Response Time
Response Time
- Fast: Under 1 second average response time
- Acceptable: 1-3 seconds average response time
- Slow: 3-5 seconds average response time
- Critical: Over 5 seconds average response time
Recent Activity
Recent Activity
- Active: Events delivered in the last 24 hours
- Idle: No events in the last 24 hours
- Failing: Multiple failures in recent deliveries
Troubleshooting Guide
- Delivery Failures
- Performance Issues
- Security Concerns
Common causes and solutions:
- HTTP 4xx errors: Check webhook endpoint implementation
- HTTP 5xx errors: Check webhook server health and capacity
- Timeout errors: Optimize webhook response time
- Connection errors: Verify webhook URL and network connectivity
Use Cases
Webhook Health Monitoring
Performance Analysis
Best Practices
Regular Health Checks
Monitor individual webhook performance and set up alerts for degraded performance.
Include Recent Events
Use the
include_events parameter to debug delivery issues and understand webhook behavior.Performance Monitoring
Track response times and success rates to identify optimization opportunities.
Related Endpoints
POST /api/v0/webhooks- Create a new webhookGET /api/v0/webhooks- List all webhooksPATCH /api/v0/webhooks/{id}- Update webhook configurationDELETE /api/v0/webhooks/{id}- Delete webhook
