# Plugin Api Version

**URL:** https://meta.discourse.org/t/plugin-api-version/203703
**Category:** Development
**Created:** [September 16, 2021, 6:50am UTC](https://meta.discourse.org/t/plugin-api-version/203703 "2021-09-16T06:50:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Usman\_Shahid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/usman_shahid/32/232411_2.png) [@Usman\_Shahid](https://meta.discourse.org/u/Usman_Shahid)
#### Post date: [September 16, 2021, 6:50am UTC](https://meta.discourse.org/t/plugin-api-version/203703/1 "2021-09-16T06:50:53Z")

</div>

Where do I find which versions of discourse support which plugin api version. Currently I am using pluginapi v 0.8 because I found it in discourse theme guide. But I haven’t been able to locate plugin api versions and their link with discourse versions.

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [September 18, 2021, 4:23pm UTC](https://meta.discourse.org/t/plugin-api-version/203703/2 "2021-09-18T16:23:58Z")

</div>

@Usman_Shahid

Not sure if this is the best way, but perhaps you can look at the [plugin-api.js](https://github.com/discourse/discourse/blob/e3164671698aeef94cf2e142903a30e4688e9dfe/app/assets/javascripts/discourse/app/lib/plugin-api.js#L89) file (line 89) where the version number is listed:

```js
const PLUGIN_API_VERSION = “0.12.3”

```

and compare that number across different commits of Discourse?

---

<div class="post-metadata">

### Author: ![Usman\_Shahid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/usman_shahid/32/232411_2.png) [@Usman\_Shahid](https://meta.discourse.org/u/Usman_Shahid)
#### Post date: [September 20, 2021, 6:25am UTC](https://meta.discourse.org/t/plugin-api-version/203703/3 "2021-09-20T06:25:59Z")

</div>

Thank you that’s very helpful

---

<div class="post-metadata">

### Author: ![bitmage](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bitmage/32/389881_2.png) [@bitmage](https://meta.discourse.org/u/bitmage)
#### Post date: [June 13, 2024, 12:56am UTC](https://meta.discourse.org/t/plugin-api-version/203703/4 "2024-06-13T00:56:23Z")

</div>

It looks like the current file for the version I’m on (3.2.0) is here:

> <https://github.com/discourse/discourse/blob/v3.2.0/app/assets/javascripts/discourse/app/lib/plugin-api.js#L149>

This is a really obscure way of finding the API version that we’re supposed to be using.

My experience so far if you get it wrong is that the script silently fails to load.
