Evaluations API
Transcript grading
- Base URL:
https://api.autessa.com - Auth: your API key in the
Authorizationheader, with noBearerprefix. - Guide: Evaluations
- Status: 3 live, 4 in preview. Preview operations are marked.
Grade one transcript
POST/clients/evaluations/grade
Request body
| Field | Type | Required | Description |
|---|---|---|---|
agentInstructions | string | Yes | What the agent was told to do. |
evaluationNotes | string | Optional grading guidance. | |
expectedOutcome | string | Plain-English success criteria; when set, it decides pass/fail. | |
externalId | string | Batch jobs only: your id, unique per company (re-submits return the existing result). | |
turns | array of TranscriptTurn | Yes | The conversation, in order. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
evaluation | AutomatedEvaluation | ||
expectedOutcomeVerdict | ExpectedOutcomeScore | ||
passed | boolean | With 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
externalId | query | string |
Response
| Field | Type | Required | Description |
|---|---|---|---|
item | GradingItemDto |
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
itemId | path | string | Yes |
Response
| Field | Type | Required | Description |
|---|---|---|---|
item | GradingItemDto |
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | ||
pageSize | query | integer |
Response
| Field | Type | Required | Description |
|---|---|---|---|
jobs | array of GradingJobDto | ||
page | integer | ||
pageSize | integer | ||
totalCount | integer |
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
| Field | Type | Required | Description |
|---|---|---|---|
transcripts | array of EvaluateTranscriptRequest | Yes | |
webhookUrl | string | Receives one signed POST when the job finishes. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
items | array of GradingItemDto | ||
job | GradingJobDto | ||
webhookSecret | string | Verifies 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
jobId | path | string | Yes |
Response
| Field | Type | Required | Description |
|---|---|---|---|
job | GradingJobDto |
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
jobId | path | string | Yes | |
status | query | string | ||
page | query | integer | ||
pageSize | query | integer |
Response
| Field | Type | Required | Description |
|---|---|---|---|
items | array of GradingItemDto | ||
page | integer | ||
pageSize | integer | ||
totalCount | integer |
curl -X GET "https://api.autessa.com/clients/evaluations/jobs/V1StGXR8Z5/items" \
-H "Authorization: $AUTESSA_API_KEY"