Skip to content

Get Template by ID

Endpoint used to fetch a template by its ID.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/template/id/{id} \
--header 'Authorization: Bearer {TOKEN_HERE}'
{
"message": "<string>",
"id": "<string>",
"name": "<string>",
"description": "<string>",
"iconId": "<string>",
"templateIcon": {},
"institutionId": "<string>",
"institution": "<any>",
"unityId": "<string>",
"unity": "<any>",
"category": "<string>",
"prompt": "<string>",
"hasInstagram": true,
"hasMessenger": true,
"hasMulti": true,
"hasTools": true,
"hasVoice": true,
"hasWhatsapp": true,
"hasPlugin": true,
"active": true,
"createdAt": "<string>",
"updatedAt": "<string>",
"voiceTemplate": [
"<any>"
],
"voicesTemplateCount": 123,
"pluginTemplate": [
"<any>"
],
"pluginsTemplateCount": 123,
"canCreatePlugins": true
}

ParameterTypeDescription
AuthorizationStringAccess token (“Bearer” must be before the token)
ParameterTypeDescription
unityIdStringUnique unit identifier to filter the templates.

KeyTypeDescription
messageStringStatus message or confirmation of the operation.
templatesArrayList containing the configuration objects for the available Bot templates.
templates[].idUUIDTemplate unique identifier.
templates[].nameStringTemplate name (e.g., “Gastronomic Assistant”).
templates[].descriptionStringDetailed description of the template’s capabilities.
templates[].iconIdUUIDIdentifier of the icon associated with the template.
templates[].templateIconObjectObject containing metadata of the icon image (URL, size, extension).
templates[].institutionIdUUIDIdentifier of the institution that owns the template.
templates[].unityIdUUIDLinked organizational unit identifier.
templates[].categoryStringCategory in which the template is classified.
templates[].promptStringBase System Prompt that defines the bot’s behavior for this template.
templates[].hasInstagramBooleanIndicates if the template supports integration with Instagram.
templates[].hasMessengerBooleanIndicates if the template supports integration with Messenger.
templates[].hasVoiceBooleanIndicates if the template has support for voice interactions.
templates[].hasPluginBooleanIndicates if the template has pre-configured plugins.
templates[].activeBooleanAvailability status of the template in the system.
templates[].voiceTemplateArrayList of predefined voice settings for this template.
templates[].voicesTemplateCountNumberTotal quantity of linked voice models.
templates[].pluginTemplateArrayList of objects with the plugins linked to the template (ID, name, and status).
templates[].pluginsTemplateCountNumberTotal quantity of plugins linked to the template.
templates[].canCreatePluginsBooleanDefines if the user has permission to create new plugins from this template.
categoriesArrayList of available categories for template filtering.
totalCountNumberTotal quantity of templates found in the query.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page