Webhook
An outbound HTTP POST to your own URL. Taji posts each alert to it as JSON, and nothing comes back from it.
Before you link
You need an https URL—or an http URL on this device (127.0.0.1 or localhost)—that accepts a POST request and answers with a 2xx status within ten seconds. Taji only sends to this URL: it never reads inbound messages and never sends an order or a key. Your vault must be open: it seals the URL.
Link
The form is webhook. Start it from Webhook's row under Channels on the Connections page. Its step and the word it refuses with are in the plugin's manifest, taji-plugin.toml. Taji checks the URL with a test POST before sealing it. Once linked, the row shows when Taji last sent to you.
Use
- Get alerts. Every alert Taji raises arrives as an HTTP
POSTto your URL with a JSON body ({"text": "..."}) and a ten-second timeout. An alert carries text only, never a picture. - Get trading events. A fill, an exit that fired, a rejected order, an order waiting for your approval in the window, a plugin that halted, and a venue sign-in expiring or expired each arrive the same way, as a title and a line of detail, which names an account only by its alias and last four.
- Send from your agent. Your agent can post text, or a pane's chart as a picture, to the linked webhook. A picture adds an
imagefield to the body: the PNG, base64-encoded.
Webhook is outbound only: you cannot message your agent or answer permission cards from it. What your agent can and cannot do is in Connect your agent.
Unlink
Unlink Webhook from its row under Channels on the Connections page (or POST /verb/channels/unlink with {"channel": "webhook"}) while your vault is open. Taji deletes the sealed URL from the vault and removes the link from its state.
If your webhook URL carried a secret token or was created only for Taji, disable or rotate it on your receiving service.
If it fails
| Symptom | Cause | Fix |
|---|---|---|
The sheet refuses with send | The URL did not answer Taji's test POST with a 2xx status within ten seconds, or could not be reached | Confirm the endpoint is running and returns a 2xx status within ten seconds, then try again |
| The sheet refuses a URL | The URL is missing, malformed, or uses http for a host other than 127.0.0.1 or localhost | Paste a valid https URL, or a local http URL on 127.0.0.1 or localhost |
Webhook's row shows a send error (such as the URL answered 404 Not Found, timed out, or could not reach the URL) | A send after linking failed; Taji omits the URL itself from the error | Check that your receiver is reachable and returns a 2xx status within ten seconds |
| Webhook's row says the URL asked Taji to slow down | Your receiver answered 429 with a Retry-After | Nothing: Taji sends nothing to it until that wait has passed, and a message due meanwhile fails with that error |
| Webhook's row reads Vault locked | The vault is closed after a restart | Open the vault in the Taji window; nothing sends until you do |
References
- Connect your agent
- How your agent answers a phone turn
plugins/webhook/taji-plugin.toml,plugins/webhook/src/lib.rs- How the webhook works