---
title: "Test an eval-node payload"
method: POST
path: "/hub/test-eval"
---

# Test an eval-node payload

`POST /hub/test-eval`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/hub/test-eval`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/docs/hub/test-eval/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `code` string, required: JavaScript expression, as in an eval node
  - `params` object, required: Named params usable in code; values may be JSONPath resolved against lookup
  - `lookup` object: Optional lookup data for resolving $.X references in params values

## Response `200`

The eval result

## Changes

- **2026-11-12** `8730377687f9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/changes/hub/test-eval/post.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-3/revisions/f80cd5f3ac1c?raw)
