--- id: get-devices sidebar_label: Get Devices hide_title: true hide_table_of_contents: true api: {"tags":["Plex.tv"],"description":"Get Devices","operationId":"getDevices","parameters":[{"name":"includeHttps","description":"Include Https entries in the results","in":"query","schema":{"type":"number","enum":[0,1]}},{"name":"includeRelay","description":"Include Relay addresses in the results","in":"query","schema":{"type":"number","enum":[0,1]}},{"name":"includeIPv6","description":"Include IPv6 entries in the results","in":"query","schema":{"type":"number","enum":[0,1]}}],"responses":{"200":{"description":"List of Plex Devices","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"Hera"},"product":{"type":"string","example":"Plex Media Server"},"productVersion":{"type":"string","example":"1.31.3.6868-28fc46b27"},"platform":{"type":"string","example":"Linux"},"platformVersion":{"type":"string","example":"5.19.17-Unraid (#2 SMP PREEMPT_DYNAMIC Wed Nov 2 11:54:15 PDT 2022)"},"device":{"type":"string","example":"PC"},"clientIdentifier":{"type":"string","example":"96f2fe7a78c9dc1f16a16bedbe90f98149be16b4"},"createdAt":{"type":"string","format":"date-time","example":"2022-06-02T00:54:26.000Z"},"lastSeenAt":{"type":"string","format":"date-time","example":"2023-04-11T05:53:59.000Z"},"provides":{"type":"string","example":"server"},"ownerId":{"type":"string","format":"nullable"},"sourceTitle":{"type":"string","format":"nullable"},"publicAddress":{"type":"string","example":"68.248.140.20"},"accessToken":{"type":"string","example":"CR3nxzsaSHdWx_WwZsJL"},"owned":{"type":"boolean"},"home":{"type":"boolean"},"synced":{"type":"boolean"},"relay":{"type":"boolean"},"presence":{"type":"boolean"},"httpsRequired":{"type":"boolean"},"publicAddressMatches":{"type":"boolean"},"dnsRebindingProtection":{"type":"boolean"},"natLoopbackSupported":{"type":"boolean"},"connections":{"type":"array","items":{"type":"object","properties":{"protocol":{"type":"string","example":"http"},"address":{"type":"string","example":"172.18.0.1"},"port":{"type":"number","example":32400},"uri":{"type":"string","example":"http://172.18.0.1:32400"},"local":{"type":"boolean"},"relay":{"type":"boolean"},"IPv6":{"type":"boolean"}}}}}}}}}},"401":{"description":"Unauthorized - Returned if the X-Plex-Token is missing from the header or query.","content":{"application/json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number","example":1001},"message":{"type":"string","example":"User could not be authenticated"},"status":{"type":"number","example":401}}}}}}}}}},"method":"get","path":"/resources","servers":[{"url":"https://plex.tv/api/v2"}],"security":[{"Token":[],"ClientIdentifier":[],"Device":[],"DeviceName":[],"Platform":[],"PlatformVersion":[],"Product":[],"Version":[]}],"securitySchemes":{"Token":{"description":"Plex Authentication Token","type":"apiKey","in":"header","name":"X-Plex-Token"},"ClientIdentifier":{"description":"Plex Authentication Token","type":"apiKey","in":"header","name":"X-Plex-Client-Identifier"},"DeviceName":{"description":"Primary name for the device eg. `Plex Web (Chrome)`","type":"apiKey","in":"header","name":"X-Plex-Device-Name"},"Device":{"description":"The type of device your application is running on\nDevice name and or model number, eg `iPhone3,2`, `Motorola XOOMâ„¢`, `LG5200TV`\n","type":"apiKey","in":"header","name":"X-Plex-Device"},"PlatformVersion":{"description":"Operating system version\neg `4.3.1`, `10.6.7`, `3.2`\n","type":"apiKey","in":"header","name":"X-Plex-Platform-Version"},"Platform":{"description":"Platform name \neg: `Web`, `iOS`, `MacOSX`, `Android`, `LG`\n","type":"apiKey","in":"header","name":"X-Plex-Platform"},"Product":{"description":"Plex application name \neg: `Laika`, `Plex Media Server`, `Media Link`\n","type":"apiKey","in":"header","name":"X-Plex-Product"},"Version":{"description":"Plex application version number","type":"apiKey","in":"header","name":"X-Plex-Version"}},"info":{"title":"Plex-API","summary":"A Plex.TV API Map","description":"An Open API Spec for interacting with Plex.tv","version":"0.0.3","contact":{"name":"Luke Hagar","url":"https://www.LukeHagar.com","email":"Lukeslakemail@gmail.com"},"license":{"name":"MIT","identifier":"MIT","url":"https://opensource.org/licenses/MIT"}},"postman":{"name":"Get Devices","description":{"content":"Get Devices","type":"text/plain"},"url":{"path":["resources"],"host":["{{baseUrl}}"],"query":[{"disabled":false,"description":{"content":"Include Https entries in the results","type":"text/plain"},"key":"includeHttps","value":""},{"disabled":false,"description":{"content":"Include Relay addresses in the results","type":"text/plain"},"key":"includeRelay","value":""},{"disabled":false,"description":{"content":"Include IPv6 entries in the results","type":"text/plain"},"key":"includeIPv6","value":""}],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET"}} sidebar_class_name: "get api-method" info_path: docs/plex-tv/plex-api --- import ApiTabs from "@theme/ApiTabs"; import DiscriminatorTabs from "@theme/DiscriminatorTabs"; import MethodEndpoint from "@theme/ApiDemoPanel/MethodEndpoint"; import MimeTabs from "@theme/MimeTabs"; import ParamsItem from "@theme/ParamsItem"; import ResponseSamples from "@theme/ResponseSamples"; import SchemaItem from "@theme/SchemaItem"; import SchemaTabs from "@theme/SchemaTabs"; import TabItem from "@theme/TabItem";