# How to add body template in api explorer

**URL:** <https://forum.heroiclabs.com/t/how-to-add-body-template-in-api-explorer/1966>\
**Category:** Game Design\
**Tags:** server-framework\
**Created:** [September 20, 2021, 7:06pm UTC](https://forum.heroiclabs.com/t/how-to-add-body-template-in-api-explorer/1966 "2021-09-20T19:06:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![b-thanapat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/b-thanapat/32/758_2.png) [@b-thanapat](https://forum.heroiclabs.com/u/b-thanapat)\
**Post date:** [September 20, 2021, 7:06pm UTC](https://forum.heroiclabs.com/t/how-to-add-body-template-in-api-explorer/1966/1 "2021-09-20T19:06:46Z")

</div>

i use go runtime. how to add body-template to rpc-function.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [September 20, 2021, 10:58pm UTC](https://forum.heroiclabs.com/t/how-to-add-body-template-in-api-explorer/1966/2 "2021-09-20T22:58:51Z")

</div>

@b-thanapat You’ll need to share more information for us to be able to help. What is a “body-template”?

Might be useful to step back and explain what you want to achieve.

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [September 22, 2021, 9:53am UTC](https://forum.heroiclabs.com/t/how-to-add-body-template-in-api-explorer/1966/3 "2021-09-22T09:53:24Z")

</div>

Hi @b-thanapat, it sounds like you’d like the JSON Body text area within the Api Explorer to pre-populate with a JSON template for your custom RPCs like it does for built-in ones such as `createLeaderboard`, is this correct?

It’s something we would definitely like to do, but it is also something that would be very complex to implement as we cannot possibly know the payload structure your RPCs expect without performing some kind of reflection or providing developers with a way to markup their RPCs.

In the meantime we would recommend that you use something such as Postman or Insomnia to keep track of the structure of your custom RPCs.

---

<div class="post-metadata">

**Author:** ![jiangben](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jiangben/32/1825_2.png) [@jiangben](https://forum.heroiclabs.com/u/jiangben)\
**Post date:** [October 22, 2023, 3:55am UTC](https://forum.heroiclabs.com/t/how-to-add-body-template-in-api-explorer/1966/4 "2023-10-22T03:55:43Z")

</div>

Is this functionality possible now? Can a custom RPC display the requested template in JSON or protobuf format?

---

<div class="post-metadata">

**Author:** ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)\
**Post date:** [October 23, 2023, 8:28am UTC](https://forum.heroiclabs.com/t/how-to-add-body-template-in-api-explorer/1966/5 "2023-10-23T08:28:12Z")

</div>

This functionality does not exist currently, but we’re always working on improvements to the Nakama Console and it is definitely on our radar.
