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 agentsSystem prompts

Rewrite a system prompt

POST
/v1/agent-media/prompts/optimize

Rewrite a voice-agent system prompt for clarity and structure. This returns a suggestion only — nothing is saved, and applying it means sending the result back as an agent's systemPrompt.

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

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 POST "https://example.com/v1/agent-media/prompts/optimize" \  -H "Content-Type: application/json" \  -d '{    "prompt": "string"  }'
{  "optimized": "string"}
{  "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"}