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.
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.
httpAuthorizationBearer <clave>id*stringId opaco: un texto que empieza con frv_. Se usa tal como llega; no se arma ni se interpreta.
^frv_[A-Za-z0-9]{23}$OK
application/json- response
data*lint*array<unknown>versions*array<>numbers*array<any>1 <= items <= 1curl -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" } ]}Crear un formulario POST
Úsalo para empezar un formulario de WhatsApp en uno de tus números oficiales, a partir de un modelo: queda como borrador y después le guardas su contenido.
Editar un formulario PUT
Úsalo para guardar el contenido de un borrador de formulario —sus pantallas y preguntas— y ver en la respuesta qué falta corregir antes de publicarlo.