Revoke a device connection
DELETE
/connections/device/{family_id}
const url = 'https://api.engram.page/connections/device/example';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 https://api.engram.page/connections/device/example \ --header 'Authorization: Bearer <token>'Revokes a linked device family (e.g. an Obsidian plugin install) by its family id, invalidating its refresh tokens. Session-auth only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”family_id
required
string
Device family id
Responses
Section titled “Responses”Revoked (empty body)
No such connection
Media typeapplication/json
MessageError
object
error
required
string
Example
{ "error": "not found"}