Prerequisites
- An API key in
SECAPI_API_KEY. curlandwc.
Compare one endpoint
include values, or retries are part of that workflow, measure them as separate rows and report the total as well as the individual request sizes.
Choose the response view deliberately
view=agent and view=compact are not universal schemas. They can omit provenance, freshness, materialization, pagination, or other envelope fields that a default response carries. Before selecting a smaller view, compare the fields your consumer needs in both responses and confirm that the retained shape still supports citations, error handling, and pagination. Read the operation reference before using a smaller view for a user-facing citation or compliance record.
Handle errors and limits
An unsupported parameter or response view is a validation problem, not a reason to silently fall back to a different endpoint. For429, wait for Retry-After; for a 5xx, retain the endpoint, response view, Request-Id, and request size measurement before retrying through your normal bounded policy.
Production notes
- Measure serialized responses after authentication and with production-like filters.
- Store response-size and token telemetry separately from raw payloads when payload retention is sensitive.
- Set budgets around the whole workflow, including pagination and retries, rather than optimizing one request in isolation.
- Keep source identifiers and any provenance fields required by the result before reducing a response shape.
- Treat
payload_bytes / 4as a rough comparison aid when used; it is not a model-specific token bill. Record the tokenizer and model separately when the deployment needs a billable-token estimate.

