Get inbound metrics
const url = 'https://api.hookbridge.io/v1/inbound-metrics?window=24h&inbound_endpoint_id=01935abc-def0-7123-4567-890abcdef012';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.hookbridge.io/v1/inbound-metrics?window=24h&inbound_endpoint_id=01935abc-def0-7123-4567-890abcdef012' \ --header 'Authorization: Bearer <token>'Retrieve aggregated delivery metrics for inbound webhook messages. Optionally filter by a specific inbound endpoint.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Time window for metrics
Example
24hOptional filter by inbound endpoint ID
Example
01935abc-def0-7123-4567-890abcdef012Responses
Section titled “Responses”Inbound metrics retrieved successfully
object
object
Time window for these metrics
Total number of inbound messages in the window
Successfully delivered messages
Permanently failed messages
Total retry attempts
Ratio of succeeded to total messages
Average delivery latency in milliseconds
Average total time from received to delivered in milliseconds
object
Unique identifier for this request (useful for support)
Example
{ "data": { "window": "24h", "total_messages": 5000, "succeeded": 4900, "failed": 20, "retries": 80, "success_rate": 0.98, "avg_latency_ms": 150, "avg_delivery_time_ms": 3200 }, "meta": { "request_id": "req_xyz123" }}Invalid window or endpoint_id parameter
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Example
{ "error": { "code": "INVALID_REQUEST", "message": "endpoint must be a valid HTTPS URL" }, "meta": { "request_id": "req_xyz123" }}Unauthorized - Invalid or missing API key
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Invalid or missing API key" }, "meta": { "request_id": "req_xyz123" }}Enter your credentials to populate code examples throughout the docs.