# Registering webhook via API without using SmartApp

**URL:** <https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149>\
**Category:** Support\
**Tags:** developers\
**Created:** [February 6, 2023, 6:49am UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149 "2023-02-06T06:49:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakash](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@prakash](https://community.smartthings.com/u/prakash)\
**Post date:** [February 6, 2023, 6:49am UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/1 "2023-02-06T06:49:33Z")

</div>

I want to host my own application on public IP and i shall expose an API for recieving any events (device/hub/smarthingcloud) from smarthing platform.

Is there a way i can do this without creating/integrating a SmartApp into my application?  
I did not find any API for webhook registeration from API docs?

Please let me know if this is possible or not?

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [February 7, 2023, 7:06pm UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/2 "2023-02-07T19:06:02Z")

</div>

Welcome to the SmartThings Community, @prakash!

> [@prakash](#):
>
> Is there a way i can do this without creating/integrating a SmartApp into my application?

If I’m understanding correctly based on your description. Do you want to create subscriptions without creating a SmartApp?  
A SmartApp’s token is capable of creating subscriptions which is something a Personal Access Token can’t do. You also need an `installedAppId` as specified in the API reference \> [API | Developer Documentation | SmartThings](https://developer.smartthings.com/docs/api/public/#tag/Subscriptions)

To be able to install it, you need to see the SmartApp the ST app’s catalog, for this, you must register it in the Developer Workspace and deploy it to test.

---

<div class="post-metadata">

**Author:** ![prakash](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@prakash](https://community.smartthings.com/u/prakash)\
**Post date:** [February 8, 2023, 1:42pm UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/3 "2023-02-08T13:42:28Z")

</div>

> [@nayelyz](#):
>
> to install it, you need to see the SmartApp the ST app’s catalog, for this, you must register it in the Developer Workspace and deploy it to

@nayelyz thanks for the quick reply.  
What i want to do is:  
I have my own server for monitoring/controlling my IoT devices. I want smarthing devices to be included to my server, receive events and control smarthing devices. All this from my server.

All I have is smarthing account credentials, now without manual intervention how to achieve my requirements? Is there a way?

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [February 21, 2023, 11:45pm UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/4 "2023-02-21T23:45:48Z")

</div>

Sorry for the delay.

> [@prakash](#):
>
> now without manual intervention how to achieve my requirements? Is there a way?

As I mentioned, subscriptions can only be created by an `installedApp` instance which can be done with a SmartApp, so, you can add the corresponding endpoints to your current server for the SmartThings requests and handle them accordingly.

For example, in this sample to create a SmartApp, the POST requests from ST are received directly in the project’s root (`/`). You still need to register the SmartApp and install it in your account.

> [@Simple SmartApp Tutorial (SmartApp SDK)](https://community.smartthings.com/t/simple-smartapp-tutorial-smartapp-sdk/194664):
>
> Getting Started with a Simple SmartApp using the new SmartApp SDK This SDK builds on the CoreSDK and provides kick start for SmartApp development. The SmartApp SDK reduces the amount of code necessary to write a SmartApp using the new platform and API. The SmartApp SDK supports both Webhook and AWS Lamda deployment, but this tutorial will focus on the deploying a webhook SmartApp using Glitch. Maybe Try this first: Prerequisites Samsung Account Developer Workspace Account Github or Glitch Account One Contact Sensor One or more Light Devices Guide I suggest having all of the required accounts created before getting started. You will need a location prepared with at least one contact sensor and one or more light devices. Links SDK: [GitHub - SmartThingsCommunity/smartapp-sdk-nodejs: Ja…](https://github.com/SmartThingsCommunity/smartapp-sdk-nodejs)

If you have an organization, you could submit a request to access OAuth integrations: [OAuth Integrations | Developer Documentation | SmartThings](https://developer.smartthings.com/docs/connected-services/oauth-integrations#request-to-integrate-third-party-applications)

---

<div class="post-metadata">

**Author:** ![prakash](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@prakash](https://community.smartthings.com/u/prakash)\
**Post date:** [February 27, 2023, 7:27am UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/5 "2023-02-27T07:27:01Z")

</div>

Hello @nayelyz,

Just to set the context, i have my own cloud platform for IoT devices with N users.  
I wanted to integrate devices from ST platform to my cloud platform. Do you support this usecase? How?

I did experiment with smartApp by creating an ST account and registering the app. I was able to get events via webhook url.  
Suppose if there are 10 users each with 5 devices on ST, in order to integrate these devices on my cloud platform what shall i do?  
Install smartApp (10 times for each user) in order to get events for their devices?  
Is there any other way that i can try? Appreciate your suggestions?

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [February 28, 2023, 10:53pm UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/6 "2023-02-28T22:53:23Z")

</div>

> [@prakash](#):
>
> Install smartApp (10 times for each user) in order to get events for their devices?

You cannot install SmartApps in the name of users, they would need to register it in the Dev Workspace and install it.  
The other way is OAuth integration as I mentioned above but you need to be part of an organization and your request will be evaluated internally.

You can control devices using their [Personal Access Token](https://account.smartthings.com/tokens) (for example, send commands, see their current status and details) but you won’t be able to create [subscriptions](https://developer.smartthings.com/docs/connected-services/subscriptions) to them.

---

<div class="post-metadata">

**Author:** ![prakash](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@prakash](https://community.smartthings.com/u/prakash)\
**Post date:** [March 1, 2023, 5:15am UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/7 "2023-03-01T05:15:46Z")

</div>

Thanks for the reply.  
With smarthings cli, i was able to install smartApp for an user using PAT.

Can you answer this question please:  
I wanted to integrate devices from ST platform to my cloud platform. Do you support this usecase? How to do it?

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [March 1, 2023, 3:23pm UTC](https://community.smartthings.com/t/registering-webhook-via-api-without-using-smartapp/258149/8 "2023-03-01T15:23:47Z")

</div>

> [@prakash](#):
>
> I wanted to integrate devices from ST platform to my cloud platform. Do you support this usecase? How to do it?

Can you provide more details about this, please? What do you mean by integrate? Connect directly, control devices already installed on the ST side?

> [@prakash](#):
>
> With smarthings cli, i was able to install smartApp for an user using PAT.

This is strange, people mentioned they were able to create an app using this endpoint: [app \> createApp](https://developer.smartthings.com/docs/api/public/#operation/createApp), but you cannot deploy it to test using the API for the user to select his devices available from that SmartApp because you need an `installedAppId` to create the subscription.
