Referencia (endpoints)Formularios

Ver un formulario

Sirve para ver una versión de un formulario con su contenido, lo que falta corregir antes de publicarla, sus versiones y sus números.

GET
/forms/{id}

Permiso requerido: Contactos y conversaciones → Ver

Devuelve una versión de un formulario de tu cuenta con su definición y su detalle. {id} es el id de la versión (el de las filas de GET /forms), no el family_id. Trae además lint (lo que falta corregir antes de publicar), versions (las versiones del formulario) y numbers (los números donde vive). Responde 404 si la versión no existe o no es de tu cuenta.

Autorización

http
headerAuthorizationBearer <clave>

Parámetros de la ruta

id*string

Id opaco: un texto que empieza con frv_. Se usa tal como llega; no se arma ni se interpreta.

Patrón^frv_[A-Za-z0-9]{23}$

Cuerpo de la respuesta

OK

application/json
  1. response
data*
lint*array<unknown>
versions*array<>
numbers*array<any>
Elementos1 <= items <= 1
curl -X GET "https://example.com/forms/frv_Ath9bJ3RpAYPhnX0EfcLtHJ"
{  "data": {    "id": "frv_Ath9bJ3RpAYPhnX0EfcLtHJ",    "family_id": "frm_AyJUGabeXUAk9dbBuWegw4B",    "name": "string",    "label": "string",    "category": "string",    "status": "string",    "version": 0,    "definition": [      null    ],    "fields": [      null    ],    "mapping": [      null    ],    "tag_rules": [      null    ],    "has_endpoint": true,    "first_screen": "string",    "first_screen_dynamic": true,    "lint_errors_count": 0,    "draft_id": "frv_Ath9bJ3RpAYPhnX0EfcLtHJ",    "draft_version": 0,    "sends": 0,    "responses": 0,    "meta_flow_id": "string",    "flow_json": [      null    ],    "validation_errors": [      null    ],    "published_at": "string",    "updated_at": "string"  },  "lint": [    null  ],  "versions": [    {      "id": "frv_Ath9bJ3RpAYPhnX0EfcLtHJ",      "user_id": "usr_AdaVCroxOubVJxQ0exvtano",      "workspace_id": 0,      "phone_number_id": "string",      "family_id": "frm_AyJUGabeXUAk9dbBuWegw4B",      "name": "string",      "category": "string",      "status": "string",      "version": 0,      "parent_flow_id": "frv_Ath9bJ3RpAYPhnX0EfcLtHJ",      "definition": [        null      ],      "flow_json": [        null      ],      "flow_json_hash": "string",      "fields": [        null      ],      "mapping": [        null      ],      "tag_rules": [        null      ],      "has_endpoint": true,      "first_screen": "string",      "first_screen_dynamic": true,      "meta_flow_id": "string",      "validation_errors": [        null      ],      "lint_errors_count": 0,      "retained_reason": "string",      "published_at": "2019-08-24T14:15:22Z",      "deprecated_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "deleted_at": "2019-08-24T14:15:22Z",      "actor_user_id": "usr_AdaVCroxOubVJxQ0exvtano"    }  ],  "numbers": [    {      "device_id": null,      "primary": true,      "status": "string",      "error": "string"    }  ]}

Esto es lo que se copia para tu IA

Cargando…