API:Assert

To make sure your bot doesn't edit while logged out, the API provides an assert parameter which you can add to any request.

Checks that your account is logged in Checks that your account has the "bot" user right

If the assertion fails, error codes of   or   will be returned.