---
title: "Stage the exact signed production Penny pilot receipt for review"
method: POST
path: "/webhooks/inbound-email-production-pilot"
tags: ["Webhooks"]
---

# Stage the exact signed production Penny pilot receipt for review

`POST /webhooks/inbound-email-production-pilot`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/webhooks/inbound-email-production-pilot`
- Auth: none required

Available only under the explicit production mail pilot configuration. Validates the provider signature, sender, recipient, subject, legal entity and approved PDF bytes before staging one attachment for Median Labs review. Replays return the same staging disposition.

## Headers

- `X-Twilio-Email-Event-Webhook-Timestamp` string, required
- `X-Twilio-Email-Event-Webhook-Signature` string, required

## Request body `multipart/form-data`

- object
  - `envelope` string, required
  - `headers` string, required
  - `from` string, required
  - `subject` string, required
  - `attachment1` string, binary, required

## Response `200`

One clean attachment durably staged for tenant review

- object
  - `success` true, required
  - `data` object, required
    - `accepted` true, required
    - `staged` true, required
    - `companyId` string, uuid, required
    - `created` 0, required
    - `duplicates` 0 | 1, required
    - `filtered` 0, required

## Other responses

- `400`: The signed multipart body, envelope, message headers, recipient, or attachment metadata is invalid
- `401`: The provider signature headers are missing, invalid, or stale
- `404`: The gated route or exact allowlisted company alias is not available
- `413`: The raw body, a field, an attachment, or the multipart field, file, or part count exceeds its configured limit
- `415`: The body is not raw multipart/form-data or uses a non-identity content encoding
- `422`: An attachment was rejected after malware scanning
- `503`: Inbound intake is temporarily at its bounded concurrency capacity

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/webhooks/inbound-email-production-pilot/post.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
