Reset an agent's prompt
Put an agent's prompt, display copy and model back to its role's defaults. Guardrails, knowledge and pacing are untouched.
POST
https://app.trygtm.com/api/v1/agents/{preset}/reset- Scope
write- MCP tool
- reset_agent
Path parameters
presetstringrequired- The agent's role, from list_agents: leads, intent, outreach, copy or qa. Pass this or agentId.
leadsintentoutreachcopyqa
Headers
Idempotency-Keystringoptional- A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.
Body
agent_idstringoptional- The agent's id, from list_agents. Pass this or preset.
Request
curl -X POST https://app.trygtm.com/api/v1/agents/copy/reset \
-H "Authorization: Bearer $TRYGTM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"Response
{
"data": {
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"preset": "copy",
"name": "GTM Copy",
"version": 7,
"detail": "The prompt, copy and model are back to the role's defaults."
}
}