---
# @generated by sylphx-gen. Do not edit.
title: "Raw an inbound email"
description: "`notify.inbound_emails.raw` (GET /v1/{name}:raw): Returns the retained raw MIME of a message as base64 in JSON."
type: reference
product: email
summary: "Returns the retained raw MIME of a message as base64 in JSON."
updated: 2026-09-28
nav: false
---

Returns the retained raw MIME of a message as base64 in JSON. Erased or expired messages have no raw response.

- **Path** `GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/mailboxes/mailbox/inbound_emails/inbound-email:raw`
- **Scope** `notify:read`
- **Effect** `read` — nothing is written.
- **Collection** [inbound_emails](/docs/api/inbound_emails)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The inbound email resource name. Required. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `raw` | `bytes` | The original MIME bytes. Clients should treat the contents as untrusted. Output only. Never returned again. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.
- [`UNAVAILABLE`](/docs/api/errors/UNAVAILABLE) — The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/mailboxes/mailbox/inbound_emails/inbound-email:raw" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.notify.inboundEmails.raw({ name: 'orgs/acme/projects/shop/envs/production/mailboxes/mailbox/inbound_emails/inbound-email' })
```

**Rust**

```rust
let mut req = sylphx::notify::GetInboundEmailRawRequest::default();
req.name = "orgs/acme/projects/shop/envs/production/mailboxes/mailbox/inbound_emails/inbound-email".to_string();
let response = sx.notify().inbound_emails().raw(req).await?;
```

**CLI**

```bash
sylphx notify inbound-emails raw orgs/acme/projects/shop/envs/production/mailboxes/mailbox/inbound_emails/inbound-email
```

**MCP**

```json
{ "method_id": "notify.inbound_emails.raw", "args": {"name":"orgs/acme/projects/shop/envs/production/mailboxes/mailbox/inbound_emails/inbound-email"} }
```
