---
title: "Preview sampled volume and credit cost per day for a policy"
method: POST
path: "/api/v1/eval-jobs/{id}/sampling-preview"
tags: ["Eval Jobs"]
---

# Preview sampled volume and credit cost per day for a policy

`POST /api/v1/eval-jobs/{id}/sampling-preview`

## Request

- Base URL: `https://dev.noveum.ai`
- URL: `https://dev.noveum.ai/api/v1/eval-jobs/{id}/sampling-preview`
- Auth: API key in cookie `apiKeyCookie` and HTTP bearer

Preview sampled volume and credit cost per day for a policy

## Path parameters

- `id` string, required

## Query parameters

- `organizationId` string
- `organizationSlug` string
- `projectId` string

## Request body

- object
  - `policy` object
    - `version` number, required
    - `sampling` object, required
      - `percent` number, required
      - `boostShare` number
      - `adaptiveShare` number
      - `stratifyBy` string[]
      - `boosts` union[]
        - union
          - object
            - `type` string, required
          - object
            - `type` string, required
          - object
            - `type` string, required
            - `percentile` number
          - object
            - `type` string, required
            - `percentile` number
          - object
            - `type` string, required
            - `key` string, required
            - `op` 'eq' | 'neq' | 'contains' | 'gt' | 'lt', required
            - `value` union, required
              - …
      - `llmPrescreen` object
        - `enabled` boolean, required
    - `tiers` object[], required
      - `name` string, required
      - `scorerIds` string[], required
      - `escalateIf` object
        - `conditions` object[], required
          - `scorerId` string, required
          - `op` 'failed' | 'lt' | 'lte', required
          - `value` number
        - `combinator` 'or' | 'and'
        - `aggregation` 'any_turn' | 'avg'

## Response `200`

Trailing-7-day projection per tier

## Other responses

- `201`: Created
- `400`: No policy to preview
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Eval job not found
- `409`: Conflict
- `422`: Unprocessable entity
- `500`: Internal server error

---

[API](https://skmtc.dev/noveum/apis/noveum-api.md) · [All operations](https://skmtc.dev/noveum/apis/noveum-api/llms.txt) · [OpenAPI document](https://skmtc.dev/noveum/apis/noveum-api/revisions/1745e27f38d0?raw)
