Get template by ID

Retrieves a specific template by its ID. Returns template details including name, category, language, status, and definition.

GET
/v3/templates/{id}

Path Parameters

id*string

Template ID from route parameter

Formatuuid

Header Parameters

x-profile-id?string

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Formatuuid

Response Body

Template retrieved successfully

application/json
  1. response

Standard API response envelope for all v3 endpoints

success?boolean

Indicates whether the request was successful

data?|null

The response data (null if error)

error?|null

Error details (null if successful)

meta?

Metadata about the request and response

Example Request
curl -X GET 'https://api.sent.dm/v3/templates/7ba7b820-9dad-11d1-80b4-00c04fd430c8'
Example Response
{  "success": true,  "data": {    "id": "7ba7b820-9dad-11d1-80b4-00c04fd430c8",    "customer_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "name": "Welcome Message",    "category": "MARKETING",    "auto_reply_action": null,    "language": "en_US",    "status": "APPROVED",    "channels": [      "sms",      "whatsapp",      "rcs"    ],    "variables": [      "name",      "company"    ],    "created_at": "2026-10-13T15:32:26.4992695+00:00",    "updated_at": "2026-10-28T15:32:26.4992701+00:00",    "is_published": true  },  "error": null,  "meta": {    "request_id": "req_7X9zKp2jDw",    "timestamp": "2026-11-12T15:32:26.4992705+00:00",    "version": "v3"  }}