Ver una plantilla

Sirve para ver una plantilla completa, con su estado, variables y botones, por ejemplo para saber qué valores completar al enviarla.

GET
/templates/{template}

Permiso requerido: conversations:read

Autorización

http
headerAuthorizationBearer <clave>

Parámetros de la ruta

template*integer

Cuerpo de la respuesta

OK

application/json
  1. response
id*integer
name*string
text*string
header*string
footer*string
observation*string
uid*string
category*string
type*|
status*|
language_code*string
upload_session_id*string
header_handle*string
file*string
params*array<any>|
buttons*array<any>|
user_id*integer
device_id*integer
created_at*|
Formatodate-time
recategorized_at*|
Formatodate-time
quick_reply_buttons*array<unknown>
waba_id*string|null
belongs_to_current_device*boolean
curl -X GET "https://example.com/templates/0"
{  "id": 0,  "name": "string",  "text": "string",  "header": "string",  "footer": "string",  "observation": "string",  "uid": "string",  "category": "string",  "type": "text",  "status": "PENDING",  "language_code": "string",  "upload_session_id": "string",  "header_handle": "string",  "file": "string",  "params": [],  "buttons": [],  "user_id": 0,  "device_id": 0,  "created_at": "2019-08-24T14:15:22Z",  "recategorized_at": "2019-08-24T14:15:22Z",  "quick_reply_buttons": [    null  ],  "waba_id": "string",  "belongs_to_current_device": true}