Skip to content

API schemas: V

Type: object

  • name (string, required)
  • coverage (ValuationCoverage, required)
  • known_amount_usd (string or null, required) — Exact decimal USD string; known estimates only. Null is unknown, never zero.

Type: object

  • events (integer, required, min 0)
  • known (integer, required, min 0)
  • partial (integer, required, min 0)
  • unknown (integer, required, min 0)
  • unvalued (integer, required, min 0)

Type: UsageEvent and object

  • All of (1): UsageEvent
  • All of (2): object
    • event_id (string, required) — Internal idempotency identifier independent of caller request ID; empty on legacy rows
    • state (string, required, one of "known", "partial", "unknown", "unvalued")
    • reason (string, required)
    • amount_usd (string or null, required)
    • input_amount_usd (string or null)
    • output_amount_usd (string or null)
    • rate_snapshot_id (string or null, required)
    • rate (UsageRateSnapshot)
    • budget_charge (BudgetCharge)
    • charge_lines (array of UsageChargeLine, max items 100) — attempt_charge_lines (T160.002): one line per provider send of a request that made more than one, in send order; the last is final. Omitted for one send or with the flag off. The request is known at the sum of its lines when every line is known, partial (attempt_unknown) when only an earlier send is unknown. Lines add to spend, never to request counts.

Type: object

  • time (string (date-time), required)
  • coverage (ValuationCoverage, required)
  • known_amount_usd (string or null, required) — Exact decimal USD string; known estimates only. Null is unknown, never zero.

Type: object

  • per_request (object) — cost_request_insights (T186.010 follow-up): the known cost of one request of the selection. Each percentile is an actual request’s amount; the mean is rounded to 12 decimals; unknown and partial requests are left out and counted in unpriced. Every amount is null when no request has a known cost. Omitted with the flag off.
    • priced (integer, required, min 0)
    • unpriced (integer, required, min 0)
    • p50_usd (string or null, required)
    • p95_usd (string or null, required)
    • p99_usd (string or null, required)
    • max_usd (string or null, required)
    • avg_usd (string or null, required)
  • per_request_unavailable (boolean) — cost_request_insights: true when per_request and most_expensive ran past their own 2 s limit on this selection and were left out; the rest of the report is complete
  • most_expensive (array of object, max items 50) — cost_request_insights: the costliest requests with a known cost, largest first (ties newest first), top_requests of them. Omitted with the flag off.
    • request_id (string, required)
    • trace_id (string, required) — Opens the trace on the Traces screen; empty when the request recorded none
    • at (string (date-time), required)
    • team (string, required)
    • key_id (string, required)
    • model (string, required)
    • provider (string, required)
    • operation (string, required)
    • origin (string, required) — app for a request without one
    • amount_usd (string, required)
    • input_tokens (integer or null, required)
    • output_tokens (integer or null, required)
  • display_currency (FXDisplay) — T168 fx_display. How the known amount is displayed; every *_usd field is unchanged.
  • known_amount_display (string) — T168 fx_display. known_amount_usd converted to display_currency.currency when its status is ok, labelled by its rate_date.
  • tag_dimension (string) — Optional requested historical tag name
  • by_tag (array of ValuationBreakdown, max items 20)
  • currency ("USD", required)
  • unit ("estimated_text_token_cost", required)
  • coverage (ValuationCoverage, required)
  • known_amount_usd (string or null, required)
  • items (array of ValuationEvent, required, max items 50)
  • has_more (boolean, required)
  • next_offset (integer, required, min 0)
  • bucket_seconds (integer, one of 3600, 86400) — UTC buckets; hourly through 7 days, daily above. Missing buckets contain no persisted events.
  • dimension_limit (20)
  • truncated_dimensions (array of string) — Dimensions with additional groups beyond the returned top 20, ranked by persisted request count.
  • timeline (array of ValuationPoint, max items 2161)
  • by_model (array of ValuationBreakdown, max items 20)
  • by_provider (array of ValuationBreakdown, max items 20)
  • by_origin (array of ValuationBreakdown, max items 7) — evaluation_tracing (T186.004): the spend of the selection by origin, so evaluation, experiment, playground and helper spend are their own lines beside the application’s. A row with no origin is app. Omitted with the flag off, or for a team whose plan lacks it.
  • by_helper_kind (array of ValuationBreakdown, max items 21) — evaluation_tracing (T186.004 S3b): the helper spend by sub-kind, each feature’s own line billed to the team and organization that caused it. Omitted with the flag off.
  • by_team (array of ValuationBreakdown, max items 20)
  • budget_charge (BudgetChargeSummary)

Type: object

  • type (string, required, one of "auto", "static")
  • static (object)
    • max_chunk_size_tokens (integer, required, min 100, max 4096)
    • chunk_overlap_tokens (integer, required, min 0) — At most half of max_chunk_size_tokens

Type: object or object or object or object or object or object

  • One of (1): object
    • key ("vector_stores.max_stores_per_team", required)
    • group ("vector_stores", required)
    • kind ("vector_integer", required)
    • default ("20", required)
    • minimum ("1", required)
    • maximum ("1000", required)
    • zero_is_default (true, required)
    • validation_feature ("vector_stores", required)
    • maximum_from (null, required)
    • maximum_divisor (null, required)
    • maximum_exclusive (null, required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (true, required)
    • yaml_requires_restart (true, required)
  • One of (2): object
    • key ("vector_stores.max_documents", required)
    • group ("vector_stores", required)
    • kind ("vector_integer", required)
    • default ("1000", required)
    • minimum ("1", required)
    • maximum ("100000", required)
    • zero_is_default (true, required)
    • validation_feature ("vector_stores", required)
    • maximum_from (null, required)
    • maximum_divisor (null, required)
    • maximum_exclusive (null, required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (true, required)
    • yaml_requires_restart (true, required)
  • One of (3): object
    • key ("vector_stores.max_bytes", required)
    • group ("vector_stores", required)
    • kind ("vector_integer", required)
    • default ("52428800", required)
    • minimum ("1", required)
    • maximum ("1073741824", required)
    • zero_is_default (true, required)
    • validation_feature ("vector_stores", required)
    • maximum_from (null, required)
    • maximum_divisor (null, required)
    • maximum_exclusive (null, required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (true, required)
    • yaml_requires_restart (true, required)
  • One of (4): object
    • key ("vector_stores.max_chunks", required)
    • group ("vector_stores", required)
    • kind ("vector_integer", required)
    • default ("5000", required)
    • minimum ("1", required)
    • maximum ("50000", required)
    • zero_is_default (true, required)
    • validation_feature ("vector_stores", required)
    • maximum_from (null, required)
    • maximum_divisor (null, required)
    • maximum_exclusive (null, required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (true, required)
    • yaml_requires_restart (true, required)
  • One of (5): object
    • key ("vector_stores.chunk_chars", required)
    • group ("vector_stores", required)
    • kind ("vector_integer", required)
    • default ("1000", required)
    • minimum ("200", required)
    • maximum ("8000", required)
    • zero_is_default (true, required)
    • validation_feature ("vector_stores", required)
    • maximum_from (null, required)
    • maximum_divisor (null, required)
    • maximum_exclusive (null, required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (true, required)
    • yaml_requires_restart (true, required)
  • One of (6): object
    • key ("vector_stores.chunk_overlap", required)
    • group ("vector_stores", required)
    • kind ("vector_integer", required)
    • default ("150", required)
    • minimum ("1", required)
    • maximum ("3999", required)
    • zero_is_default (true, required)
    • validation_feature ("vector_stores", required)
    • maximum_from ("vector_stores.chunk_chars", required)
    • maximum_divisor (2, required)
    • maximum_exclusive (true, required)
    • sources (array of string, required, min items 2, max items 2)
    • restart_required (true, required)
    • yaml_requires_restart (true, required)

Type: object

One vector_stores.stores[] entry under the YAML names (team, shared_with, embedding_model) with its usage counters and where it came from.

  • id (string, required)
  • team (string, required)
  • name (string, required)
  • embedding_model (string, required)
  • dimensions (integer)
  • shared_with (array of string, required)
  • source (string, required, one of "api", "console", "config")
  • created_by (string, required)
  • document_count (integer, required)
  • bytes (integer (int64), required)
  • chunk_count (integer, required)
  • version (integer (int64), required)
  • created_at (string (date-time), required)

Type: object

  • id (string, required)
  • object (string, required, one of "vector_store.document")
  • vector_store_id (string, required)
  • title (string, required)
  • usage_bytes (integer, required)
  • chunk_count (integer, required)
  • attributes (object)
  • created_at (integer (int64), required)
  • status (string, one of "completed")
  • file_id (string) — Set when the document came from an attached file

Type: object

  • id (string) — The file ID
  • object ("vector_store.file")
  • vector_store_id (string)
  • usage_bytes (integer)
  • created_at (integer)
  • status ("completed")
  • last_error (null)
  • attributes (object)
  • chunking_strategy (object)
    • type ("static")
    • static (object)
      • max_chunk_size_tokens (integer)
      • chunk_overlap_tokens (integer)

Type: object

  • id (string)
  • object ("vector_store.files_batch")
  • vector_store_id (string)
  • status ("completed")
  • created_at (integer)
  • file_counts (object)
    • in_progress (integer)
    • completed (integer)
    • failed (integer)
    • cancelled (integer)
    • total (integer)

Type: object

  • id (string, required)
  • object (string, required, one of "vector_store")
  • name (string, required)
  • created_at (integer (int64), required)
  • status (string, required, one of "completed")
  • usage_bytes (integer (int64), required)
  • metadata (object)
  • file_counts (object, required)
    • in_progress (integer)
    • completed (integer)
    • failed (integer)
    • cancelled (integer)
    • total (integer)
  • embedding_model (string, required)
  • chunk_count (integer)
  • source (string, one of "api", "console", "config")
  • access (string, required, one of "owner", "shared")
  • team (string) — Owner only
  • shared_with (array of string) — Owner only

Type: object

The effective vector_stores block of the YAML (defaults applied), read-only: the limits every store is checked against inside the ingest transaction and the alias that turns PDF and image files into text. Boot settings: a change needs a restart.

  • max_stores_per_team (integer, required)
  • max_documents (integer, required)
  • max_bytes (integer (int64), required)
  • max_chunks (integer, required)
  • chunk_chars (integer, required)
  • chunk_overlap (integer, required)
  • ocr_model (string, required) — Alias used for OCR (ADR 0101); empty refuses PDF and image files.

m7gtwcontact@m7gtw.com