Skip to main content

Module routine

Module routine 

Source
Expand description

Routine webhook deliver channel: one JSON POST to a session’s preconfigured routine URL. Moved here from mail4agent’s post_routine_json (2026-10-13): the messenger no longer makes HTTP calls to routines; the host (hatchery node) delivers through this.

One attempt, 8 seconds, no redirects. 2xx means the routine took the letter. The key goes as Authorization: Bearer and X-Automation-Key; neither the key nor the URL is ever put in an error.

Enums§

RoutineError
Why a routine POST failed. Display never carries the URL or the key.

Functions§

bearer_token
Some(token) for a usable key, None for blank; Err for an unsafe one.
post_routine_json
POSTs body once to url with the optional routine key.
url_ok
http(s)://host[...], no userinfo, no control characters, bounded length.