Quote media execution on a secret version
Validates one bounded media input and quotes the minimum Money reservation.
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
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— No valid key or token was presented.PERMISSION_DENIED— The key lacks the method's permission.INVALID_FIELD— A field failed validation.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 describes.
Examples
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":"…"}'