📦 Scenario

You're integrating with a fictional email provider called FakeMail. It emits webhooks when new emails arrive, and provides a REST API for fetching those emails. Your job is to implement an email processor application.

The way the webhook works is a little bit special. FakeMail doesn’t provide the email data in the webhook payload. Instead, here’s how it’s intended to work:

✅ Your Task

Implement:

Processing means:


📬 FakeMail API

Note that you have been provided the request schemas, but not the response. This is intentional - we want to see you play around with the API to figure out how it works.

POST /watch