In this section

Resources / Help / Integrations

Send events to your server

Add a webhook endpoint, pick its events, test it and read the delivery log.

A webhook endpoint is an address on a server you control. Hubbo sends it a signed request when one of the events you picked happens, for example a new idea or a new NPS response. You can add up to 10 endpoints per account.

Add an endpoint

  1. Open Settings → Integrations and go to Webhooks.
  2. Choose Add endpoint. A panel opens on the right.
  3. Enter the address under Endpoint URL. It must start with https:// and be reachable from the internet.
  4. Tick the events to send. Events with the same first word sit under one line, for example idea.*. Ticking that line turns the whole group on or off, and a dash in its box means only a part of the group is on.
  5. Leave Send events on, or turn it off to save the endpoint paused.
  6. To change how failed deliveries are retried, open Advanced. You can leave it closed: the rule written next to it is the one that is used. More under Set the retry rule below.
  7. Choose Add endpoint.
  8. Copy the signing secret that appears and store it on your server. Hubbo shows it only this once.

The secret is shown once

If you lose the signing secret, open the endpoint menu and choose New signing secret. The old secret stops working immediately, so update your server right after.

Events you can pick

EventSent when
feedback.createdAny new Feedback Hub item arrives: idea, NPS or survey response, comment or conversation.
feedback.updatedAn NPS response or a comment is edited.
idea.createdA new idea is submitted.
idea.updatedYour team edits an idea.
idea.status_changedAn idea moves to another status.
nps.response_createdA visitor answers an NPS survey.
survey.response_createdA visitor answers a survey.
comment.createdSomeone comments on a post, idea or roadmap item.
changelog.publishedA changelog or newsfeed post goes live.
status.incident_updatedA status incident or maintenance is created or updated.
conversation.createdA visitor starts a chat.
conversation.repliedA new message arrives in a chat.

feedback.created covers the same items as idea.created, nps.response_created, survey.response_created, comment.created and conversation.created. Pick it when you want everything in one stream, or pick the specific events. With both ticked, your server receives each item twice.

The endpoint list

Each endpoint is one row: its address, how its deliveries went, and the events it receives as chips on one line. When they do not all fit, the last chip reads "+4 more"; point at it to see the rest. The line under the address, for example "97.8% delivered, 46 deliveries in 30 days", counts everything sent to the endpoint in the last 30 days, test events and deliveries that are still being retried included. The share is rounded down, so 100% means every delivery arrived.

At the end of the row are a switch, which pauses and resumes the endpoint, and the … menu with the rest: Send test, Recent deliveries, Edit, New signing secret and Delete.

Test an endpoint

Open the menu at the end of the row and choose Send test. In the window that opens, pick the event to try: the list has the events this endpoint receives. Under it you see the sample Hubbo will send. It has the same fields as a real event of that kind, filled with made-up data, and is marked "test": true so your server can tell it apart.

Choose Send test in the window. Hubbo sends the sample once, straight away, and opens it in Recent deliveries with the answer of your server: the status, the headers and the body. A test that fails is not retried. A test goes to this endpoint only: Slack, Discord and the other connected tools do not receive it.

The curl tab gives a command a developer can paste into a terminal to send the same sample by hand, for example to a server on their own machine. It is signed like a real delivery and stays valid for five minutes.

When a delivery fails

A delivery counts as delivered when your server answers with a 2xx status within 10 seconds. Otherwise Hubbo tries again by the retry rule of the endpoint. Unless you change the rule, the wait doubles from 1 minute up to 1 hour, and after the eighth attempt, about two hours after the first, the delivery is marked Failed and is not sent again.

Recent deliveries in the same menu lists what was sent to the endpoint, newest first, each with the answer of your server and a state: Delivered, Retrying or Failed. Scroll down the list to load older entries. Entries are kept for 30 days.

Pick an entry to open it. The top shows the event, its state, the address it went to, the delivery id, the number of attempts, the last answer and, while it is still being retried, the time of the next try. Below are three tabs:

  • Request: the headers and the event that was sent, as a tree you can unfold, and the Hubbo-Signature header. Check signature signs the payload again and compares the result with that header. Switch on Change one character of the payload first to see that even the smallest change gives a different signature, which is why your server should reject a request whose signature does not match.
  • Response: what your server answered to the latest attempt: the status, how long it took, the headers and the first 2,000 characters of the body.
  • Attempts: every attempt, oldest first, with its answer, its duration and the wait before the next one.

Resend sends the same event again straight away, also to a paused endpoint. For a delivery that is still being retried it is the next attempt made early. For one that is already Delivered or Failed it is a single attempt: it ends as Delivered or Failed and is not retried. After a resend the Attempts tab opens with the new attempt at the end of the list. Resending needs a plan with integrations. The tabs are shown to team members who can change settings; others see the list only.

Set the retry rule

Advanced in the endpoint panel holds the retry rule. It is closed until you open it, with the rule in short next to it, for example "Exponential, capped, 8 attempts".

SettingWhat it does
BackoffThe wait between two attempts. Linear: 30 minutes every time. Exponential: 1, 2, 4, 8 minutes and so on, doubling every time. Exponential, capped: doubling up to 1 hour, then 1 hour every time.
Maximum attemptsHow many times one delivery is sent, the first time included. From 1 to 12, and 8 unless you change it; with 1 nothing is retried.
Disable afterHow many failed attempts in a row pause the endpoint. From 1 to 100, and 10 unless you change it.

How long Hubbo keeps trying depends on the backoff and on the number of attempts. With 12 attempts the last one goes out 5.5 hours after the first with Linear, about 6 hours with Exponential, capped and about 34 hours with Exponential.

Attempts on a rail under the settings draws a delivery that keeps failing, as if it started now: a dot on the rail and a card with the time for every attempt, and a sentence saying when Hubbo gives up or pauses the endpoint. Open dots, and cards that read "Not sent", are attempts the pause comes before. The drawing changes as you change the settings.

Failures in a row are counted over all events of the endpoint, not for each delivery, so several events that fail at the same time reach the number sooner. The first delivery of an event and its retries count. Test events do not, and neither does a resend of a delivery that had already ended. Any delivery that arrives starts the count again from zero.

Which of the two numbers is reached first decides what happens when your server is down. With Disable after at or below Maximum attempts, one event that keeps failing is enough to pause the endpoint, and its attempts after the pause are not made. With Disable after above Maximum attempts, that event runs out of attempts and is marked Failed while the endpoint stays on; it takes failures of several events in a row to pause it.

When the number is reached, Hubbo pauses the endpoint. Its row reads "Paused after 10 failures in a row", deliveries that were waiting for a retry are marked Failed, and events that happen from then on are not sent. Hubbo does not send an email about it. Once your server works again, turn the switch on the row back on, which also starts the count from zero, and use Resend for the deliveries you still need.

A changed rule also applies to deliveries that are being retried: a retry that is already scheduled keeps its time, and what comes after it follows the new rule.

Pause, edit or delete

  • The switch on the row pauses and resumes deliveries. A paused endpoint is marked Paused. Events that happen during a pause are not sent later.
  • Edit opens the same panel as Add endpoint, filled in with the current address, events, the Send events switch and the retry rule. Nothing changes until you choose Save endpoint; Cancel or closing the panel drops your changes. The signing secret stays the same.
  • Delete removes the endpoint together with its delivery history.

Developers: the request format, the list of fields and a signature check you can copy are in Webhooks.