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

# Handle Resend email events

`POST /webhooks/resend`

## Request

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

Receives webhook events from Resend for email tracking.
Events include: sent, delivered, opened, clicked, bounced, complained.
Configure this URL in Resend dashboard: https://resend.com/webhooks

## Request body

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

## Response `200`

Webhook processed successfully

- object
  - `success` boolean
  - `data` object
    - `message` string

## Other responses

- `400`: Invalid webhook payload
- `401`: Invalid webhook signature
- `409`: Duplicate webhook event

---

[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)
