Threshold Rentals Bookings API

Request, follow, message about and cancel bookings

GitHub OpenAPI

Operations 7

POST /v1/booking_requests Request to book #
GET /v1/bookings/{booking_id} Get a booking #
GET /v1/bookings/{booking_id}/messages Read messages with the host #
POST /v1/bookings/{booking_id}/messages Message the host #
GET /v1/bookings/{booking_id}/cancellation_preview Preview a cancellation #
POST /v1/bookings/{booking_id}/cancel Cancel a booking or request #
GET /v1/events Booking events #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/threshold-rentals:threshold-rentals-bookings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

threshold-rentals-bookings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Threshold Stays Bookings API
  version: 0.1.0
  summary: Search and book verified independent vacation rentals directly from hosts, with no guest fees.
  description: 'Find, quote and request bookings at verified independent vacation rentals, booked directly with the host. Guests pay no service fee.


    Flow: search → get the property → create a quote (the only binding price; it re-checks the host''s calendars) → show the guest the quote''s house_rules and cancellation.refund_schedule → request the booking → give the guest payment_url if one is returned → poll the booking.


    Money is in the smallest currency unit (cents). Dates are YYYY-MM-DD in the property''s time zone. Errors are application/problem+json with a stable `code`. Rate limits per IP and per agent token: searches 60 per minute, quotes 30 per minute, booking requests 10 per hour; over the limit you get 429 with Retry-After.


    Identify your agent with `Authorization: Bearer `: any stable token of 8+ characters. It''s required for booking requests and for reading or changing bookings, which are only visible to the token that made them. Never invent amenities; if the property doesn''t answer a question, use askHost.


    An MCP server with the same capabilities is at https://threshold.rentals/api/mcp.'
  contact:
    name: Threshold
    email: hello@threshold.rentals
    url: https://threshold.rentals/for-agents
  termsOfService: https://threshold.rentals/terms
servers:
- url: https://threshold.rentals/api
security:
- {}
- agentToken: []
tags:
- name: Bookings
  description: Request, follow, message about and cancel bookings
paths:
  /v1/booking_requests:
    post:
      tags:
      - Bookings
      operationId: requestBooking
      summary: Request to book
      description: Turn an open quote into a booking. Set house_rules_accepted only after the guest agreed to the quote's house_rules. If the response has payment_url, the guest must open it and add a card within 60 minutes before the host gets the request.
      security:
      - agentToken: []
      parameters:
      - name: Idempotency-Key
        in: header
        schema:
          type: string
          maxLength: 200
        description: Unique per attempt (e.g. a UUID). Retrying with the same key returns the original response instead of acting twice.
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BookingRequest'
      responses:
        '201':
          description: The booking, with links for the guest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BookingRequestResult'
        '400':
          $ref: '#/components/responses/Problem400'
        '401':
          $ref: '#/components/responses/Problem401'
        '404':
          $ref: '#/components/responses/Problem404'
        '409':
          $ref: '#/components/responses/Problem409'
        '410':
          $ref: '#/components/responses/Problem410'
        '422':
          $ref: '#/components/responses/Problem422'
        '429':
          $ref: '#/components/responses/Problem429'
  /v1/bookings/{booking_id}:
    get:
      tags:
      - Bookings
      operationId: getBooking
      summary: Get a booking
      description: Status, payment, refund schedule and host notes for a booking your agent made. Poll this (or listEvents) to follow a request until the host answers.
      security:
      - agentToken: []
      parameters:
      - name: booking_id
        in: path
        required: true
        schema:
          type: string
        example: bkg_01M3XAMPLE
      responses:
        '200':
          description: The booking
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Booking'
        '401':
          $ref: '#/components/responses/Problem401'
        '404':
          $ref: '#/components/responses/Problem404'
        '429':
          $ref: '#/components/responses/Problem429'
  /v1/bookings/{booking_id}/messages:
    get:
      tags:
      - Bookings
      operationId: getMessages
      summary: Read messages with the host
      description: The guest–host conversation on a booking, oldest first, including the guest's note with the request and the host's note with their decision.
      security:
      - agentToken: []
      parameters:
      - name: booking_id
        in: path
        required: true
        schema:
          type: string
        example: bkg_01M3XAMPLE
      responses:
        '200':
          description: The conversation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageThread'
        '401':
          $ref: '#/components/responses/Problem401'
        '404':
          $ref: '#/components/responses/Problem404'
        '429':
          $ref: '#/components/responses/Problem429'
    post:
      tags:
      - Bookings
      operationId: sendMessage
      summary: Message the host
      description: Send a message to the host for the guest (only what the guest asked you to say). The host is emailed; replies appear in getMessages. Open from the request until two weeks after check-out.
      security:
      - agentToken: []
      parameters:
      - name: booking_id
        in: path
        required: true
        schema:
          type: string
        example: bkg_01M3XAMPLE
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - body
              properties:
                body:
                  type: string
                  minLength: 1
                  maxLength: 2000
      responses:
        '201':
          description: Sent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
        '400':
          $ref: '#/components/responses/Problem400'
        '401':
          $ref: '#/components/responses/Problem401'
        '404':
          $ref: '#/components/responses/Problem404'
        '409':
          $ref: '#/components/responses/Problem409'
        '429':
          $ref: '#/components/responses/Problem429'
  /v1/bookings/{booking_id}/cancellation_preview:
    get:
      tags:
      - Bookings
      operationId: previewCancellation
      summary: Preview a cancellation
      description: What the guest would get back if they cancelled now. Changes nothing. Tell the guest the refund and get their go-ahead before cancelBooking.
      security:
      - agentToken: []
      parameters:
      - name: booking_id
        in: path
        required: true
        schema:
          type: string
        example: bkg_01M3XAMPLE
      responses:
        '200':
          description: The refund if cancelled now
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancellationPreview'
        '401':
          $ref: '#/components/responses/Problem401'
        '404':
          $ref: '#/components/responses/Problem404'
        '429':
          $ref: '#/components/responses/Problem429'
  /v1/bookings/{booking_id}/cancel:
    post:
      tags:
      - Bookings
      operationId: cancelBooking
      summary: Cancel a booking or request
      description: Cancel for the guest after they agreed to the refund from previewCancellation. Pass that refund as expected_refund; if it has changed, you get 409 refund_changed and nothing is cancelled. Not possible once the stay has started.
      security:
      - agentToken: []
      parameters:
      - name: booking_id
        in: path
        required: true
        schema:
          type: string
        example: bkg_01M3XAMPLE
      - name: Idempotency-Key
        in: header
        schema:
          type: string
          maxLength: 200
        description: Unique per attempt (e.g. a UUID). Retrying with the same key returns the original response instead of acting twice.
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - expected_refund
              properties:
                expected_refund:
                  type: object
                  required:
                  - amount
                  properties:
                    amount:
                      type: integer
                      description: refund.amount from previewCancellation, in cents.
                    currency:
                      type: string
      responses:
        '200':
          description: The cancelled booking
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Booking'
        '400':
          $ref: '#/components/responses/Problem400'
        '401':
          $ref: '#/components/responses/Problem401'
        '404':
          $ref: '#/components/responses/Problem404'
        '409':
          $ref: '#/components/responses/Problem409'
        '429':
          $ref: '#/components/responses/Problem429'
  /v1/events:
    get:
      tags:
      - Bookings
      operationId: listEvents
      summary: Booking events
      description: The 50 latest events on bookings your agent made, newest first (e.g. booking.confirmed, booking.declined, booking.cancelled, booking.arrival_info_ready). An alternative to polling each booking.
      security:
      - agentToken: []
      responses:
        '200':
          description: Events
          content:
            application/json:
              schema:
                type: object
                properties:
                  events:
                    type: array
                    items:
                      $ref: '#/components/schemas/Event'
        '401':
          $ref: '#/components/responses/Problem401'
        '429':
          $ref: '#/components/responses/Problem429'
components:
  schemas:
    CancellationPreview:
      type: object
      properties:
        booking_id:
          type: string
        status:
          type: string
        cancellable:
          type: boolean
        refund:
          $ref: '#/components/schemas/Money'
        retained:
          $ref: '#/components/schemas/Money'
        tier_ends_at:
          type:
          - string
          - 'null'
          format: date-time
        as_of:
          type: string
          format: date-time
        note:
          type: string
    MessageThread:
      type: object
      properties:
        booking_id:
          type: string
        can_send:
          type: boolean
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
    Message:
      type: object
      properties:
        id:
          type: string
        from:
          type: string
          enum:
          - guest
          - host
        body:
          type: string
        sent_at:
          type: string
          format: date-time
        note:
          type: string
    Party:
      type: object
      properties:
        adults:
          type: integer
          minimum: 1
          default: 1
        children:
          type: integer
          minimum: 0
        infants:
          type: integer
          minimum: 0
        pets:
          type: integer
          minimum: 0
        service_animals:
          type: integer
          minimum: 0
    Event:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        created_at:
          type: string
          format: date-time
        data:
          type: object
          additionalProperties: true
    BookingRequest:
      type: object
      required:
      - quote_id
      - buyer
      - house_rules_accepted
      properties:
        quote_id:
          type: string
        buyer:
          type: object
          required:
          - first_name
          - last_name
          - email
          properties:
            first_name:
              type: string
            last_name:
              type: string
            email:
              type: string
              format: email
            phone:
              type: string
        house_rules_accepted:
          type: boolean
          const: true
        special_requests:
          type: string
          maxLength: 500
          description: Shown to the host with the request
    RefundTier:
      type: object
      properties:
        until:
          type: string
          format: date-time
          description: Cancel before this time…
        refund:
          $ref: '#/components/schemas/Money'
          description: …to get this back
    Problem:
      type: object
      required:
      - type
      - title
      - status
      - code
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        code:
          type: string
      additionalProperties: true
      description: RFC 9457 problem details. Extra members depend on code, e.g. alternatives and unavailable_nights for dates_unavailable, valid_codes for unknown_amenity, preview for refund_changed.
    BookingRequestResult:
      type: object
      properties:
        booking:
          $ref: '#/components/schemas/Booking'
        guest_status_url:
          type: string
          format: uri
          description: Private page for the guest to follow, pay, message or cancel
        payment_url:
          type: string
          format: uri
          description: 'Give to the guest: a secure Stripe page to add a card within 60 minutes'
        agent_payment:
          type: object
          additionalProperties: true
          description: Present when you can pay with a Stripe shared payment token instead of payment_url; see instructions.
    Money:
      type: object
      required:
      - amount
      - currency
      properties:
        amount:
          type: integer
          description: In cents
        currency:
          type: string
          example: USD
    Booking:
      type: object
      properties:
        id:
          type: string
        confirmation_code:
          type: string
        status:
          type: string
          enum:
          - awaiting_payment
          - pending_host_confirmation
          - confirmed
          - declined
          - expired
          - cancelled_by_guest
          - cancelled_by_host
          - cancelled_unpaid
        property_id:
          type: string
        check_in:
          type: string
          format: date
          example: '2026-11-13'
        check_out:
          type: string
          format: date
          example: '2026-11-13'
        party:
          $ref: '#/components/schemas/Party'
        total:
          $ref: '#/components/schemas/Money'
        amount_paid:
          $ref: '#/components/schemas/Money'
        amount_refunded:
          $ref: '#/components/schemas/Money'
        refund_schedule:
          type: array
          items:
            $ref: '#/components/schemas/RefundTier'
        payment:
          type: object
          additionalProperties: true
          properties:
            collected_by:
              type: string
              enum:
              - threshold
              - host
            status:
              type: string
            plan:
              type: string
            payment_url:
              type: string
              format: uri
              description: Present when the guest still has to pay
            charge_date:
              type: string
              format: date-time
            pay_by:
              type: string
              format: date-time
        host_confirm_by:
          type: string
          format: date-time
        arrival_info_available_at:
          type: string
          format: date-time
        arrival_info_sent_at:
          type: string
          format: date-time
        special_requests:
          type: string
        host_message:
          type: string
        created_at:
          type: string
          format: date-time
  responses:
    Problem401:
      description: Agent token missing (unauthorized)
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Problem400:
      description: Invalid input (e.g. invalid_dates, unknown_amenity, place_not_found)
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Problem404:
      description: Not found (property_not_found, quote_not_found, booking_not_found)
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Problem422:
      description: The stay or guest details don't meet the listing's rules (e.g. min nights, max guests, house_rules_not_accepted)
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Problem429:
      description: 'Rate limited or too many open requests: see Retry-After'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Problem409:
      description: Conflict (dates_unavailable with alternatives, quote_converted, refund_changed, not_cancellable, stay_started)
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
    Problem410:
      description: 'Quote expired: get a new one'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    agentToken:
      type: http
      scheme: bearer
      description: Any stable token of 8+ characters identifying your agent. Bookings are visible only to the token that made them.
externalDocs:
  description: Guide for agent builders
  url: https://threshold.rentals/for-agents