Get all smart modules

GET/homes/{homeId}/smartModules

Base URL: https://api.tinkermode.com

Get the list of Smart Modules available for the home.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a user, service account, or project API key.

Path parameters

NameTypeRequiredConstraintsDescription
homeIdintegerYesThe unique ID for a specified home.

Responses

200 Successful retrieval of all smart modules.

Content type: application/json

Definition of a Smart Module created for a project.

An array of objects with the following shape:

PropertyTypeRequiredConstraintsDescription
bulkDataLabelstringNoIf module accepts bulk data, this is an identifier for bulk data upload.
configDataobjectNoConfiguration data. Used only during creation/update of the Smart Module.
creationTimestringNoread-only (server-generated); format: date-timeTimestamp of entry creation.
dataSourceModulesarray<string>Nounique itemsIf module uses other modules as data sources, this is the list of module IDs of the data sources.
descriptionstringYesA short description of the Smart Module.
idstringYesread-only (server-generated); pattern: ^[a-z0-9][a-z0-9_\-]+[a-z0-9]$Smart Module ID. Must be unique within the project. Must be 3 or more lowercase alphanumeric characters; dashes ('-') and underscores ('_') may be used after the first character but must be followed by 1+ lowercase alphanumeric characters.
moduleTypestringYesType of Smart Module. Must be one of the recognized type IDs.
subscribedEventsarray<string>Nounique itemsIf module accepts events, this is the list of event types the Smart Module subscribes to.
suspendedbooleanNoSet to true to disable this Smart Module.

Response example

[
  {
    "description": "Webhook for device commands",
    "id": "001",
    "moduleType": "webhooks",
    "suspended": false
  },
  {
    "description": "Time series database for sensor data",
    "id": "sensor-data",
    "moduleType": "tsdb",
    "suspended": false
  }
]

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.