[IM] Record last API key usage