Skip to content
GurtOS

Remove this device

DELETE
/pair/self
curl --request DELETE \
--url http://127.0.0.1:7700/api/pair/self \
--header 'Authorization: Bearer <token>'

A paired device stops its own token and drops its push subscription. Its next request gets 401. Any paired device may do this, not only the owner’s.

The device is revoked.

Media typeapplication/json
object
id
required
string
revoked
required
boolean

Example

{
"revoked": true
}

The request carries no paired device token.

Media typeapplication/json
object
error
required

What went wrong

string

Example generated

{
"error": "example"
}