Skip to main content
GET
/
template
Retrieve all Template details
curl --request GET \
  --url https://api.trugen.ai/v1/template \
  --header 'x-api-key: <api-key>'
[
  {
    "config": {
      "maxCallDuration": 5,
      "conversationalContext": "The following is a conversation with a user named `Lisa`."
    },
    "created_at": "2025-10-16T15:09:53.876051Z",
    "id": "d22e4b02-3a47-46f2-b0cd-5420f277eaf9",
    "knowledge_base": null,
    "record": true,
    "template_name": "HR Assistant",
    "template_system_prompt": "You are a helpful AI assistant.",
    "updated_at": "2025-10-16T15:09:53.876051Z"
  }
]

Authorizations

x-api-key
string
header
required

Response

List of 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"