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.

  1. Smart home platform request format
  2. Provider response format
  3. Example

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
}

Example

curl -i -X POST 'https://example.com/v1.0/user/unlink' \
-H 'Authorization: Bearer 123qwe456a...' \
-H 'X-Request-Id: ff36a3cc-ec...'