type URI on every key_not_found problem body: https://docs.get-exo.com/errors/key_not_found.
HTTP status: 404 Not Found.
Why it happens
Keys are scoped to the caller. Another member’s key, another organization’s key and a nonexistent id all resolve to not found, which keeps key hashes unenumerable. Revoking a key you own that is already revoked is a 204, not this. The row still matched, so the retry is safe.How to fix it
- Use the
idfromGET /v1/keys. It is the key’s SHA-256 hash, never the plaintext. - If you are trying to revoke another member’s key, ask an organization admin to do it from the dashboard.
Related
permission_deniednot_found- Errors for the envelope and the full catalogue