Query headers

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 sends queries using its key, while Sber Smart Home applies the user's access token.
X-Request-Id The query ID from Sber Smart Home. It is used for webhook queries and logging.
POST /v1/devices HTTP/1.1
Host: example.com
Content-Type: application/json
Authorization: Bearer qwerty-1234-...
X-Request-Id: abcd-0000-ifgh-...