规则、合规检查、日期算术、租金基准任何人都能调,还有一个给 AI 客户端的 MCP 端点;核验结论由申请人本人授权后才返回,只回结论不回文件;合作方发起筛查要等 Stayloop 完成《消费者报告法》注册后才开放。每次调用留痕,法规边界写在响应里。Base URL 与本站同源;没有 SDK,用任何 HTTP 客户端即可。
https://www.stayloop.ai/api/v1MCP https://www.stayloop.ai/api/mcpx-api-version 2026-10-16密钥:X-API-Key(第一档与 MCP 不需要)数据库驻加拿大规则清单、房源合规检查(POST /listings/compliance)、租约条款检查、租金指导比例、N4 最早终止日、持续迟付判定、租金基准,以及同一套工具的 MCP 端点。免费,无需密钥,不接受、不存储个人信息。
申请人签发 token、勾选范围后才返回结论。合作方密钥 + 申请人 token。
完成《消费者报告法》注册后开放。现在一律返回 503,不接受调用。
x-api-version: 2026-10-16;弃用提前 90 天通知。{ error, message, retry_after? };错误码 invalid_json · invalid_input(message 写明哪个字段)· unsupported_province · not_available · rate_limited · method_not_allowed;429 带 Retry-After 头。as_of(规则快照日,现为 2026-10-16)和 boundary(固定的边界句)。attribution(CMHC 租赁市场调查 + 加拿大统计局,开放授权),展示时必须原样保留。province:ON(默认)或其他 12 个省 / 地区代码;其余返回 400 unsupported_province。/rules列出一个省的租房规则
curl "https://www.stayloop.ai/api/v1/rules?province=QC"/listings/compliance核对房源条款
curl -X POST "https://www.stayloop.ai/api/v1/listings/compliance" -H "content-type: application/json" -d '{"province":"ON","monthly_rent":2800,"deposit":3000,"pets_allowed":"restricted"}'/lease/terms-check核对租约条款
curl -X POST "https://www.stayloop.ai/api/v1/lease/terms-check" -H "content-type: application/json" -d '{"province":"ON","rent_amount":2800,"deposit_amount":2800,"form_type":"trreb","start_date":"2026-12-01","end_date":"2027-11-30"}'/guideline安省涨租指导比例与 N1 截止日
curl "https://www.stayloop.ai/api/v1/guideline?effective=2027-01-01"/n4/earliest-termination安省 N4 最早终止日
curl "https://www.stayloop.ai/api/v1/n4/earliest-termination?served=2026-11-02&method=mail"/late-payment/persistent安省持续迟付判定
curl -X POST "https://www.stayloop.ai/api/v1/late-payment/persistent" -H "content-type: application/json" -d '{"periods":[{"due_date":"2026-04-01","paid_at":"2026-04-12"},{"due_date":"2026-06-01","paid_at":"2026-06-15"},{"due_date":"2026-08-01","paid_at":null}],"as_of":"2026-10-16"}'/rent-benchmark安省租金基准(CMHC / 统计局)
curl "https://www.stayloop.ai/api/v1/rent-benchmark?province=ON&area=Liberty%20Village&bedrooms=1&type=condo"规则全文与编号见 /rules;只做规则比对与日期算术,不是法律意见。
https://www.stayloop.ai/api/mcp · Streamable HTTP(JSON-RPC 2.0,无状态,只 JSON 响应)· 无鉴权 · 每 IP 每小时 600 次。 工具与上面的端点调同一套函数,响应同样带 as_of、boundary 与 attribution。
list_rulesList rental rulesList the residential-tenancy rules Stayloop applies for one Canadian province or territory, each with its id, statute citation, bilingual title and summary, and (Ontario) severity and in-force date.
check_listing_complianceCheck a rental listingCheck the terms of a rental listing (deposit, key deposit, application fee, pet policy, listing text) against the province's tenancy rules and return pass/fail with the rules hit.
check_lease_termsCheck lease termsCheck the money and date terms of a residential lease (rent, deposit, form type, additional terms, start / end dates) against the province's tenancy rules and return pass/fail with the rules hit.
rent_increase_guidelineOntario rent increase guidelineReturn the Ontario rent increase guideline that applies to a rent increase taking effect on a given date: the year, the percentage, whether it is published yet, the statutory cap, the 90-day notice period and the latest date the N1 notice could be served.
n4_earliest_terminationN4 earliest termination dateCompute, for an Ontario N4 (non-payment of rent) notice served on a given date by a given method, the deemed service date and the earliest termination date that satisfies the 7-day minimum (plus 5 days for mail).
persistent_late_paymentPersistent late payment testApply the Ontario persistent-late-payment definition to a list of rent periods: which periods were paid more than 7 days late, and whether 3 or more fell within any 6-month window.
rent_benchmarkRent benchmark (CMHC / StatCan)Return the published average rent for an area and unit size: the most specific CMHC Rental Market Survey figure available (survey average of occupied units, not an asking or transaction price) plus the Statistics Canada quarterly asking-rent series, each labelled with its period.
https://www.stayloop.ai/api/mcp,鉴权选 None。claude mcp add --transport http stayloop https://www.stayloop.ai/api/mcpmcp.json 里加一条:{
"mcpServers": {
"stayloop": { "url": "https://www.stayloop.ai/api/mcp" }
}
}curl -X POST https://www.stayloop.ai/api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize",
"params":{"protocolVersion":"2025-06-18","capabilities":{},
"clientInfo":{"name":"curl","version":"0"}}}'
{ "jsonrpc": "2.0", "id": 1,
"result": { "protocolVersion": "2025-06-18", "capabilities": { "tools": {} },
"serverInfo": { "name": "stayloop", "version": "2026-10-16" },
"instructions": "…boundary…" } }
// then: {"jsonrpc":"2.0","id":2,"method":"tools/list"}
// {"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"rent_increase_guideline","arguments":{"effective":"2027-01-01"}}}POST /passport/verify · 申请人出示的核验结论申请人在 Stayloop 的租客护照页生成分享链接,并勾选允许 API 读取的范围(身份 / 银行 / 征信 / 租史)。链接末尾的 token 就是你要传的值。响应只有结论;每次调用写审计并推送通知申请人。
同意基础:申请人勾选范围即 PIPEDA 原则 4.3 的知情同意,勾选页写明每个范围的用途、接收方类别与风险(接入方及其 AI 服务商可能在境外、可能留存会话、已送出的内容无法撤回),拒绝不影响申请人在站内的任何功能。披露按《消费者报告法》对报告机构的标准处理:只在本人书面指示下、按勾选范围披露。
curl -X POST https://www.stayloop.ai/api/v1/passport/verify \
-H "X-API-Key: sk_trust_..." -H "Content-Type: application/json" \
-d '{"token": "<from the applicant's share link>", "scopes": ["identity","bank","tenancy"]}'
{ "verified": true, "scopes": ["identity","bank","tenancy"],
"identity": { "verified": true, "provider": "veriff", "verified_at": "2026-09-20T14:02:11Z" },
"bank": { "verified": true, "provider": "flinks", "payroll_monthly_estimate": 5480, "nsf_count_90d": 0 },
"tenancy": { "confirmed_tenancies": 1, "rent_records": { "paid": 11, "late": 0 } },
"issued_by": "applicant", "boundary": { "zh": "...", "en": "..." }, "audited": true }
// 403 when the applicant has not enabled API reads, or none of the requested scopes are shared
// 404 when the token is unknown, expired or revokedPOST /screen · 发起一次筛查// today — every call, with or without a key
503 { "error": "partner_screening_closed",
"message": "Partner screening is closed until Stayloop’s Consumer Reporting Act registration is complete." }开放后的规则:密钥须绑定一个 Stayloop 房东账号(筛查记在该账号名下、计入其配额)。必须附申请人对 Stayloop 筛查同意文本的接受记录;文件从你的 https 地址抓取(每个 ≤25 MB,最多 14 个)。返回 202 与 screening_id,完成后 POST 到你的 webhook。与产品同一条管线、同样的配额与合规规则;录取与否由房东本人决定。
// shape once open — not accepted today
curl -X POST https://www.stayloop.ai/api/v1/screen \
-H "X-API-Key: sk_trust_..." -H "Content-Type: application/json" \
-d '{
"applicant_name": "Jane Doe", "monthly_rent": 2450, "external_ref": "APP-1042",
"consent": { "version": "v1-2026-09", "accepted_at": "2026-09-23T10:00:00Z", "typed_name": "Jane Doe" },
"files": [ { "url": "https://files.example.com/paystub-1.pdf", "kind": "pay_stub" },
{ "url": "https://files.example.com/id.jpg", "kind": "government_id" } ],
"webhook_url": "https://api.example.com/stayloop/webhook"
}'
202 { "ok": true, "screening_id": "…", "status": "queued", "files": 2, "webhook": true,
"report_url": "https://www.stayloop.ai/screening/<id>/report" }
// webhook (X-Stayloop-Event: screening.completed)
{ "screening_id": "…", "external_ref": "APP-1042", "status": "scored", "overall": 74, "tier": "review",
"hard_gates": [], "report_url": "…/report", "notice_letter_url": "…/notice",
"boundary": "Score and tier are information for the landlord's own decision — never grounds to decline (OHRC)." }| 400 | invalid_json / invalid_input / unsupported_province(第一档;message 写明哪个字段) |
| 401 | 缺少 X-API-Key(第二档) |
| 403 | 密钥无效 / 停用;或申请人未开放该范围 |
| 404 | token 不存在、过期或已撤销;或 not_available(该省没有这项数据) |
| 405 | method_not_allowed |
| 422 | 缺少同意记录或文件不可抓取 |
| 429 | rate_limited:超过限流(看 Retry-After) |
| 503 | partner_screening_closed:第三档暂不开放 |
第二档密钥或试点:privacy@stayloop.ai。数据来源目录见 /partners;使用规则见 /terms.