Skip to content

Getting Started: Send Webhooks

This guide is for implementers who want to send webhooks through HookBridge quickly, then monitor and recover deliveries when needed.

  • HookBridge account at app.hookbridge.io
  • Access to the HookBridge Console
  • A destination URL for the system that should receive your webhooks (must be https://)
  1. Open API Keys.
  2. Click Create API Key.
  3. Optionally add a label.
  4. Copy and store the key securely. It is shown only once.

If you already have an API key, you can create additional keys via API:

Terminal window
curl -X POST https://api.hookbridge.io/v1/api-keys \
-H "Authorization: Bearer YOUR_EXISTING_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"label": "backend-service"
}'

Use the returned key as:

Authorization: Bearer wrc_xxxxxxxxxxxxxxxxxxxx
  1. Open Endpoints.
  2. Stay on the Outbound tab.
  3. Click Create Endpoint.
  4. Enter your destination URL and optional description.
  5. Save the endpoint.
  6. Copy the endpoint ID (ep_...) for sending.
  7. Store the signing secret shown on creation.
Terminal window
curl -X POST https://api.hookbridge.io/v1/endpoints \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-app.com/webhooks",
"description": "Production destination"
}'
  1. Open Endpoints and choose your outbound endpoint.
  2. Copy the endpoint ID (ep_...).
  3. Use that endpoint ID in the API request below.
  4. Open Messages to confirm delivery attempts and capture the created message ID.
Terminal window
curl -X POST https://send.hookbridge.io/v1/webhooks/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint_id": "YOUR_ENDPOINT_ID",
"payload": {
"event": "order.created",
"data": {
"order_id": "order_789",
"amount": 9999,
"currency": "usd"
}
},
"idempotency_key": "order-789-created-v1"
}'

Step 4: Verify Delivery and Recover Failures

Section titled “Step 4: Verify Delivery and Recover Failures”
  1. Open Messages to review recent deliveries.
  2. Filter by endpoint or status (succeeded, pending_retry, failed_permanent).
  3. Open message details for attempt history and response information.
  4. For failures, use replay/retry actions from the message workflow.

Use the message_id returned by the send response (for example data.message_id):

Terminal window
# Fetch one message
curl https://api.hookbridge.io/v1/messages/YOUR_MESSAGE_ID \
-H "Authorization: Bearer YOUR_API_KEY"
# Retry immediately
curl -X POST https://api.hookbridge.io/v1/messages/YOUR_MESSAGE_ID/retry-now \
-H "Authorization: Bearer YOUR_API_KEY"
# Replay a message
curl -X POST https://api.hookbridge.io/v1/messages/YOUR_MESSAGE_ID/replay \
-H "Authorization: Bearer YOUR_API_KEY"
Personalize Examples

Enter your credentials to populate code examples throughout the docs.