# Raw Post Body for POST API

**URL:** https://meta.discourse.org/t/raw-post-body-for-post-api/85128
**Category:** Support
**Created:** [April 12, 2018, 4:09am UTC](https://meta.discourse.org/t/raw-post-body-for-post-api/85128 "2018-04-12T04:09:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nopsled](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nopsled/32/120092_2.png) [@Nopsled](https://meta.discourse.org/u/Nopsled)
#### Post date: [April 12, 2018, 4:09am UTC](https://meta.discourse.org/t/raw-post-body-for-post-api/85128/1 "2018-04-12T04:09:21Z")

</div>

Is there a way to view an existing post I’ve created and what that looks like if I want to use it for a a template when making a POST api request with the “raw” field?

Thanks!

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [April 12, 2018, 2:50pm UTC](https://meta.discourse.org/t/raw-post-body-for-post-api/85128/2 "2018-04-12T14:50:25Z")

</div>

There are probably many ways of doing this like using the chrome dev tools, looking in the db, but here is one way: If you can get the post id which you can do by going to the topic url and append `.json`. For example this topic:

`https://meta.discourse.org/t/raw-post-body-for-post-api/85128.json`

Then you can get the post id from the json:

`{"post_stream":{"posts":[{"id":409746,`

Then go to:

`https://meta.discourse.org/posts/409746.json`

and you can see the ‘raw’ field:

> “Is there a way to view an existing post I’ve created and what that looks like if I want to use it for a a template when making a POST api request with the "raw" field?\n\nThanks!”

---

<div class="post-metadata">

### Author: ![Nopsled](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nopsled/32/120092_2.png) [@Nopsled](https://meta.discourse.org/u/Nopsled)
#### Post date: [April 19, 2018, 2:23am UTC](https://meta.discourse.org/t/raw-post-body-for-post-api/85128/3 "2018-04-19T02:23:09Z")

</div>

Love it. Thank you!!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/raw-post-body-for-post-api/85128/4 "2024-06-08T12:37:38Z")

</div>

This topic was automatically closed after 2249 days. New replies are no longer allowed.
