---
title: "Validate both cost and performance accuracy"
method: GET
path: "/simulations/{simulationId}/validate-accuracy"
tags: ["Simulations"]
---

# Validate both cost and performance accuracy

`GET /simulations/{simulationId}/validate-accuracy`

## Request

- Base URL: `https://www.cloudworldmodel.ai/api`
- URL: `https://www.cloudworldmodel.ai/api/simulations/{simulationId}/validate-accuracy`
- Auth: none required

Convenience endpoint that runs both cost and performance accuracy
validations in a single call. Returns a combined result with an
`overallValid` flag that is `true` only if both checks pass.

Requires `read` scope and ownership.

## Path parameters

- `simulationId` string, required

## Response `200`

Combined accuracy validation result

- object
  - `cost` object: Full cost accuracy validation result — same shape as `GET /validate-cost-accuracy`. Check `cost.checked` before trusting `cost.valid`.
    - `valid` boolean
    - `checked` boolean
    - `validations` object[]: Per-resource cost validation results
      - `resource` string
      - `provider` string
      - `serviceFamily` string
      - `size` string
      - `simulatedCost` number: Simulated hourly cost (USD)
      - `benchmarkCost` number: Expected hourly cost from provider benchmark (USD)
      - `deviation` number: Absolute percentage deviation from benchmark
      - `withinThreshold` boolean
      - `source` string
    - `summary` object
      - `total` integer
      - `passed` integer
      - `failed` integer
      - `avgDeviation` number
      - `skippedCount` integer
      - `skippedReasons` string[]
  - `performance` object: Full performance accuracy validation result — same shape as `GET /validate-performance-accuracy`. Check `performance.checked` before trusting `performance.valid`.
    - `valid` boolean
    - `checked` boolean
    - `validations` object[]: Per-resource-metric performance validation results
      - `resource` string
      - `provider` string
      - `serviceFamily` string
      - `size` string
      - `metric` string: The metric that was validated. One of: `max_throughput`, `baseline_latency`, `max_connections`.
      - `simulatedValue` number
      - `benchmarkValue` number
      - `deviation` number: Absolute percentage deviation from benchmark
      - `withinThreshold` boolean
      - `unit` string
      - `source` string
    - `summary` object
      - `total` integer
      - `passed` integer
      - `failed` integer
      - `avgDeviation` number
      - `skippedCount` integer
      - `skippedReasons` string[]
  - `checked` boolean: `true` when at least one of the two sub-validations (cost or performance) found comparable benchmark data and ran a real check. `false` means neither sub-result found matching benchmarks — `overallValid: true` in this state does **not** mean accuracy was verified.
  - `overallValid` boolean: `true` only when both cost and performance `valid` flags are `true`. Only meaningful when `checked` is `true`.
  - `thresholds` object
    - `cost` string
    - `performance` string

## Other responses

- `401`: No credentials provided to an API-key-protected endpoint. The response body includes a machine-readable `apiKeyAuth` block pointing to the key creation endpoint so agents can self-serve an API key without consulting the spec.
- `403`: Access denied
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/cloudworldmodel/apis/cloud-world-model-agent-api.md) · [All operations](https://skmtc.dev/cloudworldmodel/apis/cloud-world-model-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cloudworldmodel/apis/cloud-world-model-agent-api/revisions/ecc3ad1ff07f?raw)
