Notification of unlinked accounts
Notifies you that the user's provider account and Yango 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
Yango Smart Home 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 | User's authorization token. | Yes |
X-Request-Id | Request ID. Must be logged on the provider's side for investigating incidents and problems. | Yes |
Header | Description | Required |
---|---|---|
Authorization | User's authorization token. | 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 Yango Smart Home.
HTTP/1.1 200 OK
{
"request_id": String
}
HTTP/1.1 404 Not Found
Example
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