---
title: "Provider-neutral standard.v1 inbound callback into Thrd"
method: POST
path: "inbound_provider_event"
---

# Provider-neutral standard.v1 inbound callback into Thrd

`POST inbound_provider_event` (webhook)

## Payload

- object
  - `schema_version` '1.0', required
  - `recipient` string, email, required
  - `smtp_envelope_sender` string, email, required
  - `message` object, required
    - `message_id` string, required
    - `date` string, date-time, required
    - `from` string, email, required
    - `to` string[], required
    - `cc` string[]
    - `reply_to` string, email
    - `subject` string, required
    - `text` string: UTF-8 text; text plus HTML is limited to 2 MiB decoded.
    - `html` string: Untrusted HTML; sanitized before agent exposure.
    - `in_reply_to` string
    - `references` string[]
    - `headers` object: Untrusted message headers. Authentication facts come only from the signed adapter attestation.
    - `attachments` object[]: Attachment bytes are canonical base64 in ingress only. Agent events expose opaque storage references, never base64.
      - `filename` string, required
      - `mime` string, required
      - `size` integer, required
      - `content_base64` string, required

## Acknowledgement `202`

Accepted for async ingest

- object
  - `ingest_id` string, uuid, required
  - `status` 'accepted', required
  - `idempotent_replay` boolean, required

## Other responses

- `400`: The bounded inbound payload is invalid
- `401`: The signed adapter attestation is missing, invalid, stale or replay-conflicting
- `404`: The attested inbox is not active
- `413`: The request body exceeds the bounded ingress limit
- `415`: The request content type is not supported by this ingress endpoint
- `503`: Ingress is temporarily unavailable and can be retried exactly

---

[API](https://skmtc.dev/thrd/apis/thrd-agent-email-api.md) · [All operations](https://skmtc.dev/thrd/apis/thrd-agent-email-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thrd/apis/thrd-agent-email-api/revisions/d8a88129cd34?raw)
