Menu · Operations
Operations

Setup actions for your AI assistant

The setup actions your AI coding assistant can run on your Listings API account, through the npx @ruuster/idx setup commands, the setup address or the Claude connection. Who can connect one, the limits, and what an assistant can never do.

View as Markdownopenapi.json

Your AI coding assistant (Claude Code, Codex, Cursor or similar) can do most of your account's setup with you: save your market and your website address, put the practice keys in your project, ask for Compliance Review, and more. It does this through a setup connection that you approve, never with a key pasted into a chat. Every step it finishes shows on your console's Overview, marked as done by your AI assistant.

START_HERE.md tells the assistant when to run each action. This page is the reference.

Connect your assistant

  1. The assistant runs npx @ruuster/idx setup connect --write .env.local --name "Your assistant name". It prints the address of an approve page and a short code such as KQ7M-2XRT, then waits.
  2. You open the page, sign in with your work email and check that it shows the same code, when it started and roughly where from. The name is only what the assistant says it is. The page lists what the assistant can do and what only you can do. Press Approve.
  3. The command saves the connection in .env.local as RUUSTER_SETUP_TOKEN and prints "connected". It never prints the connection itself.

Only the owner or an admin of the account can approve an assistant. The request lasts 15 minutes, and an approved connection has to be collected within 30 minutes. An account can have up to 10 assistants connected at once.

To end a connection, open Keys and domains in your console and press Disconnect beside it. Any member of the account can do this. A connection also stops on its next call when the person who approved it leaves the team.

The actions

Action Command (npx @ruuster/idx ...) Claude tool What it does
status setup_status Where setup stands: the one next step and who can do it, each setup step with when it was done and by whom, and each MLS
approval_status setup_mls_approvals Each MLS on the account and whose turn it is
set_profile Saves the About you answers (name, company, agentCount, leadsRange, mlsNames), only after you accepted the sample data terms on the About you page. mlsNames takes MLS names or board ids; each one on our MLS list is saved as that board, and any other name is kept as typed for us to look up
set_market Saves the areas you work in (areas, up to 20), your state, your country (US or CA) and your MLSs (mls)
set_website setup website www.example.com setup_set_website Saves the address of the website that will show the listings, and where it is hosted when sent (host)
practice_keys setup keys --write .env.local Writes a practice key pair into the file as NEXT_PUBLIC_IDX_KEY and IDX_SECRET_KEY and prints only "written". Your site reads only IDX_SECRET_KEY, on the server; no page uses the other line
request_review setup review setup_request_review Asks for Compliance Review of the website you added. A person at Ruuster checks it, usually within two business days
pay_link setup_pay_link The address of your pay page, for you to open. Only you can pay
live_key setup live-key --write .env.local Writes the live key pair into the file and prints only "written", only after you chose Approve and let my AI assistant collect it on Approve my live key, within 30 minutes and once
list_fields setup fields setup_list_fields Your own fields on our listings and photos
define_field setup field <key> --target listing|photo --type text|number|boolean|enum setup_define_field Adds or changes one of your fields (key, target, type, maxLength, values)
remove_field setup field-remove <key> setup_remove_field Removes one of your fields. Its values stop showing
register_hook setup hook https://your-server/hook --write .env.local Registers your enrichment hook and writes its signing secret into the file as IDX_ENRICH_HOOK_SECRET. --budget sets the calls a day, from 1 to 10,000 (2,000 when left out)
test_hook setup hook-test setup_test_hook Sends one signed sample call to your hook. Nothing is stored
remove_hook setup hook-remove setup_remove_hook Stops calling your hook

Your own fields and the enrichment hook are turned on per account, and they work once your go-live request has linked your brokerage. Until then those actions answer that they aren't turned on. Price history, agent production and building on our data has the field rules and how the hook is called.

Each action takes only the inputs named here. Anything else is refused, so nothing extra can be slipped in. Saving the same market or website address twice changes nothing and adds nothing to your setup record.

What an assistant can never do

A setup connection runs the actions above and nothing else. It never reads listing data, and it can never:

  • Pay or change billing.
  • Sign MLS paperwork or accept terms.
  • See or use your live secret key. The one exception is live_key, when you chose to let your assistant collect it: the command writes it straight into your project's file.
  • Add, change or remove people on your team.
  • Delete anything.
  • Pass a review or an MLS approval.

Steps like these show on your console as yours, and the assistant tells you to do them.

Limits

Each assistant connection may make 60 setup requests a minute and 2,000 a day. A call over a limit answers 429 rate_limited: wait a minute, then try again. Starting a connection is limited too: 20 starts an hour from one internet address.

Calling the setup address yourself

The commands call https://help.ruuster.com/idx/setup-api/<action>. Every call is a POST with a JSON body and Authorization: Bearer with the setup connection:

curl -s -X POST https://help.ruuster.com/idx/setup-api/status \
  -H "Authorization: Bearer $RUUSTER_SETUP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

The answer is { "ok": true, "data": { ... } }, or { "ok": false, "code": "...", "message": "..." } with a message you can show as it is.

HTTP code When
400 bad_request An input is missing, not allowed or not valid
401 invalid The setup connection isn't valid. Connect again
403 not_allowed or revoked Only you can do this step, the feature isn't turned on, or the connection was disconnected
404 not_found No such action, or no such field or hook
409 too_many The account already has 10 assistants connected
410 expired The request or the approval ran out of time. Start again
429 rate_limited Over a limit. Wait, then try again

The answers are never cached. Never print RUUSTER_SETUP_TOKEN, a key or a hook secret, and never put one in a chat.

From Claude

When the owner or an admin connects Claude from the console's Claude connection page (see Ask Claude: the MCP tools), Claude also has the setup tools named in the table. It has no tool for the practice keys, the live key or registering the hook, because each of those hands over a secret that must not land in a chat. Those stay with the commands. The same limits apply to each Claude connection.

Help

Email helpme@ruuster.com or call 312-948-5402. The Support page says what to send.