---
title: "One-click AWS-side setup of SES event tracking (SNS topic + webhook subscription + SESv2 event destination), using the provider's stored credentials."
method: POST
path: "/email-providers/{id}/tracking/setup"
tags: ["Email Providers"]
---

# One-click AWS-side setup of SES event tracking (SNS topic + webhook subscription + SESv2 event destination), using the provider's stored credentials.

`POST /email-providers/{id}/tracking/setup`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/email-providers/{id}/tracking/setup`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Response `200`

Setup completed

- EmailTrackingSetupResponse: Result of the one-click AWS-side event-tracking setup.
  - `event_destination_attached` boolean, required: The SESv2 event destination (bounce/complaint/delivery) is attached to the `temps-tracking` configuration set.
  - `subscription_requested` boolean, required: The webhook subscription was requested; SNS confirms it asynchronously through the webhook itself.
  - `topic_arn` string, required
  - `webhook_url` string, required

## Other responses

- `400`: Provider does not support event tracking
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Provider not found
- `502`: An AWS call failed — the response detail names the failed step

## Changes

- **2026-07-27** `1b060c0a4ba3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/email-providers/:id/tracking/setup/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
