Seafile Web Api 2.1 - Two factor

If the two factor auth is not enabled for a certain user, you won’t encounter this error message. So I think the return info can serve as a good indicator. To send the auth code, please check my answer in this post: Ubuntu SeaDrive without GUI - obtain auth token with two-factor