I’m curious about this, are you trying to achieve something with Home Assistant? Because there’s already an official integration about this that the HA and ST teams worked on and was announced here: New Integration Between Home Assistant and SmartThings
This is to avoid duplicated efforts, but as mentioned above, if your flow of the API_ONLY app is successful, then, you’ll get an installedAppId in the same access token object, for example:
{
"access_token":"41fb5735-d9af-4041-...",
"token_type":"bearer",
"refresh_token":"f804c515-2afa-4a49-...",
"expires_in":85744,
"scope":"r:locations:* x:devices:* r:devices:*",
"access_tier":0,
"installed_app_id":"cac8fb70-4e2c-4630-..."
}
If you haven’t registered a targetURL, you should edit the app to do so.
Remember this will also trigger a CONFIRMATION request (similar to a SmartApp) which means you need to verify the app to start receiving the events. This means you don’t need the an API_ONLY app to create another SmartApp for the subscriptions.