For the complete documentation index, see llms.txt. This page is also available as Markdown.

POST /v2/evals/monitors

Create Eval Monitor

post

Create a monitor with one reference-free evaluator and bounded sampling.

How to use

Choose one reference-free evaluator and bounded sampling. Read monitor-limits first; save the monitor ID and inspect statistics after representative production runs.

Authentication and permissions

Required permissions: evals.create. Resource and owner access checks also apply.

Prepare request.json

Save the example body below as request.json for the curl sample. Replace example IDs, node keys, and dynamic configuration with values for your organization; these are illustrative, not pre-existing resources.

{
  "project_id": "YOUR_PROJECT_ID",
  "evaluator_id": "00000000-0000-4000-8000-000000000001",
  "sampling_rate": 0.1,
  "max_runs_daily": 100
}
Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Body
project_idstring · min: 1Required
namestring · min: 1 · nullableOptional
evaluator_idstring · uuidRequired
notifications_enabledbooleanOptionalDefault: true
sampling_ratenumber · max: 0.3OptionalDefault: 0.3
max_runs_dailyinteger · min: 1 · max: 1000OptionalDefault: 1000
Responses
201

Successful Response

application/json
post/v2/evals/monitors
curl
curl --fail-with-body -sS \
  "$STACKAI_BASE_URL/v2/evals/monitors" \
  -H "Authorization: Bearer $STACKAI_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @request.json
{
  "response_code": "text",
  "meta": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "data": {
    "monitor_id": "123e4567-e89b-12d3-a456-426614174000",
    "project_id": "text",
    "evaluator_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "enabled": true,
    "sampling_rate": 1,
    "max_runs_daily": 1,
    "created_by": "123e4567-e89b-12d3-a456-426614174000",
    "updated_by": "123e4567-e89b-12d3-a456-426614174000",
    "created_at": "2026-01-01T00:00:00.000Z",
    "updated_at": "2026-01-01T00:00:00.000Z"
  }
}

Last updated

Was this helpful?