Revise a draft
Rewrite an unsent draft from an instruction in plain words and keep the result as the draft. The rewrite follows the copy rules every message does, declined says what it would not do and why, and a request about how every message should read is saved as a workspace lesson later drafts follow. Never sends. A queued or sent message answers 409.
POST
https://app.trygtm.com/api/v1/messages/{message_id}/revise- Scope
write- Cost
- 2 action credits per unit —
ai.message.standard - MCP tool
- revise_draft
Path parameters
message_idstringrequired- The draft's id, from read_conversation.
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
instructionstringrequired- What to change, in the person's own words.
Request
curl -X POST https://app.trygtm.com/api/v1/messages/8f2a91c4-6d1e-4c0a-9a57-2f3b1c7e9d10/revise \
-H "Authorization: Bearer $TRYGTM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"instruction": "…"
}'Response
{
"data": {
"id": "aa11bb22-cc33-4d44-8e55-ff6677889900",
"subject": "your dispatch team",
"body": "saw Northbeam is hiring two dispatchers.\n\nare you still covering the phones yourself while they ramp up?",
"declined": null,
"lesson": {
"kind": "learned",
"id": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
"text": "Never call the note a cold email."
},
"note": "Saved for this workspace: \"Never call the note a cold email.\" New drafts will follow it."
}
}