REST API, MCP server, webhooks, and an AI agent. Build your own integrations, connect your AI agents to your properties, or build on top of the platform.
This is a courtesy translation. The Norwegian version prevails.
curl https://api.gjestfri.com/v1/properties \
-H "Authorization: Bearer gf_live_..."All endpoints under /v1/* use Bearer authentication. The auth layer checks the prefix:
gf_live_… / gf_test_… → API key (rate-limited per key, scope-enforced)properties:read properties:write
bookings:read bookings:write
messages:read messages:write
pricing:read pricing:write
availability:read availability:write
cleaning:read cleaning:write
analytics:read
webhooks:manage
agent:chat:write automatically implies :read.
60 requests per minute per key by default. Headers are returned on every response:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 47
Retry-After: 23 (only on 429)GET /v1/propertiesGET /v1/properties/:idPATCH /v1/properties/:idGET /v1/properties/:id/calendar?from&toGET /v1/bookings?propertyId&status&from&to&limitGET /v1/bookings/:idPOST /v1/bookings - manual direct bookingPATCH /v1/bookings/:idGET /v1/messages/unreadGET /v1/messages/by-booking/:idPOST /v1/messages/by-booking/:id - send to guestGET /v1/pricing/recommendations?propertyId&from&toPOST /v1/pricing/overridesDELETE /v1/pricing/overridesGET/PUT /v1/pricing/configPOST /v1/availability/blockPOST /v1/availability/unblockGET /v1/cleaning-tasks?statusPATCH /v1/cleaning-tasks/:idGET /v1/analytics/occupancy?from&to&propertyIdGET /v1/analytics/revenue?from&to&propertyIdGET/POST/DELETE /v1/webhooksGET/POST/DELETE /v1/api-keyscurl 'https://api.gjestfri.com/v1/bookings?from=2026-06-01&limit=20' \
-H "Authorization: Bearer gf_live_..."
# →
# {
# "data": [
# {
# "id": 408,
# "propertyId": 12,
# "status": "confirmed",
# "guest": { "name": "Anna M.", "country": "NO" },
# "checkin": "2026-06-15",
# "checkout": "2026-06-18",
# "pricing": { "totalPrice": "4200", ... }
# }
# ]
# }The agent has full access to the host's data and 60+ tools (CRUD on properties, bookings, cleaning, rates, quick replies, channels, ...). Talk to it naturally - the agent picks the right tool on its own.
POST /v1/agent/chat - send a messagePOST /v1/agent/confirm/:actionLogId - confirm a pending actionGET /v1/agent/conversationsGET /v1/agent/conversations/:id/messagesGET/PATCH /v1/agent/settingscurl https://api.gjestfri.com/v1/agent/chat \
-H "Authorization: Bearer gf_live_..." \
-H "Content-Type: application/json" \
-d '{
"message": "What needs my attention today?",
"channel": "ios"
}'
# →
# {
# "conversationId": 42,
# "reply": "3 things: Anna checks in at 4 PM - welcome message not sent. ...",
# "toolCalls": [
# { "name": "list_unread_messages", "result": { ... } }
# ]
# }Not a developer? See the simple guide for all hosts.
Gjestfri runs a remote MCP server at https://api.gjestfri.com/mcp. Claude, ChatGPT, VS Code, Cursor and other MCP clients connect with your normal Gjestfri login and a consent screen where you pick the access level. No API key, nothing to install. FullPeiling AS publishes Gjestfri MCP. Choose “See the demo” at sign-in to try it with sample data.
The assistant only sees and does what you yourself can do. Cancellations and deletions require your confirmation. You handle card charges and refunds directly in Gjestfri. You can revoke the access at any time under Settings, AI assistants.
Settings, Connectors, “Add custom connector”. Paste the address, sign in and approve:
https://api.gjestfri.com/mcpRun the command below, then type /mcp in Claude Code to sign in:
claude mcp add --transport http gjestfri https://api.gjestfri.com/mcpOpen chatgpt.com/plugins, press the plus sign and choose Add custom MCP server. Paste the same address, choose OAuth and press Create as a plugin. ChatGPT uses the same login and consent.
Put this in .vscode/mcp.json in the project, or in the global mcp.json:
{
"servers": {
"gjestfri": { "type": "http", "url": "https://api.gjestfri.com/mcp" }
}
}Cursor reads .cursor/mcp.json with the key mcpServers. Any client that supports Streamable HTTP and OAuth 2.1 with dynamic registration or client metadata documents (CIMD) can connect:
{
"mcpServers": {
"gjestfri": { "url": "https://api.gjestfri.com/mcp" }
}
}list_properties / update_propertypropertieslist_bookings / get_booking_detailsbookingslist_unread_messages / send_messageguest messagesget_pricing_for_date / set_price_overridepricingblock_datesavailabilitylist_cleaning_tasks / create_cleaning_taskcleaningcreate_task / complete_tasktasksget_finance_overviewfinanceget_analytics_overviewanalyticscreate_payment_linkpayment link, needs confirmationcancel_bookingcancellation, needs confirmationlist_owner_statementsowners and managementwhoamiwho you are signed in asconfirm_action / cancel_actionconfirm or discard high-risk actionsGjestfrid has 202 tools, and 195 of them are available over MCP for an owner with full access, plus whoami, confirm_action and cancel_action. The catalog is filtered by role and access level, so a cleaner or an owner only sees their part. Your client shows the full list.
POST only. Login: OAuth 2.1 with PKCE (S256), dynamic registration at /oauth/register and client metadata documents (CIMD) as client id./.well-known/oauth-protected-resource/mcp and /.well-known/oauth-authorization-server on api.gjestfri.com. Access tokens last one hour, refresh tokens 90 days.insufficient_scope so the client can ask for new consent. Resources and prompts come later. The scopes:properties:read properties:write
bookings:read bookings:write
messages:read messages:write
pricing:read pricing:write
cleaning:read cleaning:write
payments:read payments:write
finance:read
owners:read owners:write
tasks:read tasks:write
account:read account:write
admin:read admin:writeGet push notifications when something happens. HMAC-SHA256 signed payloads. Up to 3 retries with exponential backoff.
curl https://api.gjestfri.com/v1/webhooks \
-H "Authorization: Bearer gf_live_..." \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-server.com/webhook",
"events": ["booking.created", "message.received"]
}'
# The response includes the secret only on creation:
# { "id": 12, "secret": "whsec_...", "events": [...] }booking.created, booking.updated, booking.cancelledmessage.received, message.sentcleaning.scheduled, cleaning.completedpricing.recommendation_changedagent.action_pending_confirmation// Header: X-Gjestfri-Signature: t=1234567890,v1=abc123...
const expected = crypto
.createHmac("sha256", secret)
.update(`${timestamp}.${rawBody}`)
.digest("hex");You can talk to the agent over iMessage/RCS/SMS, Telegram, or WhatsApp. Endpoints for connecting and managing channels:
GET /v1/host-channelsPOST /v1/host-channels - body: {channel, phoneNumber?}DELETE /v1/host-channels/:idPOST returns a deep link (Telegram/WhatsApp) or sends an iMessage with a 6-character code. The host verifies by opening the deep link or replying with the code.
A separate MCP entry point for travelers' assistants, which search, book and follow up on the stay, is planned as a remote service with an access code per booking. The @gjestfri/mcp-guest package is not published, and there is no recipe yet. Write to utviklere@gjestfri.com if you want early access.