Skip to main content


Hello @Friendica Support When I use the API /api/v1/accounts/verify_credentials with the wrong password, it returns a 401 error and as responseText a html page. According to this documentation git.friendi.ca/friendica/frien… it should return a JSON as responseText. In earlier versions it returned a JSON. Will that be corrected in the future or should I handle the 401 error? In that case the documentation probably needs an update.
in reply to Marco R.

In line 184 of git.friendi.ca/friendica/frien… it throws this Exception. I think a JSON return would be better, but I don't know how other clients handle this.
in reply to Marco R.

As texted inside the Issue:

It depends on the used extension for the call.

/api/v1/accounts/verify_credentials.json returns a JSON error, /api/v1/accounts/verify_credentials doesn't.
But it's like Twitter expects it as well.

Try
api.twitter.com/1.1/account/ve… (empty page)
api.twitter.com/1.1/account/ve… (JSON Error)

Friendica Support reshared this.

in reply to Philipp Holzer

Wird. This also returns a error JSON with the right credentials. This Mastodon API seems unusable...

Friendica Support reshared this.

in reply to Marco R.

Ah okay. Didn't know about the different return with the .json call. Then I change my request in the app.

Friendica Support reshared this.

in reply to Marco R.

I changed the API in my app, you can close the bug.

Friendica Support reshared this.