---
# @generated by sylphx-gen. Do not edit.
title: "Quote media execution on a secret version"
description: "`broker.secret_versions.quote_media_execution` (POST /v1/{name}:quoteMediaExecution): Validates one bounded media input and quotes the minimum Money reservation."
type: reference
product: platform
summary: "Validates one bounded media input and quotes the minimum Money reservation."
updated: 2026-09-28
nav: false
---

Validates one bounded media input and quotes the minimum Money reservation. This operation is pure: it reads no credentials, reserves no money and cannot send a supplier request. A quote is not dispatch authority.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version:quoteMediaExecution`
- **Scope** `broker:media:quote`
- **Effect** `read` — nothing is written.
- **Collection** [secret_versions](/docs/api/secret_versions)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Exact SecretVersion for the scoped Broker account; no alias is accepted. Required. |
| `endpoint` | `string` | Exact provider endpoint identifier, not a URL. Required. |
| `input_json` | `string` | Original JSON object containing bounded inline images and parameters. Supplied as text so duplicate fields cannot be collapsed before validation. Required. Never returned again. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `sku_revision` | `string` | Exact revision of the bounded SKU input and reservation schedule. |
| `max_hold_minor` | `int64` | Minimum whole-cent pre-hold in USD minor units; not an invoice amount. |
| `max_hold_picousd` | `int64` | The same reservation amount in the Money hold API's pico-USD units. |
| `request_sha256` | `string` | SHA-256 of the canonical supplier input accepted by this quote. |

## 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.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`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/secrets/secret/secret_versions/secret-version:quoteMediaExecution" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"…","input_json":"…"}'
```

**TypeScript**

```ts
const response = await sylphx.broker.secretVersions.quoteMediaExecution({ endpoint: '…', inputJson: '…', name: 'orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version' })
```

**Rust**

```rust
let mut req = sylphx::broker::QuoteMediaExecutionRequest::default();
req.endpoint = "…".to_string();
req.input_json = "…".to_string();
req.name = "orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version".to_string();
let response = sx.broker().secret_versions().quote_media_execution(req).await?;
```

**CLI**

```bash
sylphx broker secret-versions quote-media-execution orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version
```

**MCP**

```json
{ "method_id": "broker.secret_versions.quote_media_execution", "args": {"endpoint":"…","input_json":"…","name":"orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version"} }
```
