List a template's steps

The steps of one template in order within each tract: action, channel, the wait before it, the condition it sits behind, and its copy.

GEThttps://app.trygtm.com/api/v1/templates/{template}/steps
Scope
read

Path parameters

templatestringrequired
The template's id or exact name.

Request

curl https://app.trygtm.com/api/v1/templates/Logistics%20opener/steps \
  -H "Authorization: Bearer $TRYGTM_API_KEY"

Response

{
  "data": {
    "template": {
      "id": "c1d2e3f4-0a1b-4c2d-8e3f-4a5b6c7d8e9f",
      "name": "Logistics opener",
      "goal": "book_meeting"
    },
    "steps": [
      {
        "position": 1,
        "tract": "campaign-email",
        "action": "send_email",
        "channel": "email",
        "label": "Opener",
        "wait_amount": 0,
        "wait_unit": "days",
        "branch_condition": null,
        "body": null,
        "settings": {}
      }
    ]
  }
}

Was this page helpful?