Request Approval
neuron_request_approvalAsk a human to approve or reject an action over WhatsApp and get the decision back. The recipient replies approve/reject (optionally with a reason) or quotes the message. Use this to gate any action needing human sign-off (refunds, deploys, spend, publishing). Returns an approvalId; poll neuron_get_approval / neuron_list_approvals for the outcome, or supply a webhook in callback to be notified. Requires a bot API key ('nrn_' prefix).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient phone number (E.164/digits) or WhatsApp group JID | |
| apiKey | Yes | Bot API key with 'nrn_' prefix for authentication | |
| prompt | Yes | The approval question shown to the human | |
| context | No | Optional long-form details — stored in a shareable Neuron Note and linked from the WhatsApp message | |
| callback | No | Callback config. Omit for a poll-only flow (delivery scheme 'none'). | |
| metadata | No | Opaque data echoed back verbatim in the result/callback | |
| channelId | No | Optional WhatsApp channel override (UUID) | |
| idempotencyKey | No | Dedupe key — returns the existing approval on repeat | |
| expiresInSeconds | No | Time to live before auto-expiry (default 86400, 60–604800) |