Saltar al contenido principal
GET
/
v1
/
workflow
/
template
/
{template_id}
Get Flow Template
import requests

url = "https://api.diga.io/v1/workflow/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>",
  "connections": [
    {
      "key": "<string>",
      "name": "<string>",
      "piece_name": "<string>",
      "auth_type": "<string>",
      "description": "<string>"
    }
  ],
  "variables": [
    "<string>"
  ]
}

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 flow templates.

id
string<uuid>
requerido

Template unique identifier

name
string
requerido

Template name

language
string
requerido

Language code (e.g. 'es', 'en')

template
Template · object
requerido

Flow template JSON

description
string | null

Template description

flow_category
enum<string> | null
Opciones disponibles:
post_call,
during_call,
pre_call,
call_launcher,
empty
setup_guide_url
string | null

URL to documentation or setup guide

connections
TemplateConnectionInfo · object[] | null

Connections required by this template

variables
string[]

List of <> placeholders found in the template