# Is there simple boilerplate code to make HTTP outcalls from within canister?

**URL:** <https://forum.dfinity.org/t/is-there-simple-boilerplate-code-to-make-http-outcalls-from-within-canister/17400>\
**Category:** Developers\
**Created:** [December 13, 2022, 11:58pm UTC](https://forum.dfinity.org/t/is-there-simple-boilerplate-code-to-make-http-outcalls-from-within-canister/17400 "2022-12-13T23:58:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blabagastered](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/blabagastered/32/8592_2.png) [@blabagastered](https://forum.dfinity.org/u/blabagastered)\
**Post date:** [December 13, 2022, 11:58pm UTC](https://forum.dfinity.org/t/is-there-simple-boilerplate-code-to-make-http-outcalls-from-within-canister/17400/1 "2022-12-13T23:58:10Z")

</div>

I saw [https://github.com/dfinity/examples/tree/master/motoko/exchange\_rate](https://github.com/dfinity/examples/tree/master/motoko/exchange_rate), but it’s a big overkill.

I just want a humble function or small boilerplate to add a humble HTTP outcall to my existing main.mo / project without adding a ton of extra stuff.

Is there simple boilerplate code to add HTTP outcalls to a project?

---

<div class="post-metadata">

**Author:** ![bytesun](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bytesun/32/2682_2.png) [@bytesun](https://forum.dfinity.org/u/bytesun)\
**Post date:** [December 14, 2022, 1:42am UTC](https://forum.dfinity.org/t/is-there-simple-boilerplate-code-to-make-http-outcalls-from-within-canister/17400/2 "2022-12-14T01:42:04Z")

</div>

I know this one, but haven’t tried it

> <https://github.com/ArgonStudiosXYZ/ic-emailer/blob/main/src/emailer_backend/main.mo>
