Menu · Listing Alerts
Listing Alerts

Assign buyers and searches to agents

Add your agents as the people alerts come from, pick a default, and assign each buyer or saved search to an agent; which agent an alert is sent as follows one rule.

View as Markdownopenapi.json

Every alert is sent as one of your agents. The agent's name is the From name, their email is the Reply-To, so a buyer who replies writes to the agent, and their phone and photo appear in the alert data for your template.

Add your agents

await fetch("https://idx.ruuster.com/v1/agents", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.IDX_SECRET_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    name: "Dana Reyes",
    email: "dana@example-homes.com",
    phone: "512-555-0101",
    photoUrl: "https://www.example-homes.com/team/dana.jpg",
    mlsAgentId: "123456",
    externalId: "crm-7",
  }),
});

Use your CRM's id for the agent as externalId. Sending the same externalId again updates that agent, so you can sync your team on a schedule without making copies.

The default agent

The first agent you add is the default. Make another agent the default with POST /v1/agents/{agentId}/default. Archiving the default agent (DELETE /v1/agents/{agentId}) makes your oldest active agent the default. Archived agents are kept so past alerts still show who sent them.

Assign buyers and searches

You can assign an agent to a buyer, to one saved search, or to both:

// The buyer's agent
await fetch(`https://idx.ruuster.com/v1/buyers/${buyerId}`, {
  method: "PATCH",
  headers: { Authorization: `Bearer ${process.env.IDX_SECRET_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ agentId: "agt_Q8m2Vx7Lp4Tz" }),
});

// One search's agent
await fetch(`https://idx.ruuster.com/v1/saved-searches/${searchId}`, {
  method: "PATCH",
  headers: { Authorization: `Bearer ${process.env.IDX_SECRET_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ agentId: "agt_R3n6Wy1Kc9Hs" }),
});

Which agent an alert is sent as

One rule, checked at send time:

  1. The saved search's agent, when it has one.
  2. Otherwise the buyer's agent.
  3. Otherwise your default agent.

An archived agent is skipped. A digest that covers several searches uses the buyer's agent, then the default.

The From name

The From name is your fromNameTemplate setting with the agent's name in it. The default is {agentName}. A team brand works too: {agentName} | Example Homes becomes Dana Reyes | Example Homes.