The court has fixed October 15 as the next date for hearing.
"Arvind Kejriwal and Sanjay Singh today appeared before the court here which granted them bail. Ashish Khetan has been asked to appear before the court on the next date of hearing which has been fixed as October 15," AAP member and advocate H S Phoolka told reporters here.
The court had on July 18 issued summons to Kejriwal, Singh, who is AAP's Punjab affairs in-charge, and Khetan, a journalist-turned-politician, to appear before it in the defamation case.
A large number of AAP supporters, carrying placards, gathered at Amritsar circuit house here to express solidarity with Kejriwal and other party leaders.
Tight security arrangements were made by the police to maintain law and order.
It is Kejriwal's third visit to Amritsar this month. He first came to the city on July 3 for launching party's youth manifesto ahead of the 2017 state Assembly elections and then on July 18 to perform 'Sewa' (volunteer service) at the Golden Temple .