Receive Resend webhook events
curl --request POST \
--url https://emails.platform.arb.inc/webhooks/resend \
--header 'Content-Type: application/json' \
--data '
{
"type": "email.delivered",
"created_at": "2025-08-15T10:30:00Z",
"data": {
"email_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"from": "support@arb.inc",
"to": [
"user@example.com"
],
"subject": "Notice of Service - Case 2025-08-00292",
"created_at": "2025-08-15T10:25:00Z"
}
}
'import requests
url = "https://emails.platform.arb.inc/webhooks/resend"
payload = {
"type": "email.delivered",
"created_at": "2025-08-15T10:30:00Z",
"data": {
"email_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"from": "support@arb.inc",
"to": ["user@example.com"],
"subject": "Notice of Service - Case 2025-08-00292",
"created_at": "2025-08-15T10:25:00Z"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'email.delivered',
created_at: '2025-08-15T10:30:00Z',
data: {
email_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
from: 'support@arb.inc',
to: ['user@example.com'],
subject: 'Notice of Service - Case 2025-08-00292',
created_at: '2025-08-15T10:25:00Z'
}
})
};
fetch('https://emails.platform.arb.inc/webhooks/resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://emails.platform.arb.inc/webhooks/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'email.delivered',
'created_at' => '2025-08-15T10:30:00Z',
'data' => [
'email_id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'from' => 'support@arb.inc',
'to' => [
'user@example.com'
],
'subject' => 'Notice of Service - Case 2025-08-00292',
'created_at' => '2025-08-15T10:25:00Z'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://emails.platform.arb.inc/webhooks/resend"
payload := strings.NewReader("{\n \"type\": \"email.delivered\",\n \"created_at\": \"2025-08-15T10:30:00Z\",\n \"data\": {\n \"email_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"from\": \"support@arb.inc\",\n \"to\": [\n \"user@example.com\"\n ],\n \"subject\": \"Notice of Service - Case 2025-08-00292\",\n \"created_at\": \"2025-08-15T10:25:00Z\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://emails.platform.arb.inc/webhooks/resend")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"email.delivered\",\n \"created_at\": \"2025-08-15T10:30:00Z\",\n \"data\": {\n \"email_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"from\": \"support@arb.inc\",\n \"to\": [\n \"user@example.com\"\n ],\n \"subject\": \"Notice of Service - Case 2025-08-00292\",\n \"created_at\": \"2025-08-15T10:25:00Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://emails.platform.arb.inc/webhooks/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"email.delivered\",\n \"created_at\": \"2025-08-15T10:30:00Z\",\n \"data\": {\n \"email_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"from\": \"support@arb.inc\",\n \"to\": [\n \"user@example.com\"\n ],\n \"subject\": \"Notice of Service - Case 2025-08-00292\",\n \"created_at\": \"2025-08-15T10:25:00Z\"\n }\n}"
response = http.request(request)
puts response.read_body"OK"webhooks
Receive Resend webhook events
Receives real-time email delivery events from Resend via webhook. Updates email tracking records and publishes events to Pub/Sub for delivered, bounced, and sent emails. This endpoint is called directly by Resend’s webhook system.
POST
/
webhooks
/
resend
Receive Resend webhook events
curl --request POST \
--url https://emails.platform.arb.inc/webhooks/resend \
--header 'Content-Type: application/json' \
--data '
{
"type": "email.delivered",
"created_at": "2025-08-15T10:30:00Z",
"data": {
"email_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"from": "support@arb.inc",
"to": [
"user@example.com"
],
"subject": "Notice of Service - Case 2025-08-00292",
"created_at": "2025-08-15T10:25:00Z"
}
}
'import requests
url = "https://emails.platform.arb.inc/webhooks/resend"
payload = {
"type": "email.delivered",
"created_at": "2025-08-15T10:30:00Z",
"data": {
"email_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"from": "support@arb.inc",
"to": ["user@example.com"],
"subject": "Notice of Service - Case 2025-08-00292",
"created_at": "2025-08-15T10:25:00Z"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'email.delivered',
created_at: '2025-08-15T10:30:00Z',
data: {
email_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
from: 'support@arb.inc',
to: ['user@example.com'],
subject: 'Notice of Service - Case 2025-08-00292',
created_at: '2025-08-15T10:25:00Z'
}
})
};
fetch('https://emails.platform.arb.inc/webhooks/resend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://emails.platform.arb.inc/webhooks/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'email.delivered',
'created_at' => '2025-08-15T10:30:00Z',
'data' => [
'email_id' => 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'from' => 'support@arb.inc',
'to' => [
'user@example.com'
],
'subject' => 'Notice of Service - Case 2025-08-00292',
'created_at' => '2025-08-15T10:25:00Z'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://emails.platform.arb.inc/webhooks/resend"
payload := strings.NewReader("{\n \"type\": \"email.delivered\",\n \"created_at\": \"2025-08-15T10:30:00Z\",\n \"data\": {\n \"email_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"from\": \"support@arb.inc\",\n \"to\": [\n \"user@example.com\"\n ],\n \"subject\": \"Notice of Service - Case 2025-08-00292\",\n \"created_at\": \"2025-08-15T10:25:00Z\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://emails.platform.arb.inc/webhooks/resend")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"email.delivered\",\n \"created_at\": \"2025-08-15T10:30:00Z\",\n \"data\": {\n \"email_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"from\": \"support@arb.inc\",\n \"to\": [\n \"user@example.com\"\n ],\n \"subject\": \"Notice of Service - Case 2025-08-00292\",\n \"created_at\": \"2025-08-15T10:25:00Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://emails.platform.arb.inc/webhooks/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"email.delivered\",\n \"created_at\": \"2025-08-15T10:30:00Z\",\n \"data\": {\n \"email_id\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"from\": \"support@arb.inc\",\n \"to\": [\n \"user@example.com\"\n ],\n \"subject\": \"Notice of Service - Case 2025-08-00292\",\n \"created_at\": \"2025-08-15T10:25:00Z\"\n }\n}"
response = http.request(request)
puts response.read_body"OK"Body
application/json
Response
200 - text/plain
Webhook event processed successfully
The response is of type string.
Example:
"OK"
⌘I