Error reference
last_active_key
Refusing to revoke your only key
- HTTP status
- 400
- Error type
- invalid_request
What it means#
The revocation would have left the account with no working key.
What to do#
Create the new key first, verify it, then revoke the old one. That ordering means rotation never has a window in which your integration is dead.
This guard exists because the alternative is unrecoverable through the API itself: with no active key you cannot authenticate to create one, and recovery becomes a support ticket.
The error shape#
{
"error": {
"type": "invalid_request",
"code": "last_active_key",
"message": "\u2026",
"doc_url": "https://docs.grahvani.in/errors/last_active_key",
"request_id": "req_01JQ8ZK3M4N5P6Q7R8S9T"
}
}Full list: all error codes · error handling guide.
Grahvani API — a product of AstroCorp Techlab Pvt Ltd · GSTIN 36AAMCC3512G1ZU
Base URL
https://api.grahvani.in