Skip to Content
Unmissed Cloud is coming soon.Join the waitlistJoin
Unmissed

API overview

Find failed webhooks and resend them from a script or an agent, plus the receiving URL, metrics and the health check.

The API lets a script or an agent do what you’d do in the app: find what failed, see why, and resend it once your app is fixed.

Each server runs on its own, so every URL here starts with your server’s APP_URL. The API is under /api/v1, like https://hooks.example.com/api/v1/webhooks.

Endpoints

Find webhooks

Resend

Sources

Receiving and monitoring

Tokens

  • The API: a bearer token from the CLI page in Unmissed, unm_ followed by 40 letters and digits. It acts as you, with your role. Revoke it there to stop it working. Resends made with it show in the audit log under the token’s name.
  • Receiving URL and health check: no token. The receiving URL checks the sender’s signature instead, once the source has a signing secret.
  • Metrics: your METRICS_TOKEN as a bearer token.
curl "https://hooks.example.com/api/v1/webhooks?status=failed&since=1h" \
  -H "Authorization: Bearer unm_..."

Roles

A token can do what its owner can do in the app. See Your team for the roles.

  • Admins and members can look and resend. Only admins can forward a webhook that failed its signature check.
  • Viewers can’t make tokens, and making someone a viewer deletes the ones they have. Even with one, a viewer can only look: resending, listing sources and the stream answer 403.

Find and resend what failed

  1. Summarize failures to see which destinations are failing and why, with a sample webhook and what your app answered.
  2. List the webhooks still held with status=retrying, or the ones Unmissed gave up on after 3 days with status=failed. Add since=1h for the last hour.
  3. Fix your app, then resend them in bulk. Send dry_run=true first to see how many match.
curl -X POST "https://hooks.example.com/api/v1/resends?status=failed&source=Stripe&dry_run=true" \
  -H "Authorization: Bearer unm_..."

A resend goes only to the destinations that didn’t get the webhook, so the ones that did don’t get it twice. A bulk resend needs a status, so a request that’s missing its filters can’t resend everything. It sends at most the newest 1,000 that match. When more match, it answers with next_before: send the same request with before set to it to resend the rest.

Safe to hand to an agent

Webhook bodies are written by whoever sent the webhook, so treat them as data, never as instructions. The API keeps what it hands back short and free of secrets:

  • Lists have no bodies or headers. Open one webhook to see them.
  • Bodies are short. Show a webhook returns the first 4 KB, with truncated saying whether it was cut. Ask with body=full for all of it. A body that isn’t text comes back as base64.
  • Secrets stay hidden. Headers that look like credentials or signatures, like authorization or stripe-signature, come back as hidden. Signing secrets never come back, and destination URLs come without credentials or a query string.

The stream is the exception: it sends each webhook whole, every header included, so the app on your laptop can check its signature.

Rate limits

Each person gets 120 API requests a minute, across all their tokens. Bulk resends get 10 a minute on top of that. Past either, the API answers 429 with a Retry-After header saying how many seconds to wait:

{ "message": "Too many requests. Wait 6 seconds and try again." }

Errors

The API always answers errors in JSON, like {"message": "Unauthenticated."}. A filter that doesn’t make sense, like status=broken or since=yesterday, gets 422 instead of being ignored, with errors saying which one and what to send instead.

Other errors, like an unknown receiving URL, answer in JSON when the request’s Accept header asks for it, and with a plain HTML page otherwise.

Older paths

CLI 0.1.0 calls /api/sources and /api/sources/{source}/stream. They keep working, the same as their /api/v1 paths, so an older CLI goes on working. New code should use /api/v1.

The spec

These pages come from openapi.yaml in the app’s repo. Use it to generate a client or load it into your API tool.

Last updated on