Skip to main content
GET
/
template
/
{id}
Retrieve a Template details by ID
curl --request GET \
  --url https://api.trugen.ai/v1/template/{id} \
  --header 'x-api-key: <api-key>'
{
  "id": "ff152cd9-efb6-4367-ae34-917f7c735f1d",
  "template_name": "Default Calling Template",
  "template_system_prompt": "You are a helpful AI assistant.",
  "config": {
    "maxCallDuration": 900,
    "conversationalContext": ""
  },
  "record": true,
  "created_at": "2025-12-03T10:15:30.000Z",
  "updated_at": "2025-12-03T12:00:00.000Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

Unique identifier for the template

Response

Template details retrieved successfully

id
string<uuid>

Unique identifier for the template

Example:

"ff152cd9-efb6-4367-ae34-917f7c735f1d"

template_name
string

Name of the template

Example:

"Default Calling Template"

template_system_prompt
string

System prompt text used by the template

Example:

"You are a helpful AI assistant."

config
object

Settings and configuration for the template

record
boolean

Whether the call should be recorded

Example:

true

created_at
string<date-time>

Timestamp when the template was created

Example:

"2025-12-03T10:15:30.000Z"

updated_at
string<date-time>

Timestamp when the template was last updated

Example:

"2025-12-03T12:00:00.000Z"