Just seven people were killed despite multiple blasts and a gunfight, and five of them were the attackers themselves, but the brazenness of their siege suggested a new brand of militancy in a country where low-level strikes on police are common.
It took security forces about three hours to end the attack near a Starbucks cafe and Sarinah's, Jakarta's oldest department store, after a team of militants traded gunfire with police and blew themselves up.
An Indonesian and a Canadian were killed in the attack. Twenty people, including an Algerian, Austrian, German and Dutchman, were wounded.
"A group of soldiers of the caliphate in Indonesia targeted a gathering from the crusader alliance that fights the Islamic State in Jakarta," the group said in a statement. It added that 15 people were killed.
Jakarta's police chief told reporters: "ISIS is behind this attack definitely," using a common acronym for Islamic State, and he named an Indonesian militant called Bahrun Naim as the man responsible for plotting it.
Police believe Naim is in the Syrian city of Raqqa.
The drama played out on the streets and on television screens, with at least six explosions and a gunfight in a movie theater. But the low death toll pointed to the involvement of local militants whose weapons were rudimentary, experts said.
In a sign of public unease, a bang caused by a tire bursting triggered a bomb scare that sent police cars rushing back to the scene hours after the attack.
"The president has said the nation and the people should not be scared and should not be defeated by acts of terror," said palace spokesman Ari Dwipayana.
Human Rights Watch's Andreas Harsono speaks to SBS from Jakarta:
Armored cars, helicopters
"The Starbucks cafe windows are blown out. I see three dead people on the road. There has been a lull in the shooting but someone is on the roof of the building and police are aiming their guns at him," Reuters photographer Darren Whiteside said as the attack unfolded.
Indonesian journalist Mustaqim Adamrah told SBS News he and his colleagues initially did not know what was happening when they heard the panicked noise outside their office.
"Me and my office colleagues didn't think it was the sound of explosions until the third one was heard and we saw people from another building rushing to the street," he said.
"We were panicking, everyone out there seemed to be panicking, but we were more into how to find out what's going on and report what needs to be reported.
"Yes, we were shocked, but we're not shattered, just like food and drink vendors who got to their customers [bystanders] who were only around 100 metres away from the scene. We're not afraid."
Police responded in force within minutes. Black armored cars screeched to a halt in front of the Starbucks and sniper teams were deployed around the neighborhood as helicopters buzzed overhead.
Jakarta police chief Tito Karnavian said one man entered the Starbucks cafe and blew himself up, wounding several inside.
As people poured out of the cafe, two waiting gunmen opened fire on them. At the same time, two militants attacked a police traffic post nearby, using what he described as hand grenade-like bombs.
After the militants had been overcome, a body still lay on the street, a shoe nearby among the debris. The city center's notoriously jammed roads were largely deserted.
Indonesia has seen attacks by Islamist militants before, but a coordinated assault by a team of suicide bombers and gunmen is unprecedented and has echoes of the sieges seen in Mumbai seven years ago and in Paris last November.
Australian Attorney-General George Brandis, who was in Jakarta recently to bolster security coordination, told the Australian newspaper he had "no doubt" Islamic State was seeking to establish a "distant caliphate" in Indonesia.
The last major militant attacks in Jakarta were in July 2009, with bombs at the JW Marriott and Ritz Carlton hotels.
The country had been on edge for weeks over the threat posed by Islamist militants.
Counter-terrorism police had rounded up about 20 people with suspected links to Islamic State, whose battle lines in Syria and Iraq have included nationals from several Asian countries.
History of attacks
Indonesia has the world's largest Muslim population, the vast majority of whom practise a moderate form of Islam.
The country saw a spate of militant attacks in the 2000s, the deadliest of which was a nightclub bombing on the holiday island of Bali that killed 202 people, most of them tourists.
Police have been largely successful in destroying domestic militant cells since then, but officials have more recently been worrying about a resurgence inspired by groups such as Islamic State and Indonesians who return after fighting with the group.
Alarm around the world over the danger stemming from Islamic State increased after the Paris attacks and the killing of 14 people in California in December.
On Tuesday, a Syrian suicide bomber killed 10 German tourists in Istanbul. Authorities there suspect the bomber had links to Islamic State.
Speaking in London, U.S. Secretary of State John Kerry condemned Thursday's attack.
"There is nothing in any act of terror that offers anything but death and destruction. And so we stand together, all of us, united in our efforts to eliminate those who choose terror," he said.
Harits Abu Ulya, a expert on militancy who knows Bahrun Naim, the militant named by Indonesian authorities, said he expected more attacks.
"This is an indication that he has been learning from the Paris attacks and he has studied the strategy," he said. "I still have doubts about the capability of the local militants to carry out attacks on a bigger scale. But it is a possibility."