---
title: "POST /api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations"
method: POST
path: "/api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations"
---

# POST /api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations

`POST /api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations`

## Path parameters

- `projectUuid` string, required
- `agentUuid` string, required

## Request body

- ApiCreateEvaluationRequest
  - `prompts` CreateEvaluationPrompt[], required
    - union — Represents a prompt for evaluation that can be either: - An object with a prompt string for new prompts - An object referencing an existing prompt and thread by their UUIDs
      - object
        - `expectedResponse` string, nullable, required
        - `prompt` string, required
      - object
        - `expectedResponse` string, nullable, required
        - `threadUuid` string, required
        - `promptUuid` string, required
  - `description` string
  - `title` string, required

## Response `201`

Created

- ApiCreateEvaluationResponse
  - `results` PickAiAgentEvaluationEvalUuid, required — From T, pick a set of properties whose keys are in the union K
    - `evalUuid` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/revisions/40c933755c9a/schema)
