---
title: "Preview an evaluation with sample data"
method: POST
path: "/v1/accounts/{account_id}/evaluations/{evaluation_id}:preview"
tags: ["gateway.openapi_Gateway"]
---

# Preview an evaluation with sample data

`POST /v1/accounts/{account_id}/evaluations/{evaluation_id}:preview`

## Path parameters

- `account_id` string, required
- `evaluation_id` string, required

## Request body

- GatewayPreviewEvaluationBody
  - `sampleData` string, required
  - `maxSamples` integer

## Response `200`

A successful response.

- GatewayPreviewEvaluationResponse
  - `results` GatewayPreviewEvaluationResult[]
    - `success` boolean
    - `reason` string
    - `score` number, double — Score (if applicable) Deprecated: Use metrics field instead.
    - `messages` object[]
    - `metrics` object
  - `totalSamples` integer
  - `totalRuntimeMs` string, int64

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/revisions/29a1e4db152c/schema)
