Skip to main content

Authentication

Every POST to a strategy webhook needs the strategy API key. GET …/health does not.

TradingView (use this)​

TradingView cannot send custom headers. Auth goes on the Webhook URL only:

https://YOUR_POD.tradepod.in/strategy/strat_xxxxx/opt?key=YOUR_API_KEY

Copy that full URL from Strategy → Config. Leave the Message as entry/exit JSON without a "key" field.

Do not put the secret in the alert body. TradingView warns against putting credentials in webhook messages.

Other tools (Postman / bots)​

Those can use a header instead of ?key=:

  • X-Api-Key: YOUR_API_KEY
  • Authorization: Bearer YOUR_API_KEY

A "key" field in JSON is also accepted, but it is not needed for TradingView.

Errors​

StatusMeaningWhat to do
401Missing or wrong keyPaste the full Webhook URL with ?key= from Config
403TradingView off, or strategy disabledSettings → Integrations; enable the strategy
404Strategy not foundRecreate / copy URL again

See TradingView alerts.