Query headers
Last updated on August 26, 2022
The structure is used for all queries to APIs and webhooks.
Name | Mandatory? | Description |
Content-Type | ✔︎ | Format of data transmitted or sent. Json is used |
Authorization | ✔︎ | Authorization token. The vendor or an agent app installed on the controller sends queries with its own key, while Sber Smart Home sends them with the user's access token |
X-Request-Id | Reqiest ID. Used for logging |
POST /v1/devices HTTP/1.1
Host: example.com
Content-Type: application/json
Authorization: Bearer qwerty-1234-...
X-Request-Id: abcd-0000-ifgh-...