> ## Documentation Index
> Fetch the complete documentation index at: https://docs.platform.arb.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.



## OpenAPI

````yaml api-reference/emails.yaml post /webhooks/resend
openapi: 3.0.3
info:
  title: emails
  description: >-
    The Emails Service is responsible for sending emails on behalf of other
    services. It also manages and stores all email templates to ensure
    consistent and centralized communication formatting.
  version: 1.0.0
servers:
  - url: https://emails.platform.arb.inc
security: []
tags:
  - name: /
  - name: email
  - name: html
  - name: template
  - name: webhooks
paths:
  /webhooks/resend:
    post:
      tags:
        - webhooks
      summary: Receive Resend webhook events
      description: >-
        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.
      operationId: handleResendWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - type
                - created_at
                - data
              properties:
                type:
                  type: string
                  description: Event type from Resend
                  example: email.delivered
                created_at:
                  type: string
                  format: date-time
                  description: Timestamp when the event occurred
                  example: '2025-08-15T10:30:00Z'
                data:
                  type: object
                  required:
                    - email_id
                    - from
                    - to
                    - subject
                    - created_at
                  properties:
                    email_id:
                      type: string
                      description: Resend email identifier
                      example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    from:
                      type: string
                      format: email
                      description: Sender email address
                      example: support@arb.inc
                    to:
                      type: array
                      description: List of recipient email addresses
                      items:
                        type: string
                        format: email
                      example:
                        - user@example.com
                    subject:
                      type: string
                      description: Email subject line
                      example: Notice of Service - Case 2025-08-00292
                    created_at:
                      type: string
                      format: date-time
                      description: Email creation timestamp
                      example: '2025-08-15T10:25:00Z'
      responses:
        '200':
          description: Webhook event processed successfully
          content:
            text/plain:
              schema:
                type: string
                example: OK

````