---
title: "Evaluate Span"
method: POST
path: "/v1/evaluate/spans/{spanUuid}"
tags: ["Evaluation"]
---

# Evaluate Span

`POST /v1/evaluate/spans/{spanUuid}`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/evaluate/spans/{spanUuid}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/evaluate/spans/:spanUuid/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- EvaluateSpanRequest
  - `metricCollection` string, required: The name of the metric collection to use

## Response `200`

- EvaluateSpanResponse
  - `success` boolean, required: This is true if the span was successfully evaluated.
  - `data` object, required
    - `id` string: This is the id of the span, not to be confused with the UUID of the trace.
  - `deprecated` boolean, required: This is true if this endpoint is deprecated.

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
