Poll for inbound webhooks (CLI fallback)
const url = 'https://api.hookbridge.io/v1/inbound-endpoints/01935abc-def0-7123-4567-890abcdef012/listen?after=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-endpoints/01935abc-def0-7123-4567-890abcdef012/listen?after=01935abc-def0-7123-4567-890abcdef012' \ --header 'Authorization: Bearer <token>'Polling fallback for the CLI tool when a WebSocket connection to the streaming
service is unavailable. Returns inbound messages received after the after
cursor, ordered by UUIDv7 (time-ordered).
Only available for cli-mode endpoints. Returns 400 if the endpoint is
in forward mode.
Up to 50 messages are returned per request. Use next_cursor from the
response meta to paginate through additional messages.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Inbound endpoint identifier (UUIDv7)
Example
01935abc-def0-7123-4567-890abcdef012Query Parameters
Section titled “Query Parameters”Cursor for pagination. Only messages received after this message ID (UUIDv7, time-ordered) are returned. Omit to start from the earliest available message.
Example
01935abc-def0-7123-4567-890abcdef012Responses
Section titled “Responses”Messages retrieved successfully
Response from the CLI polling endpoint. Contains an array of inbound
messages with their full payload and headers. Use next_cursor to
paginate through additional messages.
object
object
Unique inbound message identifier (UUIDv7)
Content-Type of the original inbound payload
HTTP headers from the original inbound request
object
Payload size in bytes
When the inbound message was received
Webhook payload body. JSON payloads are embedded directly as objects.
Non-JSON payloads are base64-encoded strings (check body_encoding
to distinguish). Omitted when the payload fetcher is not configured
or the S3 key is missing.
Present only when body is base64-encoded (non-JSON payloads).
Omitted for JSON payloads. Use this field to determine whether
body is a raw JSON object or a base64-encoded string.
Present only when the payload could not be fetched from storage.
When set, body and body_encoding are omitted.
object
Unique identifier for this request (useful for support)
Cursor for the next page of results. Pass as the after query
parameter to fetch subsequent messages. Null when the response
data array is empty (no messages available after the cursor).
Example
{ "data": [ { "message_id": "01935abc-def0-7123-4567-890abcdef012", "content_type": "application/json", "headers": { "X-Stripe-Signature": "t=1234,v1=abc...", "Content-Type": "application/json" }, "size_bytes": 512, "received_at": "2026-03-20T10:30:00Z", "body": { "type": "checkout.session.completed", "id": "cs_test_abc123" } }, { "message_id": "01935abc-def0-7123-4567-890abcdef099", "content_type": "application/xml", "headers": { "Content-Type": "application/xml" }, "size_bytes": 1024, "received_at": "2026-03-20T10:31:00Z", "body": "PD94bWwgdmVyc2lvbj0iMS4wIj8+...", "body_encoding": "base64" } ], "meta": { "request_id": "req_xyz123", "next_cursor": "01935abc-def0-7123-4567-890abcdef099" }}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" }}Resource not found
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Example
{ "error": { "code": "NOT_FOUND", "message": "Message not found" }, "meta": { "request_id": "req_xyz123" }}Enter your credentials to populate code examples throughout the docs.