Skip to content
Console
On this page

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

FieldTypeWhat it is
namestringExact SecretVersion for the scoped Broker account; no alias is accepted. Required.
endpointstringExact provider endpoint identifier, not a URL. Required.
input_jsonstringOriginal JSON object containing bounded inline images and parameters. Supplied as text so duplicate fields cannot be collapsed before validation. Required. Never returned again.

Response

FieldTypeWhat it is
sku_revisionstringExact revision of the bounded SKU input and reservation schedule.
max_hold_minorint64Minimum whole-cent pre-hold in USD minor units; not an invoice amount.
max_hold_picousdint64The same reservation amount in the Money hold API's pico-USD units.
request_sha256stringSHA-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":"…"}'