Flagging a post with API broken

OK, I’ve created a specific user to do the flagging via the API. Will see how it goes…