# \[Unsupported\] Homey v2 REST API

**URL:** <https://community.homey.app/t/unsupported-homey-v2-rest-api/7268>\
**Category:** Developers\
**Created:** [January 18, 2019, 3:07pm UTC](https://community.homey.app/t/unsupported-homey-v2-rest-api/7268 "2019-01-18T15:07:04Z")\
**Posts on this page:** 1\
**Page:** 5

<div class="post-metadata">

**Author:** ![Manu\_Eug](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/manu_eug/32/31261_2.png) [@Manu\_Eug](https://community.homey.app/u/Manu_Eug)\
**Post date:** [December 11, 2021, 8:34am UTC](https://community.homey.app/t/unsupported-homey-v2-rest-api/7268/81 "2021-12-11T08:34:53Z")

</div>

For anyone interested I implemented a slightly adjusted version from [Solweb](https://homey.solweb.no/advanced-api-usage/bearertoken) in C#.

The complete source code is available on [Github Homey-.Net](https://github.com/epsmae/Homey-.Net). There is also a WPF Sample application and a Nuget package available.

```auto
// Homey Login credentials
private const string UserName = "<USER_NAME>";
private const string Password = "<PASSWORD>";

// client id and client secret from: https://tools.developer.homey.app/api/projects
// cloud id from: https://tools.developer.homey.app/tools/system 
private static HomeyApiConfig _apiConfig = new HomeyApiConfig
{
    ClientId = "<CLIENT_ID>",
    ClientSecret = "<CLIENT_SECRET>",
    CloudId = "<CLOUD_ID>"
};

// You can check the local homey ip over the app with More/Settings/General/About
HomeyClient client = new HomeyClient
{
    HomeyIp = HomeyIp
};

client.Authenticate(_apiConfig, UserName, Password)

```

[Previous page](https://community.homey.app/t/unsupported-homey-v2-rest-api/7268.md?page=4)
