Outbound Webhooks
Outbound webhooks are HTTPS endpoints you own that Hiveship POSTs to whenever a subscribed workspace event fires, such as an issue being created, a comment updated, or an agent session completed. Pair them with a Personal Access Token: webhooks tell your service when something happened; PATs let it fetch the full entity to act on it. Available on the PRO, TEAM, and ENTERPRISE plans.
Subscribing
- Open Settings → Webhooks in the dashboard (under Developers).
- Click Create webhook. Give it a name, enter the receiver URL (must be HTTPS), pick the events you care about, and save.
- Copy the signing secret immediately. Like PAT plaintext, the secret is shown once. Store it in your secret manager.
- Expand the webhook's row to see its delivery log and check that deliveries reach your service. The first event after creation typically arrives within a second.
Delivery shape
Every delivery is an application/json POST with two signing headers (a timestamp and a signature) and a stable user-agent. Payloads contain entity IDs only. Fetch the full record with your PAT when you need more.
POST https://yourapp.example.com/hooks/hiveshipContent-Type: application/jsonUser-Agent: Hiveship-Webhooks/1.0X-Hiveship-Signature-Timestamp: 1717250000X-Hiveship-Signature: sha256=abcd...64-hex-chars...{ "event": "issue.created", "payload": { "projectId": "clx...", "issueId": "cly...", "parentId": null }, "deliveryId": "clz...", "webhookId": "clw...", "timestamp": "2026-05-17T12:00:00.123Z"}Respond with any 2xx within 10 seconds to acknowledge a delivery. Non-2xx responses, timeouts, and connection errors trigger retries (see below). Hiveship never follows redirects; a 3xx is treated as failure. If your handler does heavy work, push it onto a queue and return 200 immediately rather than holding the connection.
Verifying signatures
The X-Hiveship-Signature header is an HMAC-SHA256 of ${timestamp}.${rawBody} using your webhook's signing secret. The scheme mirrors Stripe: the timestamp prefix binds the signature to a moment in time, which blocks replay attacks.
Reject any request whose timestamp is more than five minutes off the wall clock, even if the signature matches. Without that check, a captured payload can be replayed indefinitely.
import { createHmac, timingSafeEqual } from 'node:crypto';export function verifyHiveshipWebhook( secret: string, rawBody: string, headers: Record<string, string>,): boolean { const ts = Number(headers['x-hiveship-signature-timestamp']); if (!Number.isFinite(ts) || Math.abs(Date.now() / 1000 - ts) > 300) { return false; } const expected = 'sha256=' + createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex'); const got = headers['x-hiveship-signature'] ?? ''; if (got.length !== expected.length) return false; return timingSafeEqual(Buffer.from(got), Buffer.from(expected));}The recipe is the same in every language: HMAC-SHA256 the ${ts}.${body} string with the secret, hex-encode, prefix with sha256=, and compare in constant time against the header.
Capture the raw request body, not the parsed JSON. Re-serializing changes whitespace and key ordering, and the signature won't match. In Express this means a bodyParser.raw() middleware on your webhook route; in Next.js, disable the built-in body parser for the route.
Events
The webhook event vocabulary is a curated subset of Hiveship's internal event stream, limited to high-signal entity changes. The firehose (per-keystroke agent activity) and per-user notifications are deliberately excluded; both would generate too much traffic to be useful in a webhook pipeline.
| Group | Events |
|---|---|
| Issues | issue.created, issue.updated, issue.status_changed, issue.labeled, issue.deleted, issue.pr_linked, issue.pr_unlinked, issue.pr_status_changed, issue.pr_updated, issue.criteria_changed, issue.archived, issue.unarchived |
| Comments | comment.created, comment.updated, comment.deleted |
| Projects | project.created, project.updated, project.deleted, project.update_created, project.status_changed |
| Sprints | sprint.created, sprint.updated, sprint.deleted, sprint.started, sprint.completed |
| Milestones | milestone.created, milestone.updated, milestone.deleted |
| Members | member.added, member.removed, member.role_changed, member.permissions_changed |
| Workflow statuses | workflow_status.created, workflow_status.updated, workflow_status.deleted, workflow_status.reordered |
| Agent sessions | agent_session.created, agent_session.completed, agent_session.errored |
Retries + auto-disable
A delivery that returns non-2xx, times out, or errors at the network layer is retried with exponential backoff. There are five attempts in total, with waits of 10s, 20s, 40s and 80s between them. A delivery that never succeeds is marked DEAD about two and a half minutes after the first attempt, or a little later if attempts run into the 10-second timeout.
Every attempt, retries included, is signed with the webhook's current secret and sent to its current URL. If you rotate the secret while a delivery is retrying, the next attempt is signed with the new one.
After 15 consecutive terminal failures with no successful delivery in between, Hiveship disables the webhook and its row shows an Auto-disabled chip. To turn it back on, click Re-enable on the row; that also clears the failure counter. The threshold is intentional. A dead endpoint costs Hiveship retry budget across the cluster, and the operator who configured it deserves a fast feedback loop.
Rotating the signing secret
Rotate from Settings → Webhooks on the webhook's row. The new secret applies to every delivery attempt from that moment, including retries of events that were queued before you rotated. The new plaintext is shown once in the rotate dialog, so copy it into your secret manager before closing.
A request already on its way to you when you rotate still carries the old signature, and your receiver may not pick up the new secret at the same instant. Accept both the old and new secret for a few minutes after each rotation, then retire the old one.
Verify against both candidates and pass on the first match:
function verifyEitherSecret( secrets: { current: string; previous?: string }, rawBody: string, headers: Record<string, string>,): boolean { if (verifyHiveshipWebhook(secrets.current, rawBody, headers)) return true; if (secrets.previous && verifyHiveshipWebhook(secrets.previous, rawBody, headers)) { return true; } return false;}There is no rotate flow for Personal Access Tokens; revoke and issue a new one. Webhook secrets get the rotation flow because the receiver typically can't be redeployed in lockstep with a new secret; the grace window covers that gap.
Replay
Expand a webhook's row to see its delivery log: the 50 most recent deliveries, whatever their outcome. Deliveries are kept for 30 days. Click Replay on any finished delivery (including DEAD ones) to re-send the original payload. The webhook has to be active: a paused or auto-disabled webhook refuses replays. This is useful for testing receiver changes against real historic traffic, or for catching up after an extended outage.
A replay is signed with the webhook's current secret, not the one that signed the original delivery. If you've rotated since then, verify replays with the new secret.
Best practices
- Verify the signature before any processing. Check it first, and only then log, parse, or queue the delivery.
- Treat deliveries as at-least-once. Retries happen; deduplicate by
deliveryIdon your side if the work isn't idempotent. - Acknowledge fast, process async. Hiveship times out at 10 seconds. Drop the delivery into a queue and return
200immediately if processing takes longer than a quick database write. - Don't gate on
OriginorReferer. Server-to-server deliveries don't carry browser headers. Gate on the signature instead. - One webhook per receiver. If two pipelines need the same event, subscribe two webhooks rather than fanning out on your side. Hiveship's delivery log then tells you which pipeline failed.
Plan + cap
Each workspace can have up to 20 webhooks on PRO and TEAM (paused ones count; auto-disabled ones don't); ENTERPRISE inherits the same per-workspace cap but with the higher PAT rate-limit tier on the receivers that fetch entities. If a workspace moves to FREE, its webhooks stay listed but stop receiving events, and replay is refused. Events that fire while the workspace is on FREE are not queued, so upgrading again doesn't deliver them later.
Live reference
The webhook management endpoints (GET / POST / PATCH / DELETE /api/workspaces/:wId/webhooks, plus replay and rotate-secret) are documented inside the live Swagger UI under the Webhooks tag. Open Swagger UI for the full surface.