Webhooks: in (live) and out (planned)

The per-user inbound webhook Sarathi runs today, how TradingView alerts are parsed, and a planned outbound webhook on decision and fill with a proposed payload.

Updated 30 Aug 2026

Live

Sarathi has one webhook today and it points inward: TradingView posts to a URL that belongs to you, and the post becomes an order card. A second webhook that points outward, from Sarathi to a server of yours, is planned. This page keeps the two clearly apart.

Inbound webhook Live

Every account gets a URL of the form https://<server>/hook/<token>, where the token is 24 hex characters. It is revealed in Settings during onboarding and again in the Telegram link confirmation. Paste it into the Webhook URL field of a TradingView alert; there is nothing to configure on the TradingView side beyond that.

What TradingView does on its end is documented in its webhook help page: an HTTP POST with the alert message as the body, an application/json header when the body is valid JSON and text/plain otherwise, ports 80 and 443 only, a three-second timeout after which the request is cancelled, no IPv6, and a small fixed set of source IP addresses listed in TradingView's webhook help. Webhook alerts require two-factor authentication on the TradingView account, and the alert log has a webhook status column for failed deliveries.

Sarathi acknowledges within the timeout and does the card delivery afterwards, so a slow Telegram round trip never causes TradingView to mark the post as failed.

The contract, in brief

StepWhat happensResponse
Token lookupToken must match an account404 unknown token
Body size16 KiB limit413
ParseJSON object, or plain text such as BUY BANKNIFTY 30 sl=57400; numeric fields must be JSON numbers400 with the error and the first 200 characters received
PlaceholderBody is an unexpanded {{...}} placeholder, typically an exit order with no alert_message200 ok, ignored; no card
UniverseSymbol must resolve to an active instrument400 symbol not in universe with a hint listing tier-1 symbols
Dedupeid, else symbol, side, strategy and time together200 duplicate: true; no card
CreditsDelivery charged 2 credits beyond the allowance200 with status: pending, or status: held when exhausted

Field names and aliases (sym, side, type, price, sl, tp, qty, time, id), symbol normalisation (NSE:, BSE: and MCX: prefixes stripped, 1! and 2! suffixes stripped, GOLD to GOLDM, SILVER to SILVERM) and the full response bodies are on the developer page. A worked TradingView-side example is on the webhook alerts page.

A minimal body:

{  "sym": "BANKNIFTY",  "side": "BUY",  "type": "ORB",  "price": 57530,  "sl": 57400,  "qty": 30,  "time": "2026-08-27T09:20:00+05:30"}

Rotation

If the URL leaks, rotate it from Settings. The old token stops resolving immediately and posts to it return 404. Update the TradingView alert with the new URL; alerts already fired are unaffected because they are already signals.

What a relay cannot do

Generic relays that forward a TradingView alert to a chat or an email pass the text through unchanged. They do not parse a side and a stop, do not know that BANKNIFTY1! and BANKNIFTY are the same instrument, do not reject a symbol you cannot trade, do not drop a duplicate, do not expire a stale signal, and do not record a decision. The inbound webhook exists to do those six things before a human sees a card.

Outbound webhook Planned

An outbound webhook would let Sarathi call a URL of yours when something happens to a signal: a card is delivered, a decision is made, a fill or rejection comes back, or a signal expires. Uses that have come up are a spreadsheet journal, a position tracker, and a second notification channel Sarathi does not offer.

Nothing about this exists yet. There is no settings field, no delivery, no retry policy. It is listed here so the connector map is honest about what is planned.

Proposed payload

The shape below is a proposal for discussion, not a contract. It mirrors the journal columns so a receiver can rebuild the journal from events alone. Numbers are JSON numbers, times are ISO 8601 with the IST offset, and every event carries the signal id so events can be joined.

{  "event": "fill",  "signal_id": 142,  "symbol": "BANKNIFTY",  "side": "BUY",  "strategy": "ORB",  "decision": {    "action": "confirm",    "size_mult": 1,    "via": "telegram",    "at": "2026-08-27T09:21:14+05:30"  },  "fill": {    "route": "paper",    "status": "filled",    "qty": 30,    "price": 57532.5,    "slippage": 2.5,    "order_id": "paper-8f2c"  },  "fired_at": "2026-08-27T09:20:03+05:30"}

Open questions before it could ship: signing (an HMAC header over the body is the likely answer), retries and their cap, whether signal.received events are included or only decisions and fills, and whether the raw alert body is ever forwarded. If you would use this, the shape you need is worth an email; it changes what gets built first.

Where the card goes

The inbound webhook produces a card on two surfaces: the Telegram bot and the web dashboard. Both carry the same four actions, and the decision is recorded once, whichever surface it came from.

Get started

Create an account, reveal your webhook URL in Settings, paste it into a TradingView alert, and send a test alert. The first card lands on the paper route within seconds, and nothing is placed until you tap Confirm.

Questions

Free to start on the paper route. Link a broker only when you are ready to send a real order.

Get started
Sarathiसारथी

Sarathi means charioteer. The charioteer drives; the warrior decides when to shoot. Here the software drives, and you confirm every order.

Status

Pre-launch · pre-revenue
Bridge verified live 24 Aug 2026

Get started →

Sarathi is an execution bridge, not an investment adviser, and is not registered with SEBI as a Research Analyst. Nothing on this page is advice or a recommendation to trade. Sarathi never holds your funds or securities; every order is placed by you, on your own broker account. Derivatives trading carries substantial risk of loss.

Chart illustrations use TradingView Lightweight Charts™. Every price on this page is made up.

TradingView and Telegram are trademarks of their respective owners. Sarathi is not affiliated with or endorsed by them.