Remove this device
DELETE
/pair/self
const url = 'http://127.0.0.1:7700/api/pair/self';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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"}