Skip to main content

Webhook

An outbound HTTP POST to your own URL. Taji posts each alert to it as JSON, and nothing comes back from it.

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.

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​

  1. Get alerts. Every alert Taji raises arrives as an HTTP POST to your URL with a JSON body ({"text": "..."}) and a ten-second timeout. An alert carries text only, never a picture.
  2. 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.
  3. 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 image field 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 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​

SymptomCauseFix
The sheet refuses with sendThe URL did not answer Taji's test POST with a 2xx status within ten seconds, or could not be reachedConfirm the endpoint is running and returns a 2xx status within ten seconds, then try again
The sheet refuses a URLThe URL is missing, malformed, or uses http for a host other than 127.0.0.1 or localhostPaste 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 errorCheck that your receiver is reachable and returns a 2xx status within ten seconds
Webhook's row says the URL asked Taji to slow downYour receiver answered 429 with a Retry-AfterNothing: Taji sends nothing to it until that wait has passed, and a message due meanwhile fails with that error
Webhook's row reads Vault lockedThe vault is closed after a restartOpen the vault in the Taji window; nothing sends until you do

References​