Saltar al contenido principal
GET
/
{slug}
/
templates
/
{name}
/
{language}
Detalle de template por name + language
curl --request GET \
  --url https://app.1to1.ai/api/v1/public/{slug}/templates/{name}/{language} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "confirmacion_cita",
    "language": "es_MX",
    "status": "APPROVED",
    "category": "UTILITY",
    "body_text": "<string>",
    "parameters": {
      "body_variables": [
        {
          "index": 1,
          "example": "Ana"
        }
      ],
      "header_parameter": {
        "type": "image",
        "example": "<string>"
      },
      "button_parameters": [
        {
          "index": 0,
          "text": "ver-promo"
        }
      ]
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.1to1ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorizaciones

Authorization
string
header
requerido

API token emitido desde Settings → API Token del dashboard 1TO1 AI. Enviar en header Authorization: Bearer sk_1to1_...

Parámetros de ruta

slug
string
requerido

Slug del business, case-insensitive. Debe coincidir con el business del token.

Ejemplo:

"acme"

name
string
requerido

Nombre del template tal como aparece en el dashboard. Alfanumérico + underscore. Aceptamos cualquier casing — server normaliza a lowercase.

Required string length: 1 - 512
Pattern: ^[a-zA-Z0-9_]+$
Ejemplo:

"confirmacion_cita"

language
string
requerido

Código de idioma Meta: es, es_MX, en_US, pt_BR. Server normaliza a lower_UPPER.

Required string length: 2 - 10
Pattern: ^[a-zA-Z]{2,3}(_[a-zA-Z]{2,3})?$
Ejemplo:

"es_MX"

Respuesta

Detalle del template con parámetros calculados.

data
object
requerido

Template aprobado para usar en envíos y schedules.