whatsapp::calls::reject
- call_creatorstringrequired
- call_idstringrequired
- peerstringrequired
- session_idstringrequired
- requestedbooleanrequired
The signaling stanza was sent; no remote acknowledgement is provided.
Native whatsmeow sessions and official Meta Cloud API messaging in one Go worker; no Node or browser runtime.
iii call compose::add worker=whatsapp@0.3.0Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
The signaling stanza was sent; no remote acknowledgement is provided.
Keeps an original sender's namespace, including LID, for message operations.
Keeps an original sender's namespace, including LID, for message operations.
Keeps an original sender's namespace, including LID, for message operations.
Keeps an original sender's namespace, including LID, for message operations.
Keeps an original sender's namespace, including LID, for message operations.
Graph accepted the request; delivery is reported separately by webhook.
Numeric Meta media ID as a string to preserve precision; encoded as an integer in the Meta request.
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Flow data API version
Data exchange endpoint URL
Flow JSON version
Flow name
Meta Flow lifecycle status
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Flow data API version
Data exchange endpoint URL
Flow JSON version
Flow name
Meta Flow lifecycle status
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Meta operation result. False with validation_errors requires correcting the Flow JSON before publishing.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Graph accepted the request; delivery is reported separately by webhook.
Opaque official Cloud group ID, without group: prefix or native JID.
Graph accepted the request; delivery is reported separately by webhook.
Opaque official Cloud group ID, without group: prefix or native JID.
Graph accepted the request; delivery is reported separately by webhook.
Opaque official Cloud group ID, without group: prefix or native JID.
Graph accepted the request; delivery is reported separately by webhook.
Opaque official Cloud group ID, without group: prefix or native JID.
Graph accepted the request; delivery is reported separately by webhook.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Opaque official Cloud group ID, without group: prefix or native JID.
Meta media ID. Never a URL, native media key or host file path.
Meta media ID. Never a URL, native media key or host file path.
Meta media ID. Never a URL, native media key or host file path.
Meta media ID. Never a URL, native media key or host file path.
SHA-256 digest as lowercase hexadecimal.
Meta media ID. Never a URL, native media key or host file path.
Meta media ID. Never a URL, native media key or host file path.
SHA-256 digest as lowercase hexadecimal.
A matching file extension, without paths or controls. Markdown is not supported.
Exact supported MIME; audio/ogg or audio/ogg; codecs=opus requires mono Opus.
Meta media ID. Never a URL, native media key or host file path.
Standard padded base64, no data URL. Decoded bytes must fit max_media_bytes (default 16 MiB; configurable to 64 MiB) and the conservative 100,000,000-byte Cloud ceiling. No automatic conversion.
Display filename with supported extension; maximum 255 UTF-8 bytes (worker policy), without paths or control characters. Markdown is not supported; choose TXT or PDF explicitly.
Official document MIME type: text/plain, application/pdf, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, or the corresponding Office Open XML MIME. Must match filename extension and content. text/markdown is rejected with an explicit alternative.
Number of decoded file bytes uploaded.
Display filename with supported extension; maximum 255 UTF-8 bytes (worker policy), without paths or control characters. Markdown is not supported; choose TXT or PDF explicitly.
Meta media ID from upload_document, valid for 30 days unless deleted. Reuse without uploading bytes again. Numeric IDs are strings; 128-character bound is worker policy.
A matching file extension, without paths or controls. Markdown is not supported.
Meta media ID. Never a URL, native media key or host file path.
Newest first. A cursor loads older locally retained messages.
Original incoming Meta message ID, without whitespace or control characters.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or business-scoped user ID; native JIDs are rejected.
Meta media ID. Never a URL, native media key or host file path.
Optional expected recipient identity key hash.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Graph accepted the request; delivery is reported separately by webhook.
Optional card text; at most two line breaks.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Graph accepted the request; delivery is reported separately by webhook.
Catalog SKU/content ID; 256-character worker limit.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
HTTP(S) display URL; never fetched by the worker.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
HTTP(S) destination opened by the recipient; never fetched by the worker.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Restricted utility-only business-named template feature.
Text body limit 4096; interactive body limit 1024.
Utility30..43200; authentication30..900; forbidden for service.
Graph accepted the request; delivery is reported separately by webhook.
Optional caption of at most 1024 Unicode characters.
International phone number or supported business-scoped user ID; native/group JIDs are not accepted.
Display filename with supported extension; maximum 255 UTF-8 bytes (worker policy), without paths or control characters. Markdown is not supported; choose TXT or PDF explicitly.
Meta media ID from upload_document, valid for 30 days unless deleted. Reuse without uploading bytes again. Numeric IDs are strings; 128-character bound is worker policy.
Optional expected recipient identity hash for Meta identity-change checks.
Optional Meta message ID to quote as a contextual reply.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional non-empty input data for the first navigate screen, at most 16384 JSON bytes. Not accepted with data_exchange.
CTA label; worker follows Meta recommendation of at most 30 characters.
Optional business correlation token; 4096-character worker limit.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Required for navigate; forbidden for data_exchange. Worker limit 256 characters.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or business-scoped user ID; native JIDs are rejected.
Meta media ID. Never a URL, native media key or host file path.
Optional expected recipient identity key hash.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Graph accepted the request; delivery is reported separately by webhook.
Optional address; 1024-character worker limit.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
Optional place name; 1024-character worker limit.
Optional recipient identity key hash for identity-change protection.
Optional original Meta message ID to quote; no automatic retries.
Graph accepted the request; delivery is reported separately by webhook.
Optional explicit per-message activity-sharing choice; omission preserves the WABA setting.
Defaults to STRICT. CLOUD_API_FALLBACK explicitly permits Meta routing to standard Cloud API when marketing onboarding is incomplete.
Optional expected recipient identity hash for Meta identity-change checks.
Optional Meta message ID to quote as a contextual reply.
Graph accepted the request; delivery is reported separately by webhook.
Meta catalog ID; 128-character worker limit.
Epoch-seconds string at least 300 seconds in the future.
Catalog SKU/content ID; 256-character worker limit.
Opaque PSP credential reference, never a full card number or security code.
HTTP(S) payment destination; never fetched by the worker.
Graph accepted the request; delivery is reported separately by webhook.
Graph accepted the request; delivery is reported separately by webhook.
Meta catalog ID; 128-character worker limit.
Catalog SKU/content ID; 256-character worker limit.
Graph accepted the request; delivery is reported separately by webhook.
Meta catalog ID; 128-character worker limit.
Graph accepted the request; delivery is reported separately by webhook.
Meta catalog ID; 128-character worker limit.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or supported business-scoped user ID; native JIDs are not accepted.
One Unicode emoji sequence; empty string removes the reaction. Worker caps 128 UTF-8 bytes. Meta validates the exact emoji sequence.
Original incoming Meta message ID, without whitespace or control characters.
Optional recipient identity key hash for identity-change protection.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or business-scoped user ID; native JIDs are rejected.
Meta media ID. Never a URL, native media key or host file path.
Optional expected recipient identity key hash.
Graph accepted the request; delivery is reported separately by webhook.
Optional expected recipient identity hash for Meta identity-change checks.
Optional Meta message ID to quote as a contextual reply.
Graph accepted the request; delivery is reported separately by webhook.
Optional expected recipient identity hash for Meta identity-change checks.
Optional Meta message ID to quote as a contextual reply.
Graph accepted the request; delivery is reported separately by webhook.
International phone number or business-scoped user ID; native JIDs are rejected.
Meta media ID. Never a URL, native media key or host file path.
Optional expected recipient identity key hash.
Graph accepted the request; delivery is reported separately by webhook.
Original incoming Meta message ID, without whitespace or control characters.
Verified WhatsApp Cloud API messages, delivery statuses, and account/group/calling webhook events. Each event is one call of this function after durable deduplication; incoming messages are saved to the local archive first. The function takes no args: observers select events with filters on its input fields. ## Observe events 1. Register a target function that accepts the event object below. Replace `automation::on-whatsapp-message` with that function's ID and the example `chat_id` with the contacts you want to monitor. 2. Observe this function with the following source. `namespace` selects this WhatsApp provider; the target resolves in the observing worker's namespace. `deliver: "output"` hands the target the event itself. ```json { "function_id": "whatsapp::cloud::on-events", "namespace": "default", "filters": { "input.kind": {"$eq": "message.received"}, "input.chat_id": {"$in": ["+15550000009"]}, "input.message_type": {"$eq": "text"} }, "deliver": "output" } ``` In Node: `iii.observe(source, 'automation::on-whatsapp-message', { metadata: { workflow: 'customer-support' } })`. In Go: `client.Observe(iii.Source{FunctionID: ..., Namespace: ..., Filters: ..., Deliver: iii.DeliverOutput}, "automation::on-whatsapp-message", iii.ObserverOptions{Metadata: ...})`. For a newly connected Go SDK client, first wait until `engine::workers::list` shows that client in the intended namespace; `Connect` can return before its namespace is announced. 3. Wait for the observer handle to be ready (`ready()` in Node, `Ready(ctx)` in Go). An active observer receives every later event its filters match; observing does not replay earlier events. The observer lives as long as the worker that created it: dispose its handle to stop receiving events. Observer metadata reaches the target as the call's metadata, separate from the event payload. Target return values do not send replies to WhatsApp. ## Filters Each filter clause names an event field and an operator (`$eq`, `$in`, `$ne`, `$exists`, ...). Clauses combine with AND; `$in` lists alternatives. An observer without a filter on `input.kind` receives every kind, including delivery statuses and administrative events. | Path | Values and presence | | --- | --- | | `input.kind` | `message.received`, `message.status`, or `webhook.received`. | | `input.chat_id` | Contact phone numbers such as `+15550000009`, business-scoped IDs such as `BR.ENT.Abc123`, or `group:<raw Cloud group ID>`: the IDs `whatsapp::cloud::chats::list` returns. Empty on `webhook.received`. | | `input.sender_id` | Sender of a `message.received` event, in the same format. | | `input.message_type` | Exact raw Meta type of a `message.received` event, such as `text`, `image`, `audio`, `interactive` or `button`. | | `input.status` | `sent`, `delivered`, `read`, or `failed`, on `message.status`. | | `input.field` | Meta webhook field of a `webhook.received` event, such as `message_template_status_update`, `calls`, or `group_lifecycle_update`. | | `input.event` | Administrative event name, such as `APPROVED`, `group_create`, or a calling event name. | | `input.group_id` | Raw Cloud group ID without the `group:` prefix, on group messages, receipts, and group events. | | `input.participant_id` | Group participant identified by a delivery or read receipt. | | `input.business_account_id` | WABA ID, a numeric string. | | `input.phone_number_id` | Phone Number ID, a numeric string; empty for WABA-wide administrative events. | Filters compare exact values, so write contacts as `whatsapp::cloud::chats::list` returns them (`+15550000009`). A clause on a field an event lacks does not match it: status events have no sender or message type, so `$eq` or `$in` on `input.sender_id` or `input.message_type` excludes them. To receive read and failed receipts for one contact, use these filters: ```json { "input.kind": {"$eq": "message.status"}, "input.chat_id": {"$eq": "+15550000009"}, "input.status": {"$in": ["read", "failed"]} } ``` ## Event payload ```json { "kind": "message.received", "business_account_id": "123", "phone_number_id": "456", "message_id": "wamid.example", "chat_id": "+15550000009", "sender_id": "+15550000009", "message_type": "text", "text": "Hello", "timestamp_ms": 1700000000000, "data": { "id": "wamid.example", "from": "15550000009", "timestamp": "1700000000", "type": "text", "text": {"body": "Hello"} } } ``` `message.status` uses the same account, message, chat and timestamp fields plus `status`; sender, message type and text may be absent. `timestamp_ms` is Meta's timestamp in milliseconds. `data` contains the single original message/status object, not the whole webhook. Events are capped at 64 KiB; oversized content uses `data: {"content_omitted":true}` with a clipped preview. ## Delivery and setup Configure Cloud API credentials and the Meta webhook first; `whatsapp::cloud::status` reports local setup. This function does not configure Meta or carry linked-device events (`whatsapp::on-events`). Local sends do not emit `message.received`; Meta receipts can emit `message.status`. Duplicate messages and identical status updates are suppressed within retained deduplication history. Delivery is best effort, without target retries or replay; queue overflow, shutdown or target failures can lose events. Reconcile current retained message state with `whatsapp::cloud::chats::list` and `whatsapp::cloud::messages::list`. Reconcile administrative state with its corresponding management API; the message archive does not store account-event history. ## Administrative and group events For template status changes, observe with these filters: ```json { "input.kind": {"$eq": "webhook.received"}, "input.field": {"$eq": "message_template_status_update"}, "input.event": {"$in": ["APPROVED", "REJECTED"]} } ``` `webhook.received` has `event_id` (a deterministic hash), `field`, optional `event`, and sanitized `data`. Its `message_id` and `chat_id` are empty. `phone_number_id` is empty for WABA-wide events without a phone identity; a filter on a nonempty phone ID excludes those events. `timestamp_ms` is Meta's entry or nested event timestamp, or zero when Meta provides none. No receipt time is substituted. Duplicate detection hashes the canonical event and supplied time. Group metadata and calling collections are split into individual events while retaining their nested `groups` or `calls` object inside `data`. Coexistence history/state/echo payloads can be selected by field, but are not imported as ordinary inbox messages. This does not provision coexistence or initiate history synchronization. For a Cloud group, use: ```json { "input.kind": {"$in": ["message.received", "message.status"]}, "input.group_id": {"$eq": "Y2FwaV9ncm91cDoxMjM="} } ``` Group messages use `chat_id: "group:<id>"`, retain the participant as `sender_id`, and include raw `group_id`. Delivery/read receipts for an individual participant include `participant_id`; they are deduplicated per participant. They do not mark the entire group conversation as delivered/read. These events use the official Cloud Groups API, not linked-device group JIDs. Meta account eligibility and webhook field subscriptions are still required. See [Meta webhook fields](https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/overview) and [group webhook contracts](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/webhooks).
Local readiness only. Does not imply remote authentication or delivery.
Public HTTPS callback override. Uses configured cloud.verify_token, never a token argument. Omit to use app default callback.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Pass this value as `after_sequence` in the next poll.
Earlier events have fallen outside the bounded queue or a process restarted.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
An existing description version; omit to fetch the current version.
False permits admins only; true permits all members.
Omit both encryption fields only for plaintext channel media.
Audio is already encoded; the worker never invokes codecs.
Set only when revoking another member's message as a group admin.
Keeps an original sender's namespace, including LID, for message operations.
Keeps an original sender's namespace, including LID, for message operations.
Newest first. A cursor loads older locally retained messages.
Keeps an original sender's namespace, including LID, for message operations.
Empty removes this account's reaction.
Keeps an original sender's namespace, including LID, for message operations.
A complete vCard, supplied by the caller.
Keeps an original sender's namespace, including LID, for message operations.
Keeps an original sender's namespace, including LID, for message operations.
Keeps an original sender's namespace, including LID, for message operations.
Native protobuf JSON content; absent on revoked messages.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Null when the native client does not expose this value.
Native WhatsApp session, message, receipt and group events. Observe it with filters on input.session_id and input.kind.
Find workers, kits and executables, or jump to a page.