message.send
Queue an outbound message in the tenant's outbox after verifying recipient host against the egress allow-list. Hands off for later operator-run delivery, returning an audit reference.
Instructions
Queues one message in this tenant's outbox on this machine for the delivery step the operator runs; this call opens no network connection and nothing leaves the body from it. Use it to hand off a message, not to deliver one. Like every call it passes the policy gate and leaves a signed decision record. The gate reads the host after the last '@' in to and allows it only when it is on the policy's egress allow-list; otherwise the call is refused with denied:egress-blocked, or denied:egress-host-missing when no host can be read. A policy rule in approve mode holds the call for an operator instead and answers deferred:approval-required:. Returns {queued: true, ref}, where ref is the decision reference for audit.explain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient address with a host after the last '@', for example ops@example.com. The host, lower-cased, is matched against the policy's egress list. | |
| _ref | No | Optional reference you choose for this call, 1 to 64 characters of letters, digits, '.', '_' or '-', starting with a letter or digit. Resend the same call with the same _ref after an operator approved it to receive allowed:<ref>; a _ref reused for a different call is refused with denied:ref-reuse. | |
| text | Yes | The message body as plain text. Stored as given in the outbox row. |