# Questions About API 2

**URL:** <https://forums.creativeclouddeveloper.com/t/questions-about-api-2/6767>\
**Category:** Photoshop\
**Tags:** uxp\
**Created:** [September 4, 2023, 7:09pm UTC](https://forums.creativeclouddeveloper.com/t/questions-about-api-2/6767 "2023-09-04T19:09:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)\
**Post date:** [September 4, 2023, 7:09pm UTC](https://forums.creativeclouddeveloper.com/t/questions-about-api-2/6767/1 "2023-09-04T19:09:04Z")

</div>

I created a plugin in 2020 which uses API Version 1 and Manifest Version 4  
The plugin is still working well despite the console’s API 1 Depreciation Message.

My main concern is that the plugin will fail one day seeing the “Depreciation Message” so I need to figure out how to bring it up to date without starting from scratch.

**Questions:**  
Does anyone know the lifespan of API 1?  
Does API V2 require the Execute As Modal stuff?  
Is Manifest V4 going to depreciate?

Thanks

---

<div class="post-metadata">

**Author:** ![gregbenz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/gregbenz/32/953_2.png) [@gregbenz](https://forums.creativeclouddeveloper.com/u/gregbenz)\
**Post date:** [September 4, 2023, 7:47pm UTC](https://forums.creativeclouddeveloper.com/t/questions-about-api-2/6767/2 "2023-09-04T19:47:06Z")

</div>

v2 requires executeAsModal to do any setting (make changes). You can get info without it still.

No idea how long v1 will be around, but I would get away from it as soon as possible. You run a decent risk of your plugin experience strange failures if someone installs a v2 plugin and you’re not running with exclusive control (modal).

I’d also move to the v5 manifest (might be required for v2 API, can’t recall).

---

<div class="post-metadata">

**Author:** ![IanBarber](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IanBarber](https://forums.creativeclouddeveloper.com/u/IanBarber)\
**Post date:** [September 4, 2023, 7:50pm UTC](https://forums.creativeclouddeveloper.com/t/questions-about-api-2/6767/3 "2023-09-04T19:50:29Z")

</div>

Thanks, Greg,

I assume the only way then is more or less to bite the bullet and re-write all the functions and button click events using the execute modal.

Ian

---

<div class="post-metadata">

**Author:** ![gregbenz](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/gregbenz/32/953_2.png) [@gregbenz](https://forums.creativeclouddeveloper.com/u/gregbenz)\
**Post date:** [September 4, 2023, 8:05pm UTC](https://forums.creativeclouddeveloper.com/t/questions-about-api-2/6767/4 "2023-09-04T20:05:39Z")

</div>

It will take some effort for sure, but worth it even if v1 were kept indefinitely (unless you’re referring to a project for your machine only where you can control the environment).

---

<div class="post-metadata">

**Author:** ![DavideBarranca](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/davidebarranca/32/1523_2.png) [@DavideBarranca](https://forums.creativeclouddeveloper.com/u/DavideBarranca)\
**Post date:** [September 8, 2023, 7:56pm UTC](https://forums.creativeclouddeveloper.com/t/questions-about-api-2/6767/5 "2023-09-08T19:56:57Z")

</div>

I second everything Greg said; there were talks about deprecating Manifest v4/API v1 at the next major version (25) but it won’t happen this time. Most likely you have one more year, but don’t quote me on this.
