ErrorsDo not retry
API_KEY_MODE_MISMATCH
Key mode mismatch
Fix
Call the rotate endpoint with a key in the same mode as the key you rotate.
When
You tried to rotate a key from the other mode (live or test).
Returned by
The calling API key: id, name, scopes, organization, mode and useReplace the calling key: the new secret works at once, the old one after the overlapReplace a key: the new secret works at once, the old one retires after the overlapA key with its parent, successor, children count and last useRevoke a key for an authorized organization, or a platform-wide key with orgId=nullList keys for an authorized organization, or platform-wide keys with orgId=nullCreate an organization or platform API keyRetire a key at a later instant: it stops working thenWhat a key did lately: calls by action and the latest calls, without bodies or secrets