AlgoWay Webhook Error 415

Webhook Error 415 — What It Really Means

Sometimes traders see a short, annoying message: “415 Unsupported Media Type.” It looks technical, but it’s simple — the server didn’t understand what you sent. Your signal reached AlgoWay, but the content wasn’t in a shape it could read. Wrong format, wrong field names, or broken structure — that’s all.

AlgoWay doesn’t guess. It expects a clean, structured message. When it receives something else — a line of text, a smiley, or an empty alert — it refuses to process it. That’s what 415 means: “I received your message, but I can’t understand it.”

When it usually happens

In TradingView, every alert has a “Message” box. Some strategies fill it automatically with alert(); others require you to type a message manually. If the final content that reaches the server isn’t a proper JSON structure, the signal fails. You don’t need to be a developer to fix it — you just need to make sure it has clear fields and valid syntax.

How AlgoWay reads messages

The server looks for four main pieces of information — platform, ticker, size, and direction — always with these exact field names:

platform_name  
ticker  
order_contracts  
order_action

Anything else can be added — price, comment, sl_price, tp_price, stop_loss, take_profit, trailing_pips — but those four must exist. Field names are lowercase and exact. Values like BUY or Sell are accepted in any case; AlgoWay converts them automatically.

Examples of correct messages

Basic structure:

{
  "platform_name": "metatrader5",
  "ticker": "EURUSD",
  "order_contracts": 1.00,
  "order_action": "buy"
}

With SL/TP and trailing stop:

{
  "platform_name": "metatrader5",
  "ticker": "EURUSD",
  "order_contracts": 1.00,
  "order_action": "buy",
  "sl_price": 1.0745,
  "tp_price": 1.0820,
  "trailing_pips": 15,
  "comment": "TV alert"
}

Close a position (flat):

{
  "platform_name": "metatrader5",
  "ticker": "EURUSD",
  "order_contracts": 0,
  "order_action": "flat",
  "comment": "close all on EURUSD"
}

Using TradingView placeholders:

{
  "platform_name": "metatrader5",
  "ticker": "{{ticker}}",
  "order_contracts": "{{strategy.order.contracts}}",
  "order_action": "{{strategy.market_position}}"
}

Key takeaway

Error 415 isn’t a bug or a crash — it’s a safeguard. AlgoWay refuses to trade on messages it can’t read. Once your signal is correctly structured, it’ll go through instantly. Clean text, correct field names, no extra symbols — that’s all it takes.