Skip to content

API reference

Get a message template

template_get — One template: name, kind, full text, variables, revision.

template_get · Reads saved data

One template: name, kind, full text, variables, revision.

REST GET /api/public/v1/templates/{template_id}
MCP tool template_get
Permission needed view — Owner, Manager, Operator, Viewer
Scope group automation:read
Group Campaigns
Shown up front in profiles Automation

Input

Field Type Required Description
template_id string (uuid) Yes Template id.

Result

Returned in the { data, meta } envelope, without creating a job on X. Lists include next_cursor and has_more.

Example

Call over REST

curl -X GET "https://reach-link-craft.lovable.app/api/public/v1/templates/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $XBUDDY_API_KEY"

Call over MCP

{
  "method": "tools/call",
  "params": {
    "name": "template_get",
    "arguments": {
      "template_id": "00000000-0000-4000-8000-000000000001"
    }
  }
}

Errors you may get

Back to all operations