---
# @generated by sylphx-gen. Do not edit.
title: "Download an inbound message"
description: "`notify.inbound_messages.download` (POST /v1/{name}:download): Download retained voicemail bytes with the inbox's tenant/resource permission."
type: reference
product: notifications
summary: "Download retained voicemail bytes with the inbox's tenant/resource permission."
updated: 2026-09-28
nav: false
---

Download retained voicemail bytes with the inbox's tenant/resource permission.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/sms_numbers/sms-number/inbound_messages/inbound-message:download`
- **Scope** `notify:read`
- **Effect** `read` — nothing is written.
- **Collection** [inbound_messages](/docs/api/inbound_messages)

## Request

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

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `mime_type` | `string` | audio/wav. |
| `body` | `bytes` | Audio bytes, base64 in JSON. |

## 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 -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/sms_numbers/sms-number/inbound_messages/inbound-message:download" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**TypeScript**

```ts
const response = await sylphx.notify.inboundMessages.download({ name: 'orgs/acme/projects/shop/envs/production/sms_numbers/sms-number/inbound_messages/inbound-message' })
```

**Rust**

```rust
let mut req = sylphx::notify::DownloadInboundMessageRequest::default();
req.name = "orgs/acme/projects/shop/envs/production/sms_numbers/sms-number/inbound_messages/inbound-message".to_string();
let response = sx.notify().inbound_messages().download(req).await?;
```

**CLI**

```bash
sylphx notify inbound-messages download orgs/acme/projects/shop/envs/production/sms_numbers/sms-number/inbound_messages/inbound-message
```

**MCP**

```json
{ "method_id": "notify.inbound_messages.download", "args": {"name":"orgs/acme/projects/shop/envs/production/sms_numbers/sms-number/inbound_messages/inbound-message"} }
```
