# Add images to API posts

**URL:** <https://meta.discourse.org/t/add-images-to-api-posts/204651>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [September 28, 2021, 2:07pm UTC](https://meta.discourse.org/t/add-images-to-api-posts/204651 "2021-09-28T14:07:43Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Simranjit\_Kaur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simranjit_kaur/32/295635_2.png) [@Simranjit\_Kaur](https://meta.discourse.org/u/Simranjit_Kaur)\
**Post date:** [March 6, 2023, 4:54am UTC](https://meta.discourse.org/t/add-images-to-api-posts/204651/13 "2023-03-06T04:54:50Z")

</div>

Yeah correct, This is how i implemented this… just pass  
“[image|581x455(upload://c4MB1Yzppr5Omv68MoJBQINqqiB.png)” in raw in post api. Here  
1)image-any name you want to give  
2)upload://c4MB1Yzppr5Omv68MoJBQINqqiB.png- this is the shorturl we get while uploading the image using upload api.

for steps: 1)first we have to upload the image using /upload.json api  
step 2) pass the short url in above format with other post content in ‘raw’ field.

Thank you for your reply @blake

---

_[View the full topic](https://meta.discourse.org/t/add-images-to-api-posts/204651)._
