Launch Week 02 wrapped — explore all five launches

Evaluate Span

POSThttps://api.confident-ai.com/v1/evaluate/spans/{spanUuid}

POST/v1/evaluate/spans/{spanUuid}
curl -X POST "https://api.confident-ai.com/v1/evaluate/spans/{spanUuid}" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "metricCollection": "Collection Name"
}'
200
{
  "success": true,
  "data": {
    "id": "SPAN-ID"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Path parameters

  • spanUuidstringRequired

    The UUID of the span you wish to evaluate.

Request body

  • metricCollectionstringRequired

    The name of the metric collection to use

Response

  • successboolean

    This is true if the span was successfully evaluated.

  • dataobject

    Show 1 propertyHide 1 property
    • idstring

      This is the id of the span, not to be confused with the UUID of the trace.

  • deprecatedboolean

    This is true if this endpoint is deprecated.

Built byConfident AI