I'm making an edit to my user page on test2.wikipedia.org
https://test2.wikipedia.org/wiki/User_talk:DBarratt_(WMF)
and I can do this without a problem when I am on-wiki.
However, if I make an edit to the same page with the API (logged in as the same user with OAuth) I get a request for a captcha
array:1 [ "edit" => array:2 [ "captcha" => array:4 [ "type" => "image" "mime" => "image/png" "id" => "1221847824" "url" => "/w/index.php?title=Special:Captcha/image&wpCaptchaId=1221847824" ] "result" => "Failure" ] ]
I see that this is one of the possible responses from the API:
https://www.mediawiki.org/wiki/API:Edit#CAPTCHAs_and_extension_errors
but why does this happen if you are logged in with OAuth and not when logged in directly?
Is there a way to avoid this?