the risk of writing your own API or using someone else's front end depends on how it is written and what safety checks it contains. The IB bracket order is a simple order type so you're not really comparing apples to oranges. My suggestion is try take a look, if you find it straight forward then you're all set. If not, find another front end that offers the functionality.
for those who seek an API, I suggest the Rithmic API which could be written with any language. Then you can watch the orders on R Trader. The platform itself has the ability to create multiple bracket orders.
You can try out opentrade which has implemented IB api, manages internet disconnects, power outages, disconnects on IB's side, daily resets on IB's side. Currently it only implements simple order types (limit/market/stop), but you can customize yourself, https://github.com/opentradesolutions/opentrade/blob/master/src/adapters/ib/ib.cc
If you don't want to complicate your life, as others mentioned, automatic bracket orders are very easily configured under IB's TWS presets. See ‘Target Order’ and ‘Attached Stop Order’ https://www.interactivebrokers.com/en/index.php?f=19017
You can use NinjaTrader as a front end to Interactive Brokers. You can download and use is for free indefinitely for everything (analysis, charting, trade simulation etc...) excluding live trades. https://ninjatrader.com/Choice