Connected Sources
A connected source holds a least-privilege key for its provider. With it, Hookbase:
- registers the webhook in the provider, pointed at the source's ingest URL, and stores the signing secret the provider issues, so there is nothing to copy between dashboards;
- on Pro and Business, recovers missed events: every 15 minutes it asks the provider which events it failed to deliver, and gets them to the source.
Connected sources support Stripe, GitHub and Paddle, on every plan. Recovery is available on Pro and Business.
The Key Each Provider Needs
Hookbase stores the key encrypted and never shows it again. Give it only the permissions below. Full Stripe secret keys, classic GitHub tokens and legacy Paddle keys are refused, because they allow far more than Hookbase needs.
| Provider | Key | Permissions |
|---|---|---|
| Stripe | Restricted key (rk_live_… or rk_test_…) | Webhook Endpoints: Write and Events: Read. Full secret keys (sk_…) are refused. |
| GitHub | Fine-grained personal access token (github_pat_…) | Access to the repository, or the organization, with Webhooks: Read and write. For an organization webhook, it is under Organization permissions. Classic tokens are refused. |
| Paddle | API key (pdl_live_apikey_… or pdl_sdbx_apikey_…) | notification_setting.write and notification.write. Legacy keys are refused. |
A test-mode Stripe key or a Paddle sandbox key connects the source to that environment. The connection shows which one it is.
What Connecting Changes on the Source
Connecting sets these on the source, and they stay fixed while it is connected:
- the signing secret: the one the provider issued for the new webhook;
- signature rejection on, so a request without a valid signature is refused;
- duplicate detection on, by the provider's event id, over 7 days. This keeps an event that arrives both live and through recovery from being processed twice.
A source update that would change the provider, the signing secret, signature rejection or duplicate
detection is refused with 409 SOURCE_CONNECTED. Disconnect the source to change them. Everything
else, such as routes, transforms, rate limits and IP filtering, works as on any source.
Connecting a Source
From the dashboard: when you create a Stripe, GitHub or Paddle source, choose Connect with an API key. For an existing source, open Inbound → Sources and select the plug icon on the source to open its connection page.
From the API:
curl -X PUT https://api.hookbase.app/api/sources/{sourceId}/connection \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"provider": "stripe",
"credential": "rk_test_...",
"events": ["invoice.paid", "customer.subscription.updated"]
}'eventsis optional. Leave it out to subscribe to every event.- For GitHub, also send
githubRepository("owner/repo") orgithubOrganization. - The response carries
warnings. One appears when other webhooks in the provider already deliver to this source: they sign with a different secret, so remove them. Another appears when a Stripe source has an IP allowlist (see Limits).
See the Sources API for every field and error.
Missed-Event Recovery
Every 15 minutes, or sooner while it is catching up, Hookbase checks the provider for events this source should have received:
| Provider | How an event is recovered | When an event counts as missed |
|---|---|---|
| Stripe | Hookbase fetches the event from Stripe and delivers it to the source | 20 minutes after it was created, if the source never received it. Stripe events up to 7 days old are covered. |
| GitHub | Hookbase asks GitHub to redeliver the failed delivery | 10 minutes after the delivery failed. GitHub keeps deliveries for 3 days. |
| Paddle | Hookbase asks Paddle to replay the notification | Once Paddle has stopped retrying it: about 3 days 6 hours in live, 30 minutes in sandbox. |
Recovery covers events from the moment the source was connected, never earlier. A redelivery or replay that still hasn't arrived 30 minutes later is asked for again, up to 3 times, and then marked Gave up.
The connection page shows the next and the last run, what the last run found, already received, recovered, requested and gave up on, and the latest recovered events, each linking to the event it became. A recovered event shows a Recovered badge on its event page.
Run now queues a run within a minute instead of waiting for the next one. It is refused while a run is in progress, when one ran in the last 5 minutes, while recovery is off, and while the key is invalid.
To turn recovery off for a source, switch off Recover missed events on its connection page, or send
PATCH /api/sources/{sourceId}/connection with {"reconcileEnabled": false}.
Updating the Key and Disconnecting
- Update key replaces the stored key. Hookbase checks the new key with the provider first. The webhook stays as it is.
- Disconnect deletes the webhook Hookbase registered in the provider and the stored key. The source keeps its settings and secret. If the provider can't be reached, Hookbase keeps trying to delete the webhook in the background. If the stored key no longer works, the webhook stays in the provider and the reply tells you to delete it there.
- Deleting a connected source also deletes the webhook Hookbase registered.
Statuses
| Status | Meaning |
|---|---|
| Connecting | Hookbase is registering the webhook. |
| Connected | The provider sends events, signed with the secret it issued. |
| Connection error | The last recovery run failed. Live events still arrive. The connection page shows the error. |
| Key invalid | The provider no longer accepts the stored key: it was revoked, expired, or lost a permission. Live events still arrive, but recovery stops until you update the key. |
The connection page also warns when a key expires within 14 days.
Permissions
| Action | Roles | IAM action |
|---|---|---|
| See the connection and its recovered events | Any member | sources:read |
| Connect, update the key, turn recovery on or off | Admin, owner | sources:connect |
| Disconnect | Admin, owner | sources:disconnect |
| Run now | Member, admin, owner | sources:reconcile |
Limits
- Delivery is at least once. Duplicate detection drops an event that arrives twice within 7 days.
- Stripe: recovered events come from inside Hookbase, not from Stripe's addresses, so an IP allowlist on the source blocks them. Remove the allowlist to let recovery deliver them.
- Stripe: recovery covers the events of the Stripe account the key belongs to.
- Stripe: each run recovers up to 25 events, and a run that couldn't finish is followed by another about 2 minutes later.
- GitHub: deliveries older than 3 days are gone from GitHub and can't be recovered.
- A paused source isn't recovered until it is active again.
- An expired or revoked key stops recovery; live events keep arriving.
Tip
Recovery gets events the provider never delivered. To resend events Hookbase already received, for example after fixing a bug in your app, use Range replay on the source (the history icon in Inbound → Sources) instead.