For the complete documentation index, see llms.txt. Any page on this site can be fetched as Markdown by appending .md to its URL.

Voice agentsAgent tests

Accept, dismiss, or restore a suggested test

PATCH
/v1/agent-media/agents/{agentId}/test-suggestions/{sugId}

Set the suggestion's status. Any status may be set, so a dismissed or accepted suggestion goes back to pending the same way. Setting accepted does not create a test; save the suggestion's test with createAgentTest.

Authorization

bearerAuth
AuthorizationBearer <token>

A Tandem bearer token. Requests are scoped to the organization the token belongs to; no organization header is required.

In: header

Path Parameters

agentId*string

The agent's unique ID.

sugId*string

The suggested test's unique ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/agent-media/agents/string/test-suggestions/string" \  -H "Content-Type: application/json" \  -d '{    "status": "pending"  }'
{  "suggestion": {    "sugId": "string",    "agentId": "string",    "title": "string",    "reason": "string",    "evidence": [      {        "conversationId": "string",        "quote": "string"      }    ],    "test": {},    "recId": "string",    "origin": "recommend",    "status": "pending",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}
{  "error": "string",  "message": "string",  "limit": 0,  "length": 0,  "reason": "string"}
{  "error": "string",  "message": "string",  "limit": 0,  "length": 0,  "reason": "string"}
{  "error": "string",  "message": "string",  "limit": 0,  "length": 0,  "reason": "string"}