Twitter is suing Texas Attorney General Ken Paxton, for "abusing his authority" to target the social media giant as it suspended former President Donald Trump's account in the aftermath of the January 6 Capitol riot, US media reported.

In the lawsuit that has been filed in the Northern District of California on Monday, Twitter said the action was to stop Paxton from harassing the company in retaliation for its content-moderation decisions he may disagree with, ABC News reported.

"Twitter seeks to stop AG Paxton from unlawfully abusing his authority as the highest law-enforcement officer of the State of Texas to intimidate, harass, and target Twitter in retaliation for Twitter’s exercise of its First Amendment rights," the suit says.

Also read: Arkansans Governor puts a near-blanket ban on abortions

"The rights of free speech and of the press afforded Twitter under the First Amendment of the U.S. Constitution include the right to make decisions about what content to disseminate through its platform," it adds according to ABC News.

Five days after Twitter suspended Trump's account, the Texas Attorney General issued a civil investigative demand to Twitter "seeking volumes of highly confidential documents concerning Twitter’s internal content moderation processes -- the public disclosure of which would undermine their effectiveness, and compromise Twitter’s ability to effectively and efficiently moderate content on its platform," the court documents claim.