WaylineAPI docs
Menu

MCP server

Connect your AI assistant to Wayline using MCP (Model Context Protocol). Compatible assistants can discover Wayline's tools and use them to read listings, search knowledge and make changes you authorize.

For example, ask your assistant to find available listings or update a pet policy. For a backend sync or another software integration, start with the REST API and an API key.

  • URL: https://mcp.wayline.com
  • Authentication: sign in with your Wayline account when you connect (see connecting), or an API key
  • Transport: Streamable HTTP. Each request is answered in full as JSON; there are no sessions or event streams.

Same API, same rules#

Every endpoint is one tool, and each tool behaves exactly like its endpoint: the same fields, the same validation, the same organization scoping and the same errors. Each connection, and each API key, has its own rate limit (conventions); an agent and an integration using the same key share one budget.

A tool's arguments are what you would send the endpoint, side by side in one object:

  • the ids in the endpoint's path, named for what they identify (listingId, questionId, externalId),
  • its query parameters, by the same names (status, cursor, limit, updated_since),
  • and the fields of its request body, unchanged.

For example, PATCH /v1/listings/800 with the body {"rent": 2500} is the update_listing tool with the arguments {"listingId": 800, "rent": 2500}.

A tool returns the endpoint's JSON response as text. A delete, which the REST API answers with an empty 204, returns {"deleted": true}. A failed call is marked as an error and returns the API's error object, {"error": {"code", "message", "field"?}}; the message says what to fix.

Connecting#

By signing in (Claude, ChatGPT and other AI tools)#

Use this option when your assistant supports remote MCP servers with OAuth sign-in. You don't need to generate or paste an API key.

  1. In your AI tool, add a custom connector (or MCP server) with the URL https://mcp.wayline.com.
  2. The tool opens Wayline. Sign in with your Wayline account, if you aren't already.
  3. Wayline shows what the tool will be able to do. Leave Make changes ticked to let it create and edit listings and knowledge, or untick it to let it only read. Choose Connect.

The tool then works in Wayline as you. What it creates is recorded as yours.

  • An organization's admins and staff can connect. The tool works in your organization; it never needs to name it.
  • Wayline support staff belong to no one organization. The tool asks which organization to work in and passes its key as organizationKey on each call: the part of the organization's Wayline URL after app.wayline.com/.
  • Prospects, residents, owners, vendors and brokers can't connect.

A connection lasts as long as the tool keeps using it (it refreshes itself) and stops working at once if your account is deactivated, your role changes, or you move to another organization. Connect again to make changes after connecting read-only.

Signing in uses OAuth with PKCE. AI tools identify themselves with a Client ID Metadata Document, the method the MCP specification prefers; Wayline's sign-in settings are at https://app.wayline.com/.well-known/oauth-authorization-server.

With an API key#

If your client supports custom authorization headers, scripts and developer tools can send an API key instead, as Authorization: Bearer wapi_…. A key works in its organization with full access. With Claude Code:

claude mcp add --transport http wayline https://mcp.wayline.com \
  --header "Authorization: Bearer $WAYLINE_API_KEY"

Errors#

A request without a valid sign-in or key is answered 401 before any tool runs, with a WWW-Authenticate header naming https://mcp.wayline.com/.well-known/oauth-protected-resource, which tells the AI tool where to sign in.

CodeWhen
missing_credentialsNo Authorization header
invalid_tokenThe sign-in expired, was disconnected, or no longer holds (deactivated, role or organization changed); sign in again
invalid_api_keyAs for the REST API (authentication)
insufficient_scopeA read-only connection tried to make a change
organization_requiredWayline support staff left out organizationKey
wrong_organizationorganizationKey named an organization other than the connection's or key's own

Tools#

ToolEndpoint
list_listingsGET /v1/listings
create_listingPOST /v1/listings
put_listingPUT /v1/listings/external/{externalId}
get_listingGET /v1/listings/{id}
update_listingPATCH /v1/listings/{id}
list_propertiesGET /v1/properties
list_unitsGET /v1/properties/{id}/units
list_property_groupsGET /v1/property-groups
list_questionsGET /v1/knowledge/questions
create_questionPOST /v1/knowledge/questions
get_questionGET /v1/knowledge/questions/{id}
update_questionPATCH /v1/knowledge/questions/{id}
delete_questionDELETE /v1/knowledge/questions/{id}
add_answerPOST /v1/knowledge/questions/{id}/answers
update_answerPATCH /v1/knowledge/answers/{id}
delete_answerDELETE /v1/knowledge/answers/{id}
search_knowledgeGET /v1/knowledge/search
list_guardrailsGET /v1/knowledge/guardrails
create_guardrailPOST /v1/knowledge/guardrails
get_guardrailGET /v1/knowledge/guardrails/{id}
update_guardrailPATCH /v1/knowledge/guardrails/{id}
delete_guardrailDELETE /v1/knowledge/guardrails/{id}
create_uploadPOST /v1/knowledge/uploads
create_importPOST /v1/knowledge/imports
list_importsGET /v1/knowledge/imports
get_importGET /v1/knowledge/imports/{id}

Each tool also says whether it only reads, and whether it can change or remove what's there, so your AI tool can ask before running it.