# I uploaded some images to the post via the API, why do only some images have the lightbox effect?

**URL:** https://meta.discourse.org/t/api/385834
**Category:** Support
**Tags:** rest-api, lightbox
**Created:** [October 16, 2025, 12:39pm UTC](https://meta.discourse.org/t/api/385834 "2025-10-16T12:39:11Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [October 17, 2025, 1:42pm UTC](https://meta.discourse.org/t/api/385834/2 "2025-10-17T13:42:40Z")

</div>

Can you share the api call you are using to create the post with the image link?

If you rebuild the html for a post does it create the lightbox?

 ![CleanShot 2025-10-17 at 07.49.32@2x](https://global.discourse-cdn.com/meta/original/4X/1/4/8/14802213573c4974ce9c55a844a1b9733eaba62a.png)

Also if you manually create some posts with images just like your api calls do, does it not make light boxes for some of them? Trying to figure out if this is an api issue or if the same issue exists in the UI.

---

_[View the full topic](https://meta.discourse.org/t/api/385834)._
