Publish a WhatsApp form
Publish a draft WhatsApp form so it can be sent to customers without the test banner.
- Key permissions
- Read chats and messages + Manage templates
- Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work
How it works
- PERMANENT: Meta never allows a published form to be edited or deleted.
- Only call after the user tried the preview and asked to publish.
- Meta may require a verified business and good message quality.
Body parameters
idempotencyKeystringbody or headerA fresh random UUID for each new action; never build it from dates, names, counters or step numbers, which repeat across runs. Reuse it exactly only to retry the same action.
form_idstringrequiredForm ID from list_whatsapp_forms or create_whatsapp_form.
Conditions and pagination
- Use a unique idempotency key for each intended action. Reuse the same key and exactly the same input on a retry. The body key takes precedence over Idempotency-Key.
Response
The response wraps tool-specific data in result. Save operation_id and inspect get_operation with operationId if the outcome is uncertain. completed means the operation completed; it does not prove message delivery or Meta approval. An uncertain operation returns HTTP 409 with error.operation_id.
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": {
"idempotencyKey": {
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{8,128}$",
"description": "A fresh random UUID for each new action; never build it from dates, names, counters or step numbers, which repeat across runs. Reuse it exactly only to retry the same action."
},
"form_id": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
},
"required": [
"idempotencyKey",
"form_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Response JSON Schema
Response JSON Schema
{
"type": "object",
"properties": {
"operation_id": {
"type": "string",
"format": "uuid"
},
"status": {
"type": "string",
"enum": [
"completed"
]
},
"replayed": {
"type": "boolean"
},
"result": {
"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
},
"note": {
"type": [
"string",
"null"
]
}
},
"required": [
"operation_id",
"status",
"result"
],
"additionalProperties": true
}