# Brek Hotel API documentation > Brek Hotel API — for companies and teams adding hotel sales to their products. Developers and coding agents implement the same server-side API; the finished application does not need an AI agent or MCP. Agent Commerce is the partner program and console. For Brek's business and shared references, or a traveler asking about hotels in a chat, use the [three-part Brek index](https://www.brek.com/llms.txt). The consumer HTML research flow requires no partner onboarding. This documentation covers building an integration, authenticated transactions and operations. ## Start with the question you need to answer - **Can a browsing assistant search by following web links?** Yes. Open [Search with an AI assistant](https://www.brek.com/ai/hotels), then [HTML hotel search](https://www.brek.com/ai/go/search). No JavaScript, API key or connector is required for public research. Follow supplied location, date, guest and room links. Supplied final Brek wholesale selling totals are publicly readable; HTML pages cannot book or charge. - **How does an AI agent complete a REST booking workflow?** Give it [the mandatory agent runbook](https://www.brek.com/agent-commerce.md). - **How does a developer integrate the REST API?** Follow the [Live quickstart](https://www.brek.com/developers/ai/quickstart.md), then use the [OpenAPI 3.1 contract](https://www.brek.com/developers/ai/openapi.json). Test is optional. No AI agent or MCP client is required. - **Can a tool-using assistant connect without an API key?** Yes. Read the [MCP discovery manifest](https://www.brek.com/.well-known/mcp.json), then connect the [read-only Brek MCP server](https://www.brek.com/developers/ai/mcp.md) for hotel discovery and masked comparison. MCP cannot checkout, book, retrieve a booking, or cancel, and its identifiers cannot enter the transactional REST flow. - **How do I get and manage an API key?** An authorized workspace owner registers, accepts the current approved terms, and creates a Live application and its one-time key in Partner Console. No manual activation or Test-completion gate is required. Follow the [API key lifecycle](https://www.brek.com/developers/ai/api-keys.md) to store, verify, rotate, and revoke it safely. - **Can a headless agent automate Partner Console onboarding?** Yes, with explicit user authorization and safe secret handling. Follow the [machine-readable onboarding workflow](https://www.brek.com/developers/ai/onboarding.json) and [Partner Console onboarding OpenAPI](https://www.brek.com/developers/ai/onboarding-openapi.json) for exact operations, request and response schemas, origins, and credential rules. - **How does Live unlock?** Program-terms version 2026-09-30 has status approved. Test and Standard Live application creation are self-serve. Live requires workspace-owner acceptance of that exact version and digest, separate Live application and key creation in Partner Console, and capabilities readiness for the requested transaction path. - **What are the default commercial and traffic terms?** Standard includes 60 requests per minute per application and 10% of eligible realized Brek profit. Capabilities is the runtime source of truth for the current application. API keys are server-side secrets. The traveler authorizes payment only in Brek-hosted checkout or secure Stripe.js UI. A model must never receive raw card data, payment secrets, or a cancellation approval token. ## Authoritative machine-readable sources - [Mandatory agent runbook](https://www.brek.com/agent-commerce.md): Self-serve onboarding, guarded flow, and safety policy. - [Page-scoped Markdown index](https://www.brek.com/developers/ai/llms.txt): This compact route map. - [HTML documentation](https://www.brek.com/developers/ai): Human-readable documentation. - [Full Markdown corpus](https://www.brek.com/developers/ai/llms-full.txt): The runbook and every Brek Hotel API page in one file. - [OpenAPI 3.1 contract](https://www.brek.com/developers/ai/openapi.json): Paths, authentication, idempotency, schemas, examples, and canonical errors. - [Partner Console onboarding contract](https://www.brek.com/developers/ai/onboarding.json): Machine-readable terms integrity, self-serve registration, console authorization, application and key lifecycle, origins, and secret safety. - [Partner Console onboarding OpenAPI 3.1](https://www.brek.com/developers/ai/onboarding-openapi.json): Exact registration, sign-in, application, API-key, revocation, success-envelope, and error schemas. - [Read-only MCP discovery](https://www.brek.com/.well-known/mcp.json): Versioned endpoint, transport, no-auth contract, current tool summaries, client configuration, and the strict REST identifier boundary. - [Program-terms integrity artifact](https://www.brek.com/developers/ai/program-terms.json): The accepted four-field version, approval status, content SHA-256, and stable document URL for fail-closed release checks. - [Exact canonical program-terms text](https://www.brek.com/developers/ai/program-terms-canonical.txt): The exact UTF-8 bytes hashed by the integrity artifact, with algorithm and canonicalization headers for independent verification. - [Existing Brek MCP connector](https://www.brek.com/developers/ai/mcp.md): Authless, read-only hotel discovery and comparison. It cannot transact, and its identifiers cannot be reused in Agent REST. - [Read-only HTML hotel research](https://www.brek.com/ai/hotels): Search and room terms through ordinary GET links, without a connector. Its consumer identifiers cannot be substituted into transactional REST. - Current product surface: transactional REST/OpenAPI, read-only web research and the existing read-only MCP. REST, MCP and consumer identifiers are not interchangeable. - [overview](https://www.brek.com/developers/ai/overview.md): Choose the Hotel REST API, read-only MCP discovery, and checkout path for an agent or conventional application. - [quickstart](https://www.brek.com/developers/ai/quickstart.md): Create a Live key and follow search, room offers, quote, Hosted checkout, confirmation, and booking management. Test is optional. - [testing](https://www.brek.com/developers/ai/testing.md): Use a separate Test key for optional no-payment smoke checks and a complete simulated booking, refund, and commission reversal. - [api-keys](https://www.brek.com/developers/ai/api-keys.md): Create, store, verify, rotate, and revoke application-scoped Test and Live API keys safely. - [agent-runbook](https://www.brek.com/developers/ai/agent-runbook.md): Give an authorized AI agent one runbook for Live self-serve setup, hotel booking, management, and optional sandbox testing. - [mcp](https://www.brek.com/developers/ai/mcp.md): Connect the authless, read-only Brek MCP server for hotel discovery and keep its identifiers outside transactional REST. - [go-live](https://www.brek.com/developers/ai/go-live.md): Use Test as client-side launch validation, then enforce agreement and capabilities gates for Live. - [agents](https://www.brek.com/developers/ai/agents.md): Understand agent authority, Brek-bookable rates, public redirects, and untrusted inventory content. - [api](https://www.brek.com/developers/ai/api.md): Find every Hotel REST endpoint and its transaction boundary. - [api/pricing](https://www.brek.com/developers/ai/api/pricing.md): Define Brek and public-provider prices, full-stay scope, collection point, taxes, and fees. - [api/capabilities](https://www.brek.com/developers/ai/api/capabilities.md): Read the key environment, limits, agreement, and transaction readiness. - [api/search](https://www.brek.com/developers/ai/api/search.md): Return one starting Brek offer per hotel plus public comparison prices. - [api/flexible-search](https://www.brek.com/developers/ai/api/flexible-search.md): Search supported check-in windows and stay lengths. - [api/hotel-offers](https://www.brek.com/developers/ai/api/hotel-offers.md): Return every current room type and bookable option for one hotel. - [api/public-redirect](https://www.brek.com/developers/ai/api/public-redirect.md): Resolve a current Expedia.com or Booking.com redirect when a public comparison requires a provider recheck. - [api/quote](https://www.brek.com/developers/ai/api/quote.md): Recheck one selected room, its price, expiry, and cancellation terms. - [api/checkout-sessions](https://www.brek.com/developers/ai/api/checkout-sessions.md): Create hosted or native Test/Live payment authorization. - [api/checkout-status](https://www.brek.com/developers/ai/api/checkout-status.md): Retrieve checkout, payment state, expiry, and next action. - [api/abandon-checkout](https://www.brek.com/developers/ai/api/abandon-checkout.md): Release and terminally abandon an unconfirmed Test checkout; never available in Live. - [api/payment-authorization](https://www.brek.com/developers/ai/api/payment-authorization.md): Authorize only in Brek-hosted checkout or secure Stripe.js UI. - [api/confirm](https://www.brek.com/developers/ai/api/confirm.md): Cross the explicit hotel-booking and payment-capture boundary. - [api/bookings](https://www.brek.com/developers/ai/api/bookings.md): Retrieve confirmation, delivery, commission, and cancellation state. - [api/cancellation-preview](https://www.brek.com/developers/ai/api/cancellation-preview.md): Calculate current cancellation consequences and obtain a short-lived Live approval token. - [api/cancel](https://www.brek.com/developers/ai/api/cancel.md): Cancel after approval and distinguish reservation from refund state. - [api/errors](https://www.brek.com/developers/ai/api/errors.md): Parse stable error codes and retry without duplicate side effects. - [checkout](https://www.brek.com/developers/ai/checkout.md): Choose Brek-hosted or native Stripe.js authorization and protect secrets. - [bookings](https://www.brek.com/developers/ai/bookings.md): Confirm, retrieve, communicate, and service a Brek reservation. - [confirmation-email](https://www.brek.com/developers/ai/confirmation-email.md): Map every traveler confirmation section to Brek Hotel API fields and communicate email delivery accurately. - [commissions](https://www.brek.com/developers/ai/commissions.md): Understand 10% realized-profit share and pending, available, paid, and reversed states. - [program-terms](https://www.brek.com/developers/ai/program-terms.md): Read the approved Standard program artifact for access, scopes, limits, commission, payout readiness, and its owner-acceptance and runtime Live gates. - [operations](https://www.brek.com/developers/ai/operations.md): Observe requests, poll asynchronous state, understand key access, and protect traveler data. - [changelog](https://www.brek.com/developers/ai/changelog.md): Track the v1 documentation contract and understand additive change, deprecation, and versioning policy.