Notification of unlinked accounts
Notifies you that the user's provider account and Yandex account were unlinked (the link between them was deleted by the user). For example, if the user logged out from all accounts.
If the user has unlinked the accounts, the user token is revoked regardless of whether the request response is valid.
Smart home platform request format
The smart home platform sends a request to the provider's Endpoint URL (https://example.com/).
POST https://example.com/v1.0/user/unlink
Request headers
Header |
Description |
Required |
Authorization |
Authorization token of the skill owner. |
Yes |
X-Request-Id |
Request ID. Must be logged on the provider's side for investigating incidents and problems. |
Yes |
Provider response format
The provider must use the correct format to respond to the request received from the smart home platform.
HTTP/1.1 200 OK
{
"request_id": String
}
Parameter |
Type |
Description |
Required |
request_id |
String |
Request ID. |
Yes |
HTTP/1.1 404 Not Found
Example
RequestResponse successfulResponse with error
curl -i -X POST 'https://example.com/v1.0/user/unlink' \ -H 'Authorization: Bearer 123qwe456a...' \ -H 'X-Request-Id: ff36a3cc-ec...'
HTTP/1.1 200 OK { "request_id": "ff36a3cc-ec34-11e6-b1a0-64510650abcf" }
HTTP/1.1 500 Internal Server Error
String enclosed in quotation marks, for example: "Hello, world"
.