Denis Itumbi has been released on shs 10,000 cash bail.
Itumbi is State House director of digital communication and new media.
He was set free by Magistrate Zainab Abdul.
The prosecution wanted him detained for nine more days.
The police were ordered to give him back his phone within 14 days.
He has been barred from commenting on the case on social media and has also been compelled to report to Muthaiga police station every two days before the mention of his case on July 22.
He was arrested over links to DP Ruto’s fake assassination letter.
Last week, Itumbi told the court that he has an audio and video recording of a plot to assassinate DP Ruto.