Voice agentsSystem prompts
Rewrite a system prompt
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"}