They were a middle-class family in Pakistan, living in a comfortable three-bedroom apartment with a modern kitchen and a PlayStation for the three kids. Fluent in English, the father ran his own moving company while the mother taught art.

A death threat signed by a Muslim extremist group — with three bullets attached — compelled the Christian family to leave it all behind 18 months ago. Now they live in a barren room in Bangkok, where the children share a double bed and the parents sleep on the floor. They cook on a propane burner on a tiny balcony. A picture of Jesus — the source of their solace and their troubles — hangs on the inside of the door.

This, increasingly, is the life of the asylum-seeker and refugee. More than half the 14 million refugees and asylum-seekers under the mandate of the U.N. refugee agency do not live in the camps they are often associated with. A growing number live in cities and towns around the world. Across Asia, from India to the Pacific islands, there are about half a million such "urban refugees," according to the agency.

The Pakistani family no longer fears for their lives, but they face other fears — arrest, hunger and the possibility that they will never be able to live freely.

Unable to work legally and with no legal status in Thailand, they and others like them must remain mostly hidden while they scrape by on odd jobs and donations from churches, aid groups and individuals. Their children, all elementary-school age, don't go to school and spend entire days indoors.

"We just wanted to save our lives," said the father, who has overstayed his visa and like the dozen other asylum-seekers interviewed for this story asked not to be identified for fear of arrest. "We didn't know anything when we arrived. Now we are just trying to survive."

Many asylum-seekers pin their hopes on an elusive prize: resettlement in a third country such as the U.S. or Canada through a process overseen by the U.N. High Commissioner of Refugees. That can take five years or more, and it often doesn't happen at all.

The surge of urban refugees challenges reluctant host countries like Thailand, which in the past has allowed refugees from surrounding countries into border camps, but doesn't legally recognize asylum-seekers or refugees.

It's relatively easy to obtain a Thai tourist visa, one reason the number of asylum-seekers in Bangkok has jumped several-fold to more than 8,000 over the past few years, according to numbers from the UNHCR. The biggest and fastest-growing contingent here is from Pakistan, experts say, while other big groups come from Sri Lanka, Vietnam, Somalia and Syria.

When they land, many are shocked to discover they face arrest once their visas run out. They expect the UNHCR will protect them, but refugee advocates say Thai police generally ignore U.N. letters declaring them to be "persons of concern." Thailand never signed the 1951 U.N. Refugee Convention that protects refugees' rights; neither have neighbors Malaysia and Indonesia, where thousands more asylum-seekers live.

So these urban refugees scrape by in limbo, freer than those in camp settings but in some ways more vulnerable.

"This is the future," said Mireille Girard, the Thailand representative for the UNHCR. "We really have to adjust to providing assistance in urban environments."

Despite the hardships, many say they will never return home. They are too afraid.

"We'll just face the same sort of threats again," said the Pakistani mother. "I'm not willing to sacrifice my children for that."

___

In Pakistan, the couple and some Catholic friends helped run a small, free school for poor children in Pakistan. One morning in 2013, a warning signed by a militant Muslim group was slipped under the door of the school office.

"Stop giving missionary education to Muslim children. Otherwise, we will shoot you and your children," said the threat, which was viewed by The Associated Press.

Ten days later, the school received another warning — this time with the bullets. The school volunteers filed a complaint to the police; the AP viewed a copy of the document, which had been stamped by local police to indicate they had received it. The couple's account was corroborated by several people contacted by the AP.

The couple said the school never taught Christianity to Muslim children, but did teach Bible stories and prayers to the Christian kids when their Muslim classmates were not there. They said that sometimes the Muslim kids would hang around, hear the prayers and recite them at home.

Human-rights groups say Pakistan's religious minorities are increasingly persecuted — not only Christians but Hindus and Ahmadis, an Islamic sect rejected by mainstream Muslims. They say that although no one has been executed under the country's harsh blasphemy law, it has been used to threaten non-Muslims and incite mob violence. In November, a Christian couple was killed by a mob for allegedly desecrating the Quran.

An estimated 12,000 religious minorities have fled Pakistan since 2009, according to Farrukh Saif, who heads a minority advocacy group that supports asylum-seekers in Bangkok.

The threatened couple fled to Thailand because friends said it was easy to get a tourist visa and because other Christians had gone there.

"People told us, 'Save your lives first, then worry about the other things,'" the father said.

After hiding for a month, they packed two suitcases of their belongings and boarded a midnight flight for Bangkok.

___

When they arrived in the steamy Thai capital, relief quickly turned to anxiety.

The food, the language — everything was new. The father went to the UNHCR to register as an asylum-seeker and was shocked to learn he would have to wait two years — until September 2015 — just to get his first interview in the "refugee status determination" process. Now, for new arrivals, the wait is three years.

The U.N. agency has more than 60 staffers in Bangkok working to verify thousands of asylum-seekers' stories and determine whether they are refugees with well-founded fears of persecution, said the UNHCR's Girard. Each case must be examined to screen out those trying to exploit the system, such as those being trafficked by smuggling rings.

"We have to be very strict in recognizing who is a genuine refugee and who is not," she said.

For those waiting, money quickly becomes an issue.

After exhausting their savings, the Pakistani family visited churches for support. Most turned them down. Eventually, one congregation offered about $100 a month.

The mother found a job teaching English to Thai children. She earns 8,000 baht ($250) a month, enough to cover rent, utilities and a bit of food.

The father, jobless for many months, recently found work at a nursery, but that means their three children are alone in the apartment all day. And now both parents could be arrested for working illegally.

"When I go to work, I don't know if I'm going to come back to my kids or not," said the father.

Those arrested typically wind up in the Immigration Detention Center. The only way out is paying for your own flight home or finally gaining resettlement overseas. Some stay in detention for years.

Veerawit Tianchainan, executive director for the Thai Committee for Refugees Foundation, said the Thai government fears that recognizing asylum-seekers and refugees would draw more of them. He said Thailand's location and ease of access will draw desperate people anyway, and reforms are needed to address that reality.

Government ministries have had informal discussions about legislation that would protect asylum-seekers and refugees for one year, without granting the right to work, Veerawit said.

Sihasak Phuangketkeow, the permanent secretary at Thailand's Foreign Ministry, said the proposal merits a serious look, but is not in the pipeline for formal consideration.

___

The first interview with the U.N. can be traumatic.

People are asked to provide evidence of persecution. Some break down in tears or can't express themselves clearly, said Medhapan Sundaradeja, the Thailand director for Asylum Access, a nonprofit group that gives asylum-seekers free advice.

Decisions can take months. Inconsistencies can lead to cases getting rejected, though asylum-seekers can appeal.

Files of people recognized as refugees are then sent to potential host countries to be considered for resettlement, a process that typically takes another 12 to 18 months.

But of the roughly 860,000 most vulnerable refugees worldwide believed to need resettlement in 2013, only 80,000 spaces were available. The U.S. accounted for about 70 percent of those.

The Pakistani father says they have no choice but to wait. He has no doubt what Muslim extremists will do if he returns: "I know they will kill both of us, my wife and me, and they won't spare my children."

So he waits and dreams of a life where they don't need to hide and where his children can freely attend school.

"We just want to go where our lives are safe," he says with a sigh, "and we have some freedom."

__

Associated Press reporter Adil Shakeel in Karachi, Pakistan, contributed to this report.

___

Follow Malcolm Foster on Twitter at http://twitter.com/mjfosterap