Skip to content
WhatSync/DocsAPI v1

Inspect a WhatsApp form

Read one WhatsApp form: status, validation errors, a preview_url anyone can open in a browser to try the form (no login, valid about 30 days), Meta's sending blockers such as business verification, and its Flow JSON definition so you can edit a draft.

POST/api/v1/tools/get_whatsapp_formRead
Key permissions
Read chats and messages
Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work

Body parameters

form_idstringrequired

Form ID from list_whatsapp_forms or create_whatsapp_form.

includeDefinitionbooleanoptional

Return the Flow JSON definition; defaults to true

Response

HTTP 200 returns this tool's JSON directly, without an MCP content wrapper. Optional provider fields may be absent or null; check pagination and coverage before treating a page as complete.

Every response includes X-Request-Id. Errors use the shared error format and retry rules.

Schemas

Input JSON Schema
Input JSON Schema
{
  "type": "object",
  "properties": {
    "form_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 30
    },
    "includeDefinition": {
      "type": "boolean",
      "description": "Return the Flow JSON definition; defaults to true"
    }
  },
  "required": [
    "form_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Response JSON Schema
Response JSON Schema
{
  "type": "object",
  "properties": {
    "form_id": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "json_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "validation_errors": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "description": "Provider or tool-specific fields; preserve unknown fields."
      }
    },
    "preview_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "preview_expires_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "meta_can_send": {
      "type": [
        "string",
        "null"
      ]
    },
    "meta_send_blockers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "description": "Provider or tool-specific fields; preserve unknown fields."
      }
    },
    "next_step": {
      "type": "string"
    },
    "definition": {
      "type": "object",
      "additionalProperties": true,
      "description": "Provider or tool-specific fields; preserve unknown fields."
    }
  },
  "required": [],
  "additionalProperties": true
}