Webhooks
On the paid plan, a webhook makes Yellowbird send a signed request to an address you choose when something happens in your account. Use it to feed n8n, Zapier or a server of your own. You can add up to 5 webhooks.
Adding one
Choose Settings → Webhooks, enter an address, pick what to be told about and choose Add webhook. We send a test request first and only save the webhook if your address answers with a success status (2xx). The address must be public, start with https:// and use the standard port. Addresses on Yellowbird or on domains added to it are refused.
Your signing secret is shown once, when you add the webhook or choose New secret. Copy it then.
What we send
- New mail arrives in your Inbox or another folder (
message.received): a message reached your inbox or another folder you can read. - Mail from a new sender waits in Screening (
message.screened): a message is waiting in Screening. - An alias leaks (first unexpected sender) (
alias.leaked): an alias got its first unexpected sender.
Mail from blocked senders sends nothing. Mail sent to an address you share with others sends nothing either, because the webhook belongs to the account that owns the address.
The request is a JSON POST. It names the sender, the alias, the folder, when it arrived and whether it has attachments. It never includes the body or attachments, and it includes the subject only if you tick Subject line under Include data.
{
"id": "evt_…",
"type": "message.received",
"createdAt": 1764700000000,
"data": {
"messageId": 42,
"alias": {
"id": "…",
"address": "shop@yellowbird.email",
"label": "Parcelly"
},
"from": { "name": "Parcelly", "address": "hello@parcelly.com" },
"folder": "inbox",
"receivedAt": 1764700000000,
"hasAttachments": false,
"url": "https://yellowbird.email/inbox"
}
}
Checking the signature
Requests follow the Standard Webhooks scheme, so its libraries work as they are. Each request has webhook-id, webhook-timestamp (seconds) and webhook-signature headers. The signature is v1, followed by the base64 HMAC-SHA256 of id.timestamp.body, keyed with your secret after removing whsec_ and decoding the rest from base64. When a secret is being replaced, the header holds two signatures separated by a space.
import { Webhook } from "standardwebhooks";
const webhook = new Webhook(process.env.YELLOWBIRD_WEBHOOK_SECRET);
const event = webhook.verify(rawBody, {
"webhook-id": headers["webhook-id"],
"webhook-timestamp": headers["webhook-timestamp"],
"webhook-signature": headers["webhook-signature"],
});
from standardwebhooks.webhooks import Webhook
event = Webhook(secret).verify(raw_body, headers)
Check the signature against the raw body before parsing it, and reject old timestamps.
Retries
Answer within 5 seconds with a 2xx status. We don't follow redirects. If a request fails, we try again after 1 minute, 10 minutes, 1 hour, 6 hours and 24 hours, then give up on that event. Use the webhook-id to ignore a repeat.
We don't retry when your address answers with a client error such as 404 or 401 (408 and 429 are retried). If it answers 410 Gone, we switch the webhook off straight away.
If 20 events in a row fail for good, or deliveries have been failing for 3 days, we switch the webhook off and tell you in your inbox and by notification. Turn it back on in Settings → Webhooks once your address works.
Limits
Every request counts against 10,000 attempts a month, retries included, and no single webhook gets more than 500 a day, so a busy one can't use up the others' share. Once they're used up, no more are sent until the month (or day) ends. Settings → Plan & data shows how many you've used.
If your paid plan ends, your webhooks stay saved but stop being called. They start again if you upgrade.
Delivery log
Each webhook keeps its last 20 attempts: when, the status code and how long it took. We never keep what your address answered. Removing a webhook deletes its log.
Rotating the secret
Choose New secret to get a new one. For 24 hours we sign with both, so you can update your server without missing anything.