# Link tv as device

**URL:** https://forums.plex.tv/t/link-tv-as-device/598445
**Category:** Dev/API Corner
**Tags:** plex-web, other-dev
**Created:** [June 1, 2020, 6:24pm UTC](https://forums.plex.tv/t/link-tv-as-device/598445 "2020-06-01T18:24:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Eloyn](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Eloyn](https://forums.plex.tv/u/Eloyn)
#### Post date: [June 1, 2020, 6:24pm UTC](https://forums.plex.tv/t/link-tv-as-device/598445/1 "2020-06-01T18:24:27Z")

</div>

Hello,

I’m doing an app and I need to link a device (for example a Smart TV or Plex on Kodi) which requires to type the token and link that device to a user. Same as plex.tv/link but with my app.

If it could be possible to give an example with python… 🙂

Tried to get the endpoint with chrome devtools and got [https://plex.tv/api/v2/pins/link.json](https://plex.tv/api/v2/pins/link.json) with PUT but there’s no info on the internet.

Now I can invite or remove by username/email but I need to link some devices with pin.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Conicaw](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/conicaw/32/189663_2.png) [@Conicaw](https://forums.plex.tv/u/Conicaw)
#### Post date: [July 25, 2020, 5:28am UTC](https://forums.plex.tv/t/link-tv-as-device/598445/2 "2020-07-25T05:28:26Z")

</div>

Does [this thread](https://forums.plex.tv/t/how-to-request-a-x-plex-token-token-for-your-app/84551) help at all?

---

<div class="post-metadata">

### Author: ![Eloyn](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Eloyn](https://forums.plex.tv/u/Eloyn)
#### Post date: [August 14, 2020, 2:42pm UTC](https://forums.plex.tv/t/link-tv-as-device/598445/3 "2020-08-14T14:42:18Z")

</div>

no sorry it’s not what I need
