# 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:** 12

<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:** [March 1, 2023, 6:06pm UTC](https://meta.discourse.org/t/add-images-to-api-posts/204651/12 "2023-03-01T18:06:07Z")

</div>

> [@Simranjit\_Kaur](#):
>
> but how can we send url in payload. Sending it in raw field post it in words

Correct. Pass it in as a markdown link.

```plaintext
![image|581x455](upload://c4MB1Yzppr5Omv68MoJBQINqqiB.png)

```

> [@Simranjit\_Kaur](#):
>
> is there any way we can have image field as well in posts api?

Nope, because this is the same workflow that is used in the composer UI. You will have to make two api calls, one for the upload and the other to include the URL in post payload.

---

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