curl -X DELETE http://localhost:3000/auth/keys/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer $ISOL8_MASTER_KEY"
{
"ok": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
Revoke a DB-backed API key by ID, permanently disabling it.
curl -X DELETE http://localhost:3000/auth/keys/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer $ISOL8_MASTER_KEY"
{
"ok": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
true when the key was successfully revoked.curl -X DELETE http://localhost:3000/auth/keys/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer $ISOL8_MASTER_KEY"
{
"ok": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
404 if no key with the given ID exists.Was this page helpful?