Saltar al contenido principal
GET
/
v1
/
agent
/
template
/
{template_id}
Get agent template
import requests

url = "https://api.diga.io/v1/agent/template/{template_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "language": "<string>",
  "template": {},
  "description": "<string>",
  "setup_guide_url": "<string>",
  "variables": [
    "<string>"
  ],
  "resource_placeholders": [
    {}
  ]
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de ruta

template_id
string<uuid>
requerido

Respuesta

Successful Response

Response model for agent templates.

id
string<uuid>
requerido
name
string
requerido
language
string
requerido
template
Template · object
requerido
description
string | null
setup_guide_url
string | null
variables
string[]

List of <> placeholders found in the template

resource_placeholders
Resource Placeholders · object[] | null

List of resource templates recommended for this agent template