---
title: "Validate evaluation assertions"
method: POST
path: "/v1/accounts/{account_id}/evaluations:validateAssertions"
tags: ["gateway.openapi_Gateway"]
---

# Validate evaluation assertions

`POST /v1/accounts/{account_id}/evaluations:validateAssertions`

## Path parameters

- `account_id` string, required

## Request body

- GatewayValidateAssertionsBody — Validate the code assertions. Recommended before creating the evaluation.
  - `assertions` GatewayAssertion[], required
    - `assertionType` 'ASSERTION_TYPE_UNSPECIFIED' | 'ASSERTION_TYPE_LLM' | 'ASSERTION_TYPE_CODE', required
    - `llmAssertion` GatewayLLMAssertion
      - `llmEvaluatorPrompt` string
      - `providers` GatewayProvider[], required
        - `id` string
        - `config` object
        - `label` string
      - `prompts` string[], required
      - `evaluateOptions` GatewayEvaluateOptions
        - `maxConcurrency` integer
        - `repeat` integer
        - `delay` integer
    - `codeAssertion` GatewayCodeAssertion
      - `language` string, required
      - `code` string, required
      - `expectedOutput` string
      - `options` CodeAssertionExecutionOptions
        - `timeoutMs` integer
        - `memoryLimitMb` integer
        - `envVars` object
    - `metricName` string

## Response `200`

A successful response.

- GatewayValidateAssertionsResponse
  - `status` string
  - `metricToErrors` object

---

[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)
