event field (or the X-InboxKit-Event header) to tell them apart.https:// and save it.https:// webhook URL gets no events.| Event | Sent when | data.email.category |
|---|---|---|
email.received | An email arrives in one of your mailboxes | message, reply, auto_reply or bounce |
email.sent | One of your mailboxes sends an email | message or reply |
| Category | Meaning |
|---|---|
message | A new email that does not answer an earlier one |
reply | An answer to an earlier email (it has an In-Reply-To header) |
auto_reply | An automatic answer, such as an out of office reply. Received emails only |
bounce | A notice that an email you sent was not delivered. Received emails only. See Bounces below |
POST request with a JSON body:| Header | Description |
|---|---|
Content-Type | Always application/json. |
User-Agent | Always InboxKit-Webhook/1.0. |
webhook-id | The event's id, the same as id in the body. It stays the same on retries and redeliveries. |
webhook-timestamp | When this attempt was sent, in Unix seconds. |
webhook-signature | One or more signatures, separated by spaces, each in the form v1,<base64>. See Verify the signature. |
X-Webhook-Event and X-InboxKit-Event | The event type, so you can route without parsing the body. |
X-InboxKit-Timestamp | When this attempt was sent, in ISO 8601 UTC. |
X-InboxKit-Signature header that status webhooks use.{
"id": "evt_CFJCJHTBQ3OQT7ERFAIGPAL2LT",
"event": "email.received",
"api_version": "2026-11-01",
"timestamp": "2026-11-20T14:03:12.418Z",
"team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
"team_name": "Example Agency",
"data": {
"mailbox": {
"uid": "fefe5dfd-2f48-4aab-9556-55a67c5ca6d4",
"email": "jordan@example.com",
"platform": "GOOGLE"
},
"metadata": {
"workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
"domain_name": "example.com"
},
"email": {
"id": "eml_CFJCJHTBQ3OQT7ERFAIGPAL2LT",
"provider_message_id": "19a4f2c7d8e1b3a5",
"message_id": "<CAK7d2Lm9QxR4t@mail.example.net>",
"thread_id": "19a4c1e0a3b2c4d5",
"in_reply_to": "<20261119161204.4f2a91@example.com>",
"references": [
"<20261119161204.4f2a91@example.com>"
],
"direction": "inbound",
"category": "reply",
"folder": "inbox",
"labels": [
"INBOX",
"UNREAD",
"CATEGORY_PERSONAL"
],
"subject": "Re: Quick question about your Q1 plans",
"from": {
"email": "alex@example.net",
"name": "Alex Rivera"
},
"to": [
{
"email": "jordan@example.com",
"name": "Jordan Lee"
}
],
"cc": [],
"reply_to": [],
"date": "2026-11-20T14:02:55.000Z",
"occurred_at": "2026-11-20T14:02:57.000Z",
"snippet": "Hi Jordan, Thanks for reaching out. We are choosing a vendor for Q1 right now. Could you send pricing for a team of 12? Best, Alex On Thu, Nov 19, 2026 at 4:12 PM Jordan Lee <jordan@example.com> wrote",
"text_body": "Hi Jordan,\n\nThanks for reaching out. We are choosing a vendor for Q1 right now. Could you send pricing for a team of 12?\n\nBest,\nAlex\n\nOn Thu, Nov 19, 2026 at 4:12 PM Jordan Lee <jordan@example.com> wrote:\n> Hi Alex, do you have a few minutes this week to talk about your Q1 plans?",
"text_body_truncated": false,
"size_bytes": 7342,
"attachments": [],
"is_warmup": false,
"authentication": {
"spf": "pass",
"dkim": "pass",
"dmarc": "pass"
},
"bounce": null
},
"delivery": {
"mode": "realtime",
"detected_at": "2026-11-20T14:03:11.902Z"
}
}
}labels is empty.{
"id": "evt_IFJHR6SYZGXFKCWNBH2CS47FW3",
"event": "email.received",
"api_version": "2026-11-01",
"timestamp": "2026-11-20T15:41:08.733Z",
"team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
"team_name": "Example Agency",
"data": {
"mailbox": {
"uid": "1ff8f8f5-4361-49d7-865d-905c21ac7ffb",
"email": "sam@example.org",
"platform": "MICROSOFT"
},
"metadata": {
"workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
"domain_name": "example.org"
},
"email": {
"id": "eml_IFJHR6SYZGXFKCWNBH2CS47FW3",
"provider_message_id": "AAMkADc3ZTRmLWExYjItNGM5ZC04ZjE2LTI3YTFiYzQ1ZDY3OABGAAAAAAB0x1y2z3",
"message_id": "<PH0PR11MB4852A1B2C3D4E5F6@PH0PR11MB4852.example.net>",
"thread_id": "AAQkADc3ZTRmLWExYjItNGM5ZC04ZjE2LTI3YTFiYzQ1ZDY3OAAQAKx9y8w7v6u5",
"in_reply_to": "<20261120153955.8b1c07@example.org>",
"references": [
"<20261120153955.8b1c07@example.org>"
],
"direction": "inbound",
"category": "auto_reply",
"folder": "inbox",
"labels": [],
"subject": "Automatic reply: Following up on our call",
"from": {
"email": "casey@example.net",
"name": "Casey Morgan"
},
"to": [
{
"email": "sam@example.org",
"name": null
}
],
"cc": [],
"reply_to": [],
"date": "2026-11-20T15:40:59.000Z",
"occurred_at": "2026-11-20T15:41:01.000Z",
"snippet": "Thank you for your email. I am out of the office until December 1 with limited access to email. For anything urgent, please contact help@example.net. Casey Morgan",
"text_body": "Thank you for your email. I am out of the office until December 1 with limited access to email. For anything urgent, please contact help@example.net.\n\nCasey Morgan",
"text_body_truncated": false,
"size_bytes": 4126,
"attachments": [],
"is_warmup": false,
"authentication": {
"spf": "pass",
"dkim": "pass",
"dmarc": "pass"
},
"bounce": null
},
"delivery": {
"mode": "realtime",
"detected_at": "2026-11-20T15:41:07.995Z"
}
}
}{
"id": "evt_OXEDMH2YH3ZSZDAEGUVSGYJF2O",
"event": "email.received",
"api_version": "2026-11-01",
"timestamp": "2026-11-20T09:15:41.207Z",
"team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
"team_name": "Example Agency",
"data": {
"mailbox": {
"uid": "fefe5dfd-2f48-4aab-9556-55a67c5ca6d4",
"email": "jordan@example.com",
"platform": "GOOGLE"
},
"metadata": {
"workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
"domain_name": "example.com"
},
"email": {
"id": "eml_OXEDMH2YH3ZSZDAEGUVSGYJF2O",
"provider_message_id": "19a4b8e2f1c0d9a7",
"message_id": "<6753a1f0.5d2c0a4b.3e7f.0001.GMR@mx.example.net>",
"thread_id": "19a4b8d9c2e1f0a6",
"in_reply_to": "<20261120091502.7c1d3e@example.com>",
"references": [
"<20261120091502.7c1d3e@example.com>"
],
"direction": "inbound",
"category": "bounce",
"folder": "inbox",
"labels": [
"INBOX",
"UNREAD",
"CATEGORY_UPDATES"
],
"subject": "Delivery Status Notification (Failure)",
"from": {
"email": "mailer-daemon@mx.example.net",
"name": "Mail Delivery Subsystem"
},
"to": [
{
"email": "jordan@example.com",
"name": null
}
],
"cc": [],
"reply_to": [],
"date": "2026-11-20T09:15:33.000Z",
"occurred_at": "2026-11-20T09:15:34.000Z",
"snippet": "Address not found Your message wasn't delivered to taylor@example.net because the address couldn't be found, or is unable to receive mail. The response from the remote server was: 550 5.1.1 The email ",
"text_body": "Address not found\n\nYour message wasn't delivered to taylor@example.net because the address couldn't be found, or is unable to receive mail.\n\nThe response from the remote server was:\n550 5.1.1 The email account that you tried to reach does not exist.",
"text_body_truncated": false,
"size_bytes": 9815,
"attachments": [],
"is_warmup": false,
"authentication": {
"spf": "pass",
"dkim": "pass",
"dmarc": "pass"
},
"bounce": {
"type": "hard",
"smtp_code": 550,
"enhanced_code": "5.1.1",
"diagnostic": "The email account that you tried to reach does not exist.",
"reporting_mta": "mx.example.net"
}
},
"delivery": {
"mode": "realtime",
"detected_at": "2026-11-20T09:15:40.664Z"
}
}
}{
"id": "evt_VK53RMEGGDN4M3H3UIGRYFR33C",
"event": "email.sent",
"api_version": "2026-11-01",
"timestamp": "2026-11-20T10:30:06.159Z",
"team_id": "b9238056-337c-4a5d-81e7-aa55b7702ee5",
"team_name": "Example Agency",
"data": {
"mailbox": {
"uid": "fefe5dfd-2f48-4aab-9556-55a67c5ca6d4",
"email": "jordan@example.com",
"platform": "GOOGLE"
},
"metadata": {
"workspace_uid": "4b3c6f98-7868-4040-bc25-ffc763755c1f",
"domain_name": "example.com"
},
"email": {
"id": "eml_VK53RMEGGDN4M3H3UIGRYFR33C",
"provider_message_id": "19a4bd27a6e5f4c3",
"message_id": "<20261120103001.2e9a6f@example.com>",
"thread_id": "19a4bd27a6e5f4c3",
"in_reply_to": null,
"references": [],
"direction": "outbound",
"category": "message",
"folder": "sent",
"labels": [
"SENT"
],
"subject": "A setup overview for your team",
"from": {
"email": "jordan@example.com",
"name": "Jordan Lee"
},
"to": [
{
"email": "riley@example.net",
"name": null
}
],
"cc": [],
"reply_to": [],
"date": "2026-11-20T10:30:01.000Z",
"occurred_at": "2026-11-20T10:30:02.000Z",
"snippet": "Hi Riley, I put together a short overview of how teams like yours set up outreach in a week. It is attached. Would a 15 minute call on Tuesday work? Jordan",
"text_body": "Hi Riley,\n\nI put together a short overview of how teams like yours set up outreach in a week. It is attached.\n\nWould a 15 minute call on Tuesday work?\n\nJordan",
"text_body_truncated": false,
"size_bytes": 58210,
"attachments": [
{
"filename": "setup-overview.pdf",
"content_type": "application/pdf"
}
],
"is_warmup": false,
"authentication": null,
"bounce": null
},
"delivery": {
"mode": "realtime",
"detected_at": "2026-11-20T10:30:05.480Z"
}
}
}null (or [] for lists), never left out. All times are ISO 8601 in UTC with milliseconds.| Field | Type | Description |
|---|---|---|
id | string | The event's id: evt_ followed by 26 letters and digits. The same email always gets the same id, also on retries and redeliveries. Use it to skip duplicates. |
event | string | email.received or email.sent. |
api_version | string | The payload version, currently 2026-11-01. |
timestamp | string | When this attempt was sent. It changes on every retry. |
team_id | string | Your team's uid. |
team_name | string | Your team's name. |
data.mailbox.uid | string | The mailbox's uid, as in the mailbox endpoints. |
data.mailbox.email | string | The mailbox's address. |
data.mailbox.platform | string | GOOGLE, MICROSOFT or AZURE. |
data.metadata.workspace_uid | string | The workspace the mailbox belongs to. |
data.metadata.domain_name | string | The mailbox's domain. |
data.email.id | string | The email's id: eml_ followed by the same 26 characters as the event id. |
data.email.provider_message_id | string | The message's id at Google or Microsoft. |
data.email.message_id | string or null | The Message-ID header, with its angle brackets. null if the email has none. |
data.email.thread_id | string | The Gmail thread id, or the Microsoft conversation id. |
data.email.in_reply_to | string or null | The In-Reply-To header, with its angle brackets. |
data.email.references | array of strings | The References header, one Message-ID per item. |
data.email.direction | string | inbound for email.received, outbound for email.sent. |
data.email.category | string | message, reply, auto_reply or bounce. See Event types. |
data.email.folder | string | Where the email is: inbox, spam, sent or other. |
data.email.labels | array of strings | The Gmail labels, such as INBOX and UNREAD. Always empty for Microsoft mailboxes. |
data.email.subject | string | The subject. Empty if the email has none. |
data.email.from | object | The sender: email (string) and name (string or null). |
data.email.to | array of objects | The recipients, each with email and name. |
data.email.cc | array of objects | The Cc recipients, each with email and name. |
data.email.reply_to | array of objects | The Reply-To addresses, each with email and name. |
data.email.date | string or null | The Date header. null if it is missing or unreadable. |
data.email.occurred_at | string | When Google or Microsoft received or sent the email. |
data.email.snippet | string | The first 200 characters of the text body, with runs of spaces and line breaks shortened to one space. |
data.email.text_body | string | The plain text body, up to 32 KB. |
data.email.text_body_truncated | boolean | true when the body was longer and text_body was cut. |
data.email.size_bytes | integer | The size of the whole email, attachments included. |
data.email.attachments | array of objects | Up to 50 attachments, each with filename (string or null) and content_type. The file contents are never sent. |
data.email.is_warmup | boolean | true for an automated warm-up email. You only get these with Include warm-up emails ticked. |
data.email.authentication | object or null | The SPF, DKIM and DMARC results the receiving side recorded: spf, dkim and dmarc, each pass, fail, softfail, neutral, none, temperror, permerror, policy or unknown. null for email.sent. |
data.email.bounce | object or null | The bounce details when category is bounce, otherwise null. See Bounces. |
data.delivery.mode | string | realtime, recovered or test. recovered means we found the email more than 15 minutes after it arrived or was sent, for example after a mailbox was reconnected. test marks a test event. |
data.delivery.detected_at | string | When we found the email. |
email.received event with data.email.category set to bounce, for the mailbox that received the bounce notice. data.email.bounce then holds the reason:| Field | Type | Description |
|---|---|---|
type | string | hard for a permanent failure (status code 5.x.x, for example the address does not exist), soft for a temporary one (status code 4.x.x, for example a full mailbox). |
smtp_code | integer or null | The SMTP reply code, such as 550. |
enhanced_code | string or null | The enhanced status code, such as 5.1.1. |
diagnostic | string or null | The receiving server's explanation, without the codes, up to 1,000 characters. |
reporting_mta | string or null | The server that reported the failure. |
null when the bounce notice does not include it.in_reply_to or references against the message_id of the emails you sent, when the bounce notice carries them. The address that failed is usually written in text_body.whsec_), remove the whsec_ prefix and base64-decode the rest. That is your key.webhook-id header, a dot, the webhook-timestamp header, a dot, and the raw request body exactly as received: {webhook-id}.{webhook-timestamp}.{body}. Use the raw bytes. Parsing the JSON and encoding it again changes the bytes and the signature will not match.v1, entry in the webhook-signature header. Accept the request if any entry matches.webhook-timestamp is more than 5 minutes away from your server's clock, so an old request cannot be replayed.2xx status within 15 seconds. We do not read the response body.3xx answer counts as a failure, so use the final URL.id of each event you handle and skip ids you have seen.data.email.occurred_at if you need the order the emails happened in.https:// and must point to a public address. Addresses on private networks are refused.2xx, a timeout, or a connection error. The one exception is 410 Gone (see Pausing). Each event gets up to 10 attempts:| Attempt | Sent after the previous attempt |
|---|---|
| 1 | At once |
| 2 | 5 seconds |
| 3 | 5 minutes |
| 4 | 30 minutes |
| 5 | 2 hours |
| 6 | 5 hours |
| 7 | 10 hours |
| 8 | 14 hours |
| 9 | 20 hours |
| 10 | 24 hours |
failed in the delivery log and you can send it again from there.429 or 503 and a Retry-After header, in seconds or as an HTTP date. If it asks for a longer wait than the schedule, we wait that long, up to 24 hours. A shorter Retry-After does not make the retry come sooner.failed in the delivery log instead of being queued. Send them again once your endpoint has recovered.410 Gone. That event is not retried; or"status": "paused" with the reason in paused_reason.skipped, and you can send them again after you resume, as long as they are less than 7 days old.{"enabled": true}.| Status | Meaning |
|---|---|
delivered | Your endpoint answered 2xx. |
retrying | The last attempt failed and another is scheduled (see next_retry_at). |
failed | All attempts failed, your endpoint answered 410, or the event could not be queued. |
skipped | The event was not sent, for example because events were paused. |
id, so if your server already handled it, your duplicate check will skip it. Events can be sent again for 7 days.data.delivery.mode is test, and id starts with evt_TEST;email.received (the default) sends a sample reply, email.sent a sample sent email;00000000-0000-4000-8000-000000000000 and the addresses use example.com and example.net.data.delivery.mode and leave test events out of your real processing.X-Workspace-Id header. They answer 403 only if your team has no open workspace, for example when all of its workspaces are archived or deleted.| Endpoint | What it does |
|---|---|
GET /v1/api/account/webhook/email-events | Get real-time email events settings |
PUT /v1/api/account/webhook/email-events | Update real-time email events settings: turn it on or off, resume, include warm-up emails |
GET /v1/api/account/webhook/email-events/signing-secret | Get the email events signing secret |
POST /v1/api/account/webhook/email-events/signing-secret/rotate | Rotate the email events signing secret |
POST /v1/api/account/webhook/email-events/test | Send a test email event |
GET /v1/api/account/webhook/email-events/deliveries | List email event deliveries |
POST /v1/api/account/webhook/email-events/deliveries/{event_id}/redeliver | Redeliver an email event |
GET /v1/api/account/webhook/email-events/coverage | Get email events coverage: how many mailboxes are covered |