---
title: "Ses Event Webhook"
method: POST
path: "/api/ses/event_webhook/receive"
---

# Ses Event Webhook

`POST /api/ses/event_webhook/receive`

Webhook for AWS SES events, which are delivered wrapped in SNS messages.

SNS posts with a `text/plain` content type, so the body is taken raw and
parsed here instead of being declared as a JSON body. The SNS message type
header decides the work: `SubscriptionConfirmation` needs its subscribe URL
fetched to activate the topic, `Notification` carries the SES event itself.

https://docs.aws.amazon.com/sns/latest/dg/sns-message-and-json-formats.html

## Headers

- `x-amz-sns-message-type` string, nullable

## Request body

- string, binary

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/versemedical/apis/fastapi.md) · [All operations](https://skmtc.dev/versemedical/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/versemedical/fastapi/revisions/2fa122a248bb/schema)
