Skip to main content

Evaluations API

Transcript grading

  • Base URL: https://api.autessa.com
  • Auth: your API key in the Authorization header, with no Bearer prefix.
  • Guide: Evaluations
  • Status: 3 live, 4 in preview. Preview operations are marked.

Grade one transcript​

POST/clients/evaluations/grade

Request body

FieldTypeRequiredDescription
agentInstructionsstringYesWhat the agent was told to do.
evaluationNotesstringOptional grading guidance.
expectedOutcomestringPlain-English success criteria; when set, it decides pass/fail.
externalIdstringBatch jobs only: your id, unique per company (re-submits return the existing result).
turnsarray of TranscriptTurnYesThe conversation, in order.

Response

FieldTypeRequiredDescription
evaluationAutomatedEvaluation
expectedOutcomeVerdictExpectedOutcomeScore
passedbooleanWith an expected outcome: MET. Otherwise: status SUCCESSFUL or SUCCESSFUL_NOT_EFFICIENT.
curl -X POST "https://api.autessa.com/clients/evaluations/grade" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agentInstructions":"You help customers check order status.","turns":[{"content":"Where is my order?"}]}'

Get a graded item by your externalId​

GET/clients/evaluations/items

Parameters

NameInTypeRequiredDescription
externalIdquerystring

Response

FieldTypeRequiredDescription
itemGradingItemDto
curl -X GET "https://api.autessa.com/clients/evaluations/items" \
-H "Authorization: $AUTESSA_API_KEY"

Get one graded item​

GET/clients/evaluations/items/{itemId}

Parameters

NameInTypeRequiredDescription
itemIdpathstringYes

Response

FieldTypeRequiredDescription
itemGradingItemDto
curl -X GET "https://api.autessa.com/clients/evaluations/items/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

List grading jobs​

Preview GET/clients/evaluations/jobs

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
pagequeryinteger
pageSizequeryinteger

Response

FieldTypeRequiredDescription
jobsarray of GradingJobDto
pageinteger
pageSizeinteger
totalCountinteger
curl -X GET "https://api.autessa.com/clients/evaluations/jobs" \
-H "Authorization: $AUTESSA_API_KEY"

Grade a batch in the background​

Preview POST/clients/evaluations/jobs

This operation is in preview. Its shape may change before it is generally available.

Request body

FieldTypeRequiredDescription
transcriptsarray of EvaluateTranscriptRequestYes
webhookUrlstringReceives one signed POST when the job finishes.

Response

FieldTypeRequiredDescription
itemsarray of GradingItemDto
jobGradingJobDto
webhookSecretstringVerifies the completion webhook. Returned only here.
curl -X POST "https://api.autessa.com/clients/evaluations/jobs" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"transcripts":[{"agentInstructions":"You help customers check order status.","turns":[]}]}'

Get a grading job​

Preview GET/clients/evaluations/jobs/{jobId}

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
jobIdpathstringYes

Response

FieldTypeRequiredDescription
jobGradingJobDto
curl -X GET "https://api.autessa.com/clients/evaluations/jobs/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

List a job's graded items​

Preview GET/clients/evaluations/jobs/{jobId}/items

This operation is in preview. Its shape may change before it is generally available.

Parameters

NameInTypeRequiredDescription
jobIdpathstringYes
statusquerystring
pagequeryinteger
pageSizequeryinteger

Response

FieldTypeRequiredDescription
itemsarray of GradingItemDto
pageinteger
pageSizeinteger
totalCountinteger
curl -X GET "https://api.autessa.com/clients/evaluations/jobs/V1StGXR8Z5/items" \
-H "Authorization: $AUTESSA_API_KEY"