Hostex (hostex.io) OpenAPI v3.0 skill for querying and managing vacation rental properties, room types, reservations, availability, listing calendars, guest messaging, reviews, and webhooks via the Hostex API. Use when you need to integrate with Hostex API using a Hostex PAT (Hostex-Access-Token / HostexAccessToken) or when you need safe, intent-level API calls (read-only by default, optional write operations with explicit confirmation).
默认建议: 使用只读 PAT。
稳定的 OpenAPI JSON:
使用 scripts/openapi-sync.mjs 将本地副本缓存到 references/openapi.json。
所有脚本均需 HOSTEXACCESSTOKEN。
列出房源:
bash
node skills/hostex/scripts/hostex-read.mjs list-properties --limit 20
列出预订(按入住日期范围):
bash
node skills/hostex/scripts/hostex-read.mjs list-reservations --start-check-in-date 2026-02-01 --end-check-in-date 2026-02-28 --limit 20
列出预订(按预订代码):
bash
node skills/hostex/scripts/hostex-read.mjs list-reservations --reservation-code 0-1234567-abcdef
获取可用性:
bash
node skills/hostex/scripts/hostex-read.mjs get-availabilities --start 2026-02-10 --end 2026-02-20 --property-id 123
写入操作默认禁用,除非:
并且传递 --confirm 参数。
发送消息:
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs send-message --conversation-id 123 --text 你好! --confirm
更新房源价格(单日期范围示例):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-listing-prices \
--channel-type airbnb \
--listing-id 456 \
--start 2026-02-10 \
--end 2026-02-15 \
--price 199 \
--confirm
更新房源价格(单次请求多日期范围):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs update-listing-prices \
--channel-type booking_site \
--listing-id 100541-10072 \
--prices 2026-02-03..2026-02-05:599,2026-02-06..2026-02-07:699,2026-02-08..2026-02-09:599 \
--confirm
创建预订(直接预订)(示例):
bash
HOSTEXALLOWWRITES=true node skills/hostex/scripts/hostex-write.mjs create-reservation \
--property-id 123 \
--custom-channel-id 77 \
--check-in-date 2026-02-10 \
--check-out-date 2026-02-12 \
--guest-name 爱丽丝 \
--currency USD \
--rate-amount 200 \
--commission-amount 0 \
--received-amount 200 \
--income-method-id 3 \
--confirm
更新房源可用性(关闭/开放)(示例):
bash
执行任何写入操作时:
1) 总结变更内容(谁/什么/何时/多少)。
2) 要求用户明确确认(例如 CONFIRM)。
3) 如果可用,优先使用 --dry-run。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 hostex-1776368331 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 hostex-1776368331 技能
skillhub install hostex-1776368331
文件大小: 20.23 KB | 发布时间: 2026-4-17 14:47