---
title: "Handle Resend email webhooks"
method: POST
path: "/api/webhooks/resend"
tags: ["Webhooks"]
---

# Handle Resend email webhooks

`POST /api/webhooks/resend`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/webhooks/resend`
- Auth: none declared

Receives and processes webhook events from Resend for email tracking

## Request body

- ResendWebhookPayload
  - `type` 'email.sent' | 'email.delivered' | 'email.delivery_delayed' | 'email.complained' | 'email.bounced' | 'email.opened' | 'email.clicked'
  - `created_at` string, date-time
  - `data` object
    - `email_id` string
    - `from` string
    - `to` string[]
    - `subject` string

## Response `200`

Webhook processed successfully

## Other responses

- `400`: Invalid webhook payload
- `401`: Invalid webhook signature
- `409`: Webhook event already processed

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
