Get pull event time-series metrics
const url = 'https://api.hookbridge.io/v1/pull-metrics/timeseries?window=1h';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/pull-metrics/timeseries?window=1h' \ --header 'Authorization: Bearer <token>'Retrieve time-bucketed pull event metrics for charting and analysis. Returns data points at intervals appropriate for the selected window.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Time window for metrics
Filter by specific pull endpoint
Responses
Section titled “Responses”Pull time-series metrics retrieved successfully
object
object
object
Start time of this bucket
Delivered (acknowledged) messages in this bucket
Messages received but not yet fetched by the customer
Messages fetched by the customer but not yet acknowledged
Total messages received in this bucket
object
Unique identifier for this request (useful for support)
Example
{ "data": { "window": "1h", "buckets": [ { "timestamp": "2025-12-06T00:00:00Z", "succeeded": 450, "stored": 10, "fetched": 5, "total": 465 } ] }, "meta": { "request_id": "req_xyz123" }}Invalid request
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Examples
Endpoint not found
{ "error": { "code": "ENDPOINT_NOT_FOUND", "message": "endpoint not found" }, "meta": { "request_id": "req_xyz123" }}Invalid endpoint ID format
{ "error": { "code": "INVALID_REQUEST", "message": "endpoint_id must be in format ep_xxx" }, "meta": { "request_id": "req_xyz123" }}Invalid payload
{ "error": { "code": "INVALID_REQUEST", "message": "payload must be valid JSON" }, "meta": { "request_id": "req_xyz123" }}Invalid headers
{ "error": { "code": "INVALID_HEADERS", "message": "header 'Host' is forbidden and cannot be overridden" }, "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.