Remove a copy lesson

Retire one copy lesson. Messages written afterwards stop following it. Campaign drafts written under it that are still waiting to go are rewritten without it just before they send, each billed as one AI message; drafts written before it was taught, and words a person wrote or edited, are left as they are.

DELETEhttps://app.trygtm.com/api/v1/copy-lessons/{lesson_id}
Scope
write

Path parameters

lesson_idstringrequired
The lesson's id, from list_copy_lessons.

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.

Request

curl -X DELETE https://app.trygtm.com/api/v1/copy-lessons/8f2a91c4-6d1e-4c0a-9a57-2f3b1c7e9d10 \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response

{
  "data": {
    "removed": "5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f",
    "lesson": "Never call the note a cold email."
  }
}

Was this page helpful?