SmartApps
Create an App
Changed onCreate an app owned by an account with the provided details. If the accountId query param is not provided, the app will be created under the default account of the user making the request.
post/smartapps
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:smartapps
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
accountIdstring uuid
Create the app with the owner being the provided account rather than the default account associated with the user making the request. Note that the user must have appropriate permissions to create apps for the specified account.
Headers
Authorizationstring string required
OAuth token
Request body
Example request
{
"iconImage": {
"url": "https://smart-home-monitor.com/image"
},
"oauth": {
"clientName": "My SmartThings Integration",
"scope": [
"r:installedapps",
"w:installedapps",
"x:installedapps"
],
"redirectUris": [
"https://myapp.com/oauth/callback",
"https://myapp.com/oauthin/callback"
],
"corsDomains": [
"https://myapp.com"
]
}
}Response
An app model.
Example response
{
"app": {
"appName": "security-home-monitor",
"appId": "c71b0a5b-7dab-41fe-b75f-7cf30246468e",
"appType": "API_ONLY",
"displayName": "Security Home Monitor",
"description": "An integration that leverages all security devices in your home - cameras, motion sensors, etc to provide\nyou with peace of mind and #security.\n",
"owner": {
"ownerType": "ACCOUNT",
"ownerId": "3f178632-79ed-4358-94de-280dbd7c206c"
},
"apiOnly": {
"targetUrl": "https://securityhome.com/smartthings",
"privacyPolicyUrl": "https://securityhome.com/privacy"
},
"createdDate": "2017-05-19T12:39:37Z",
"lastUpdatedDate": "2017-05-19T12:39:37Z"
},
"oauthClientId": "7cd4d474-7b36-4e03-bbdb-4cd4ae45a2be",
"oauthClientSecret": "9b3fd445-42d6-441b-b386-99ea51e13cb0"
}Changes
- info
endpoint added
- info