POST
/
eval
/
audio
# Option 1: Using audio_url
curl --request POST \
 --url "https://api.coval.dev/audio"" \
 --header "Content-Type: application/json" \
 --header "x-api-key: $COVAL_API_KEY" \
 --data '{
"metrics": {
"metric_type_wpm": {},
"metric_type_freq300": {}
},
   "audio_url": "https://storage.vapi.ai/7d6d4c2b-dfab-4712-93c5-43760e9cf110-1738693565686-10f82ff8-efae-421e-8248-42f4ff2e94c9-stereo.wav",
"transcript": []
}'
{
  "message": "'Transcript evaluation launched successfully",
  "evaluation_result": {
    "statusCode": 123,
    "body": "<string>",
    "run_id": "<string>"
  }
}
# Option 1: Using audio_url
curl --request POST \
 --url "https://api.coval.dev/audio"" \
 --header "Content-Type: application/json" \
 --header "x-api-key: $COVAL_API_KEY" \
 --data '{
"metrics": {
"metric_type_wpm": {},
"metric_type_freq300": {}
},
   "audio_url": "https://storage.vapi.ai/7d6d4c2b-dfab-4712-93c5-43760e9cf110-1738693565686-10f82ff8-efae-421e-8248-42f4ff2e94c9-stereo.wav",
"transcript": []
}'
# Option 2: If you want to pass in a Vapi post-call payload, use this
curl --request POST \
--url https://api.coval.dev/eval/transcript \
--header 'Content-Type: application/json' \
--header 'x-api-key: ca0030be-9eea-4c46-90af-fa9166b0ede0' \
--data '{
  "provider": "vapi",
  "payload": {
    "message": {
      "type": "end-of-call-report",
      "artifact": {
        "messages": [],
        "recordingUrl": "https://storage.vapi.ai/7d6d4c2b-dfab-4712-93c5-43760e9cf110-1738693565686-10f82ff8-efae-421e-8248-42f4ff2e94c9-stereo.wav"
      }
    }
  },
  "metrics": {
    "metric_type_ai_delay": {
      "api_key": "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"
    }
  }
}'

Response

200 - application/json
200 response
message
string
evaluation_result
object

Result from evaluation