SenseCrypt Docs
API ReferenceAdmin Auth Users

Revoke Device Key

DELETE/v1/admin/auth_users/{auth_user_id}/device_keys/{key_id}

Revoke one of the user's device keys.

That phone can no longer sign in or approve requests for this user, and its passkey stops working. The user's other phones, and other accounts on the same phone, are not affected. The user can enrol the phone again; to stop that, delete the user. Returns 404 when the user or key does not exist or the key is already revoked.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

auth_user_id*Auth User Id
Formatuuid
key_id*Key Id
Formatuuid

Response Body

application/json

curl -X DELETE "https://example.com/v1/admin/auth_users/497f6eca-6276-4993-bfeb-53cbbbba6f08/device_keys/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}