---
# @generated by sylphx-gen. Do not edit.
title: "Submit media execution on a secret version"
description: "`broker.secret_versions.submit_media_execution` (POST /v1/{name}:submitMediaExecution): Submits one bounded media execution for an exact configured account."
type: reference
product: platform
summary: "Submits one bounded media execution for an exact configured account."
updated: 2026-09-28
nav: false
---

Submits one bounded media execution for an exact configured account. The input is revalidated before Money reserves or claims any funds. A missing acknowledgment is unresolved. Retry only with the original execution key; never replace that key to recover the same execution.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version:submitMediaExecution`
- **Scope** `broker:media:submit`
- **Effect** `write` — a successful call changes state.
- **Collection** [secret_versions](/docs/api/secret_versions)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The exact recovery SecretVersion bound to the Broker account. Required. |
| `execution_key` | `string` | Original durable platform-hold execution key. Required. |
| `endpoint` | `string` | Exact approved supplier endpoint identifier, not a URL. Required. |
| `input_json` | `string` | Original bounded input, encoded as JSON text so duplicates can be refused. Required. Never returned again. |
| `job_create_time` | `timestamp` | Original durable job creation time in RFC 3339, at microsecond precision. Required. |
| `sku_revision` | `string` | Exact SKU revision returned by the preflight quote for this job. Required. |
| `request_sha256` | `string` | Canonical input SHA-256 returned by the preflight quote for this job. Required. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `receipt` | `string` | Opaque supplier request ID, returned only after durable acknowledgment. |
| `hold_uid` | `string` | Money hold UID recorded by the Broker execution fence. This is not permission to claim, settle, or release the hold. Output only. |

## 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.
- [`FAILED_PRECONDITION`](/docs/api/errors/FAILED_PRECONDITION) — A released manifest owns a requested resource field. Change the declaration in the named file and key path, then release.
- [`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:submitMediaExecution" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"endpoint":"…","execution_key":"…","input_json":"…","job_create_time":{},"request_sha256":"…","sku_revision":"…"}'
```

**TypeScript**

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

**Rust**

```rust
let mut req = sylphx::broker::SubmitMediaExecutionRequest::default();
req.endpoint = "…".to_string();
req.execution_key = "…".to_string();
req.input_json = "…".to_string();
req.job_create_time = Some(Default::default());
req.name = "orgs/acme/projects/shop/envs/production/secrets/secret/secret_versions/secret-version".to_string();
req.request_sha256 = "…".to_string();
req.sku_revision = "…".to_string();
let response = sx.broker().secret_versions().submit_media_execution(req).await?;
```

**CLI**

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

**MCP**

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