Added nonce to ApiMethod