I have created an agentmail.io mailbox for my agent and want it to have realtime-access via webhooks. As far as I know this should be possible with openclaw webhooks documented here: https://docs.openclaw.ai/automation/webhook.
I think I need hooks.mappings for this to work but I don't know how this works. My configuration so far:
"enabled": true,
"path": "/hooks",
"token": "__OPENCLAW_REDACTED__",
"internal": {
"enabled": true,
"entries": {
"boot-md": {
"enabled": true
},
"session-memory": {
"enabled": true
}
}
}
}```
The build-in path "/hooks/wake" works fine via curl but fails via agentmail with the following request answer:
```{2 items
"ok":boolfalse
"error":string"text required"
}```
I think this is because the payload sent via agentmail is not compatible with the payload that /hooks/wake wants. At least auth works, so thats a good sign and its only about getting the payload to a compatible endpoint.
I don't know how to create the path "/hooks/agentmail" (which then hopefully could work the the payload provided by agentmail) so that my agent can write me e.g. in discord if a new mail has arrived.
I have installed OpenClaw Version 2026.3.13.